This is the mail archive of the gcc-help@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: exceptions in C++


Matthias Oltmanns wrote:
Hi John,

many good ideas but i'm dreaming of a more general solution. The divide
by zero was an example for situations, where the runtime-environment
signals errors by "signals" instead by exceptions. I would like to see a general solution, where i'm able to deal only with exceptions. Other
situations are segmentation faults, bus erros etc.
Is it possible to catch these errors and to continue in the program flow
without the need of termination?
I believe -fnon-call-exceptions might be the closest to what you're looking
for.

nathan
--
Nathan Sidwell    ::   http://www.codesourcery.com   ::     CodeSourcery LLC
         The voices in my head said this was stupid too
nathan at codesourcery dot com : http://www.cs.bris.ac.uk/~nathan/ : nathan at acm dot org



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