This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Constant expressions etc. patch committed
- From: Andreas Schwab <schwab at linux-m68k dot org>
- To: "Joseph S. Myers" <joseph at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 30 Mar 2009 13:41:12 +0200
- Subject: Re: Constant expressions etc. patch committed
- References: <Pine.LNX.4.64.0903291813460.2965@digraph.polyomino.org.uk>
"Joseph S. Myers" <joseph@codesourcery.com> writes:
> Index: gcc/objc/objc-act.c
> ===================================================================
> --- gcc/objc/objc-act.c (revision 145252)
> +++ gcc/objc/objc-act.c (working copy)
> @@ -1,6 +1,6 @@
> /* Implement classes and message passing for Objective C.
> - Copyright (C) 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000,
> - 2001, 2002, 2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
> + Copyright (C) 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
> + 2002, 2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
> Contributed by Steve Naroff.
>
> This file is part of GCC.
> @@ -3885,12 +3885,15 @@ objc_finish_try_stmt (void)
> /* If we're doing Darwin setjmp exceptions, build the big nasty. */
> if (flag_objc_sjlj_exceptions)
> {
> + bool save = in_late_binary_op;
> + in_late_binary_op = true;
> if (!cur_try_context->finally_body)
> {
> cur_try_context->finally_locus = input_location;
> cur_try_context->end_finally_locus = input_location;
> }
> stmt = next_sjlj_build_try_catch_finally ();
> + in_late_binary_op = save;
> }
> else
> {
This broke obj-c++, since in_late_binary_op is only declared in
c-tree.h, not cp-tree.h.
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."