[2.92.21] Errors in generated C++ exception code

Bob Glickstein bobg@emphatic.com
Thu Nov 19 09:56:00 GMT 1998

Alexandre Oliva writes:
> Could you try to come up with a short example that demonstrates the
> problem?  You know, we don't have all day to spend downloading C++
> packages every time someone reports a problem on them

I beg you to try my suggestion first.  All it involves is: download
the software; unpack; build.  Total elapsed time is probably under ten
minutes, most of which is unattended, and it's virtually guaranteed to
produce a usable core file.  On the other hand, the possibility of
creating a smaller example is not certain, will probably take at least
an hour of trial and error, and may have the result that I require you
to look at the full Latte distribution after all.  Though I'll
certainly make that effort if necessary, I think trying plan A first
is more direct for both of us.

Andrew Macleod writes:
> Does your compiler fail on ANY exception handling program

No.  There's a lot of exception handling in Latte, and most of it
works perfectly well.

> main() {
>   try {
>     throw 1;
>   }
>   catch(...) {
>   }
> }
> Does this work?

Yes, it works fine.

> If this small program fails too, recompile the library at -O or no
> opt instead of -O2, and it should work.

I'd like to give this a try even though your example worked.  What's
the Right Way to get libgcc compiled with specific compiler flags?

- Bob

More information about the Gcc-bugs mailing list