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: Jim Wilson <wilson at cygnus dot com>
- Subject: Re: RFA: Inserting NOPs for profiling.
- From: "Zack Weinberg" <zackw at Stanford dot EDU>
- Date: Tue, 17 Oct 2000 00:31:44 -0700
- Cc: gcc-patches at gcc dot gnu dot org
- References: <zackw@stanford.edu> <200010170048.RAA05175@wilson.cygnus.com>
On Mon, Oct 16, 2000 at 05:48:31PM -0700, Jim Wilson wrote:
> >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.
>
> It has been there for years. It is called ASM_IDENTIFY_LANGUAGE. It is
> disabled by default because it has the same problems as ASM_IDENTIFY_GCC,
> except that they are even worse when you have two of these bogus labels.
> This is really really not the right way to do things.
I'm happy to be educated as to the right way to do this. Independent
of how it's implemented, do you like the feature idea?
zw