exceptions and -fomit-frame-pointer
Bill Woessner
woessner@nago.cs.colorado.edu
Mon Nov 30 17:59:00 GMT 1998
I just started experimenting with C++ exceptions. I've also long used
-fomit-frame-pointer in compiling all my code. But today, when adding
exceptions to my C++ matrix package, I discovered that they didn't work.
The exception was thrown but not caught (resulting, of course, in a
segmentation fault). I traced the reason they didn't work to compiling
with -fomit-frame-pointer. I don't know if this is supposed to happen,
but I thought I'd at least bring it to your attention. Removing
-fomit-frame-pointer from CFLAGS in my makefile fixed the problem. For
reference, I use a PII-233 with 32MB of RAM running Linux 2.0.36, egcs
1.1b, and glibc 2.0.6. Please feel free to ask for any other information
I can provide you.
_________________________________________________________________________
| Bill Woessner <woessner@colorado.edu> || Home: (303) 786-3636 |
| http://csel.cs.colorado.edu/~woessner || |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"Our deepest fear is not that we are inadequate. Our deepest fear is
that we are powerful beyond measure." - Nelson Mandela
More information about the Gcc-bugs
mailing list