This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fno-exceptions and libgcc.a
- To: egcs at cygnus dot com
- Subject: Re: -fno-exceptions and libgcc.a
- From: Per Bothner <bothner at cygnus dot com>
- Date: Sat, 04 Oct 1997 00:12:34 -0700
> It is reasonable to either change the default for exception handling
> to off for C,
I don't understand why there is even any discussion of this.
The default for C *has* to -fno-exceptions, unless there is
*no* cost for code that does not use the exceptions.
Anything else is a public relations disaster in terms
of the perceived code quality of gcc. This *must* be
fixed before egcs (or gcc 2.8) is released.
There should be a #pragma or __sttribute__ to specify that
"this code needs to be robost in the presence of exceptions."
This could be turned on for qsort (the canonical example of
possibly throwing exceptions through C code), but off for
the rest of the C library. Similar for libgcc.
--Per Bothner
Cygnus Solutions bothner@cygnus.com http://www.cygnus.com/~bothner