This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Inserting NOPs for profiling.
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: RFA: Inserting NOPs for profiling.
- From: Jim Wilson <wilson at cygnus dot com>
- Date: Mon, 16 Oct 2000 17:01:23 -0700
In article <Pine.LNX.4.21.0010141300110.10656-100000@front.linuxcare.com.au> you write:
>Why don't we just fudge all these silly .gcc2_compiled symbols in the
>linker? Giving them a value of -1 might do the trick.
Even better, we should make gcc stop emitting them. They cause lots of
various problems, and the effort of working around them isn't worthwhile.
If you want to know whether code was compiled by gcc, then emit debug info
indicating this. You can then use the debug info to tell where the gcc
code starts and stops. Emitting a random symbol at the beginning of a module
is usless, because after linking, there is no way to tell where the gcc
compiled code starts and stops.
Jim