This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix PR39583: Revision 145255 breaks bootstrap with obj-c++
- From: dominiq at lps dot ens dot fr (Dominique Dhumieres)
- To: gcc-patches at gcc dot gnu dot org
- Cc: stanshebs at earthlink dot net, mrs at apple dot com
- Date: Sun, 29 Mar 2009 23:48:32 +0200
- Subject: Fix PR39583: Revision 145255 breaks bootstrap with obj-c++
Revision 145255 breaks bootstrap with obj-c++ (see PR39583
http://gcc.gnu.org/ml/gcc-bugs/2009-03/msg02120.html).
The following patch fixes it. Note that I don't have commit rights
so someone will have to do it for me.
Dominique
2009-03-29 Dominique d'Humieres <dominiq@lps.ens.fr>
PR bootstrap/39583
* define and initialize in_late_binary_op in gcc/objc/objc-act.c
for Objective-C++.
x
Index: gcc/objc/objc-act.c
===================================================================
--- ../_gcc_clean/gcc/objc/objc-act.c 2009-03-29 20:18:04.000000000 +0200
+++ gcc/objc/objc-act.c 2009-03-29 23:13:30.000000000 +0200
@@ -79,6 +79,11 @@ 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