Patchwork Fix PR c/46547

login
register
mail settings
Submitter Jakub Jelinek
Date Nov. 19, 2010, 9:47 p.m.
Message ID <20101119214758.GK29412@tyan-ft48-01.lab.bos.redhat.com>
Download mbox | patch
Permalink /patch/72315/
State New
Headers show

Comments

Jakub Jelinek - Nov. 19, 2010, 9:47 p.m.
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.


	Jakub

Patch

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