target/5505: Doubts about a patch for OSF
Rainer Orth
ro@TechFak.Uni-Bielefeld.DE
Fri Feb 22 16:44:00 GMT 2002
Richard B. Kreckel writes:
> Err, while trying to debug into the problem I discovered something
> that had escaped my attantion until now: compiling CLN and an example
> (examples/e, or tests/tests or whatever, never mind) with either -O1, -O2
> or -O1 -g resulted in a working test (the linker warnings are of course
> still present) while -O2 -fno-exceptions produced a crashing program.
> Also, these funny warnings:
> as1: Warning: /tmp/ccb8ZbYD.s, line 6: macro instruction used $at
> appear only when I disable exceptions. I hadn't noticed it so far because
> I *always* export CXXFLAGS="-O2 -fno-exceptions" prior to building
> CLN. May I ask you how you configured and tested CLN? You did not
> specify -fno-exceptions, did you? Does it work when you do so?
I get those warnings and crashing test programs only when configuring with
CXXFLAGS='-fno-exceptions' CPPFLAGS="-DNO_ASM -DNO_PROVIDE_REQUIRE" \
./configure --disable-shared --without-gmp
CXXFLAGS=-fno-exceptions alone still works.
> Anyways, here is a g++ -v output as you requested:
Thanks, nothing unusual here.
Rainer
More information about the Gcc-bugs
mailing list