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]
Other format: [Raw text]

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


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