__GXX_WEAK__ broken
Joseph S. Myers
jsm28@cam.ac.uk
Sat Jul 7 11:12:00 GMT 2001
On Sat, 7 Jul 2001, Neil Booth wrote:
> Mark Mitchell wrote:-
>
> > My instinct would be to say that CPP needs to link against the target
> > object now.
>
> I'd like to avoid that if possible, in order to keep cpplib
> standalone.
I may as well repeat my suggestion that cpp0 becomes a mode of
cc1/cc1obj/cc1plus rather than a separate executable, which would make
this work naturally with the define done by cc1plus, even with -save-temps
or -E. (While a standalone cpplib wouldn't then get the definition, this
shouldn't matter; if e.g. used from the debugger, all that would be
required would be for __GXX_WEAK__ to be included in the debug info;
anything using standalone cpplib and needing predefines already needs to
work out what the driver would predefine for given command line options,
and this just means it needs to work out what the compiler proper would
define as well; and a properly implemented -dM should provide both lots of
predefines.)
--
Joseph S. Myers
jsm28@cam.ac.uk
More information about the Gcc-bugs
mailing list