This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: [PATCH] Fix ld-cdtest if CFLAGS contains -fexceptions


Hi Jakub,

We compile most of the packages with -fexceptions these days,
but this breaks ld-cdtest.  Although it adds -fno-exceptions to cc
in ld_compile, ld_compile then appends $CFLAGS and therefore -fexceptions
comes after -fno-exceptions and wins.
The following patch fixes that by adding full path of libsupc++.a to the
command line if it exists.

Surely this is the wrong solution. Surely ld_compile ought to prepend $CFLAGS rather than append it, so that the individual linker tests can override command line switches like -fexceptions.


ie if the cdtest.exp wants to use -fno-exceptions then it should be allowed to and we should not be trying to work around this by restoring the exception handling library to the linker command line.

Cheers
   Nick



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