This is the mail archive of the gcc@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: -fno-exceptions and libgcc.a



> I suggest a different scheme: 
> 
>   o The default remains -fno-exceptions when compiling.
> 
>   o At link-time, if gcc is used to link the executable, we remove
>     the .eh_frame section.  If g++/c++ is used, we keep it.

Why distinguish among languages?  Why not distinguish on the basis
of whether any code is linked in that actually throws an exception?
That is, flag any .o file where an exception is thrown; remove all
the exception-handling sections in the executable if no one uses them.





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