This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: throwing C++ exceptions across C frames
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Ben Liblit <liblit at eecs dot berkeley dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 30 Dec 2002 23:54:08 -0500
- Subject: Re: throwing C++ exceptions across C frames
Compile the C code with -fexceptions option?
"Enable exception handling. Generates extra code needed to propagate
exceptions. For some targets, this implies GCC will generate frame unwind
information for all functions, which can produce significant data size
overhead, although it does not affect execution. If you do not specify
this option, GCC will enable it by default for languages like C++ which
normally require exception handling, and disable it for languages like C
that do not normally require it. However, you may need to enable this
option when compiling C code that needs to interoperate properly with
exception handlers written in C++. You may also wish to disable this
option if you are compiling older C++ programs that don't use exception
handling."
David