* gprof.c (funcsymbol): Ignore ___gnu_compiled as well as

__gnu_compiled, for the benefit of systems which add a leading
	underscore.
This commit is contained in:
Ian Lance Taylor 1994-08-30 15:15:09 +00:00
parent 87dc33c317
commit f43a7782d0
2 changed files with 8 additions and 1 deletions

View file

@ -1,3 +1,9 @@
Tue Aug 30 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* gprof.c (funcsymbol): Ignore ___gnu_compiled as well as
__gnu_compiled, for the benefit of systems which add a leading
underscore.
Wed Aug 24 12:49:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) Wed Aug 24 12:49:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
* configure.in: Change i386-*-* to i[345]86-*-*. * configure.in: Change i386-*-* to i[345]86-*-*.

View file

@ -777,7 +777,8 @@ funcsymbol( symp )
/* Gcc may add special symbols to help gdb figure out the file /* Gcc may add special symbols to help gdb figure out the file
language. We want to ignore these, since sometimes they language. We want to ignore these, since sometimes they
mask the real function. (dj@ctron) */ mask the real function. (dj@ctron) */
|| !strncmp (symp->name, "__gnu_compiled", 14)) || !strncmp (symp->name, "__gnu_compiled", 14)
|| !strncmp (symp->name, "___gnu_compiled", 15))
return FALSE; return FALSE;
return TRUE; return TRUE;