This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-exceptions and libgcc.a
- To: mmitchell at usa dot net
- Subject: Re: -fno-exceptions and libgcc.a
- From: Joe Buck <jbuck at synopsys dot com>
- Date: Sat, 4 Oct 97 18:17:15 PDT
- Cc: bothner at cygnus dot com, egcs at cygnus dot com
> 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.