This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/19810] Finally handling inconsistent when compiling to class/executable
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Feb 2005 00:19:44 -0000
- Subject: [Bug java/19810] Finally handling inconsistent when compiling to class/executable
- References: <20050207191551.19810.jdh41@cantab.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From tromey at gcc dot gnu dot org 2005-02-19 00:19 -------
I investigated this some more.
The code generator for "return" looks at the finally
stack to decide whether to call any finally handlers.
But, the code generator for "try" has a special case
when the finally clause cannot complete normally.
This confuses the "return" handler.
One fix would be to turn off this optimization.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19810