Deleted Added
full compact
gmon-sol2.c (132718) gmon-sol2.c (161651)
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

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

262 * 4) the atexit and monsetup calls prevent this from simply
263 * being a leaf routine that doesn't do a "save" (and would thus have
264 * access to %o7 and %i7 directly) but the call to write() at the end
265 * would have also prevented this.
266 *
267 * -- [eichin:19920702.1107EST]
268 */
269
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

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

262 * 4) the atexit and monsetup calls prevent this from simply
263 * being a leaf routine that doesn't do a "save" (and would thus have
264 * access to %o7 and %i7 directly) but the call to write() at the end
265 * would have also prevented this.
266 *
267 * -- [eichin:19920702.1107EST]
268 */
269
270static void internal_mcount (char *, unsigned short *)
271 __attribute__ ((__unused__));
270static void internal_mcount (char *, unsigned short *) __attribute__ ((used));
272
273/* i7 == last ret, -> frompcindex */
274/* o7 == current ret, -> selfpc */
275/* Solaris 2 libraries use _mcount. */
276asm(".global _mcount; _mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
277/* This is for compatibility with old versions of gcc which used mcount. */
278asm(".global mcount; mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
279

--- 144 unchanged lines hidden ---
271
272/* i7 == last ret, -> frompcindex */
273/* o7 == current ret, -> selfpc */
274/* Solaris 2 libraries use _mcount. */
275asm(".global _mcount; _mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
276/* This is for compatibility with old versions of gcc which used mcount. */
277asm(".global mcount; mcount: mov %i7,%o1; mov %o7,%o0;b,a internal_mcount");
278

--- 144 unchanged lines hidden ---