This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Constant expressions etc. patch committed


"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."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]