This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: RFA: Inserting NOPs for profiling.


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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]