This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFA: Inserting NOPs for profiling.
On Mon, Oct 16, 2000 at 05:01:23PM -0700, Jim Wilson wrote:
> 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.
However, today I had an idea for making them more useful. If each
front end emitted a *different* symbol, collect2 could determine what
language each module had been written in, and add the appropriate
libraries to the link automatically. You'd be able to link Fortran
and C++, for example, without knowing about either libstdc++ or
libg2c.
Say - why don't we put .gcc2_compiled in the _data_ section? Then it
wouldn't interfere with profiling.
zw