RFA: Inserting NOPs for profiling.

Jim Wilson wilson@cygnus.com
Mon Oct 16 16:59:00 GMT 2000


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




More information about the Gcc-patches mailing list