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: Fix PR c/46547


On Fri, Nov 19, 2010 at 10:02:44PM +0100, Eric Botcazou wrote:
> > Bootstrapped with no regressions on x86_64-unknown-linux-gnu.  Applied
> > to mainline.  I'm also testing a backport to 4.5 branch and will
> > commit there subject to testing.
> >
> > 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
> >
> > 	PR c/46547
> > 	* c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
> > 	* c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
> >
> > c-family:
> > 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
> >
> > 	PR c/46547
> > 	* c-common.c (in_late_binary_op): Define.
> > 	(c_common_truthvalue_conversion): Check in_late_binary_op before
> > 	calling c_save_expr.
> > 	* c-common.h (in_late_binary_op): Declare.
> 
> I cannot bootstrap anymore with Objective-C++ enabled.

I'm currently bootstrapping/regtesting following patch, will commit
if it succeeds.

2010-11-19  Jakub Jelinek  <jakub@redhat.com>

	PR c/46547
	* objc-act.c (in_late_binary_op): Remove.

--- gcc/objc/objc-act.c.jj	2010-11-19 17:18:12.000000000 +0100
+++ gcc/objc/objc-act.c	2010-11-19 22:44:39.773655112 +0100
@@ -63,11 +63,6 @@ along with GCC; see the file COPYING3.  
 
 static unsigned int should_call_super_dealloc = 0;
 
-/* When building Objective-C++, we need in_late_binary_op.  */
-#ifdef OBJCPLUS
-bool in_late_binary_op = false;
-#endif  /* OBJCPLUS */
-
 /* When building Objective-C++, we are not linking against the C front-end
    and so need to replicate the C tree-construction functions in some way.  */
 #ifdef OBJCPLUS

	Jakub


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