This is the mail archive of the gcc-patches@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]

exceptions and setjump / longjump


Hello,

My gcc version:
gcc -v
gcc version 2.95.2 19991024 (release)

I use a coroutine lib written in C++ (no ASM part).
This lib uses setjump / longjump to switch between different stack frames.
To make it possible to use C++ exceptions a have pachted libgcc2.c to
get the symbols __new_eh_context() and (*__get_eh_context_ptr)() public.

With this patch I can setup a per coroutine exception frame from my
coroutine code.

Is there a better solution in gcc 3.x ?
Is there a spezial patch version for gcc 3.x ?

thank you all

Ruediger


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