This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: -ffunction-sections


On Mon, Jun 10, 2002 at 01:15:26AM -0400, Phil Edwards wrote:
> On Mon, Jun 10, 2002 at 12:57:18AM +1200, Tony Bryant wrote:
> > The call in configure to GLIBCPP_CHECK_COMPILER_FEATURES has been commented 
> > out. How inconvenient...
> 
> Those are (I think) just a commented list of "things you might add when
> doing a port of your own".  I could be wrong.

I think I'm wrong.  At least, I've managed to confuse myself.

The if-cross-compiling branch of configure.in states "hard code the things
which would require linking," but then calls CHECK_LINKER_FEATURES anyhow.
CHECK_COMPILER_FEATURES only tries to compile something, not link, but
it's commented out, and its guts are hardcoded instead.

This seems backwards to me; surely we can CHECK_COMPILER_FEATURES without
needing a linker, and only CHECK_LINKER_FEATURES needs to be avoided?


Phil

-- 
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace.  We seek
not your counsel, nor your arms.  Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen.            - Samuel Adams


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