From f43a7782d0c761e6494c4018bcf0bfc1f5eb02ed Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Tue, 30 Aug 1994 15:15:09 +0000 Subject: [PATCH] * gprof.c (funcsymbol): Ignore ___gnu_compiled as well as __gnu_compiled, for the benefit of systems which add a leading underscore. --- gprof/ChangeLog | 6 ++++++ gprof/gprof.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gprof/ChangeLog b/gprof/ChangeLog index a67de9edb41..39a600595c5 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -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) * configure.in: Change i386-*-* to i[345]86-*-*. diff --git a/gprof/gprof.c b/gprof/gprof.c index 301da696683..15eb7fd6ee1 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -777,7 +777,8 @@ funcsymbol( symp ) /* Gcc may add special symbols to help gdb figure out the file language. We want to ignore these, since sometimes they 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 TRUE; -- 2.30.2