Deleted Added
full compact
gmon-sol2.c (90075) gmon-sol2.c (96263)
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286
287 /*
288 * find the return address for mcount,
289 * and the return address for mcount's caller.
290 */
291
292 if(!already_setup) {
293 extern char etext[];
1/*-
2 * Copyright (c) 1991 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 277 unchanged lines hidden (view full) ---

286
287 /*
288 * find the return address for mcount,
289 * and the return address for mcount's caller.
290 */
291
292 if(!already_setup) {
293 extern char etext[];
294 extern char _start[];
295 extern char _init[];
294 already_setup = 1;
296 already_setup = 1;
295 monstartup(0, (char *)etext);
297 monstartup(_start < _init ? _start : _init, etext);
296#ifdef USE_ONEXIT
297 on_exit(_mcleanup, 0);
298#else
299 atexit(_mcleanup);
300#endif
301 }
302 /*
303 * check that we are profiling

--- 119 unchanged lines hidden ---
298#ifdef USE_ONEXIT
299 on_exit(_mcleanup, 0);
300#else
301 atexit(_mcleanup);
302#endif
303 }
304 /*
305 * check that we are profiling

--- 119 unchanged lines hidden ---