[2.92.21] Errors in generated C++ exception code
Andrew Macleod
amacleod@cygnus.com
Thu Nov 19 08:09:00 GMT 1998
>> My platform: egcs 19981109 snapshot (version 2.92.21), Linux 2.0.33,
>> i686.
>>
>> There is an apparent bug in the 19981109 egcs snapshot (going back at
>> least a couple months' worth of versions) in C++ exception-handling
>> code. The easiest way to reproduce the bug is to download Latte 1.1
>> from < http://www.latte.org/ >, unpack it, run `configure', and then run
>> `make check'. During `make check', latte-html should build correctly,
>> but the test named `undefined-x' will fail. That test succeeds with
>> older versions of gcc.
>>
>> The failure of the test will produce a core dump. However, once you
>> have built the latte-html binary, there is a much shorter route to
>> generating the same core dump. Simply issue this command in the
>> shell:
Does your compiler fail on ANY exception handling program.. ie
main() {
try {
throw 1;
}
catch(...) {
}
}
Does this work? There have been some problems with exception handling on the
x86 linux platform when libgcc is compiled at -O2. If this small
program fails too, recompile the library at -O or no opt instead of -O2,
and it should work. We have a fix for this problem, and it should
surface soon :-). Is this the same thing?
Andrew
More information about the Gcc-bugs
mailing list