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.


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

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