This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: 971127 internal compiler error
- To: Jason Merrill <jason at cygnus dot com>
- Subject: Re: 971127 internal compiler error
- From: Thomas Weise <tom at zaphod dot wh9 dot tu-dresden dot de>
- Date: Sat, 29 Nov 1997 12:05:46 +0000
- CC: egcs-bugs at cygnus dot com
- Organization: Dresden University of Technology
- References: <347EEF3C.5ADD.cygnus.egcs.bugs@zaphod.wh9.tu-dresden.de> <u9sosgc86k.fsf@yorick.cygnus.com>
Jason Merrill wrote:
>
> Please try this patch, and let us know how it works for you.
>
> Sat Nov 29 02:16:32 1997 Jason Merrill <jason@yorick.cygnus.com>
>
> * stmt.c (expand_decl_cleanup): Update thisblock after eh_region_start.
>
> Index: stmt.c
> ===================================================================
> RCS file: /cvs/cvsfiles/devo/gcc/stmt.c,v
> retrieving revision 1.131
> diff -c -r1.131 stmt.c
> *** stmt.c 1997/11/10 20:08:36 1.131
> --- stmt.c 1997/11/29 10:13:52
> ***************
> *** 3992,3997 ****
> --- 3992,3999 ----
> if (! using_eh_for_cleanups_p
> || expand_eh_region_start_tree (decl, cleanup))
> TREE_ADDRESSABLE (t) = 1;
> + /* If that started a new EH region, we're in a new block. */
> + thisblock = block_stack;
>
> if (cond_context)
> {
This patch fixes the testcase and works for my original source code as
well.
Thanks,
Tom.