BUG: g++ 3.x.x -fomit-frame-pointer: exception handling doesn't work
James E Wilson
wilson@specifixinc.com
Tue Aug 10 04:28:00 GMT 2004
Denis Zaitsev wrote:
> But, I'm repeating, the result is not depend on an options to compile
> the example itself, but on the options used to compile GCC
> (particulary libsups++?).
I wasn't able to reproduce the first problem you reported. But I was
able to eventually reproduce the problem with the second example. I
configured gcc using
CFLAGS="long string of options" CXXFLAGS="long string of options"
../gcc/configure ...
where "long string of options" came from your message. When I built gcc
this way, your new[-1] example did fail. Unfortunately, -g was not in
your list of options, so I was unable to debug the result.
I never did get the first example to fail.
At this point, I've spent about as much time on this as I care to. I
suggest filing a bug report, or trying to debug this yourself. If you
file a bug report, be sure to include enough info for someone else to
reproduce the problem. If the problem is that libsupc++ has
dependencies on being compiled with a frame pointer, then maybe
something as simple as adding -fno-omit-frame-pointer to CFLAGS in the
libsupc++ Makefile would solve the problem.
--
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com
More information about the Gcc
mailing list