[Bug middle-end/15855] [3.4/4.0 Regression] g++ crash with -O2 and -O3 on input file

rth at redhat dot com gcc-bugzilla@gcc.gnu.org
Thu Dec 2 06:09:00 GMT 2004


------- Additional Comments From rth at redhat dot com  2004-12-02 06:08 -------
Subject: Re:  [3.4/4.0 Regression] g++ crash with -O2 and -O3 on input file

On Wed, Dec 01, 2004 at 09:56:51PM -0700, Jeffrey A Law wrote:
>         * tree.h (save_eptr, save_filt): Now file scoped statics.
>         (honor_protect_cleanup_actions): Only create save_eptr and
>         save_filt if they do not already exist.
>         (lower_eh_constructs): Wipe all knowledge of save_eptr and
>         save_filt before returning.

As I just discovered while working through the existance of these
saves for DannyB, this transformation is incorrect and indeed
invalidates the entire reason for this save/restore.

The best that we could do is a stack of variable pairs so that
nested eh regions are handled properly.

Sorry for my earlier misdiagnosis.


r~


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15855



More information about the Gcc-bugs mailing list