Revision 145255 breaks bootstrap with obj-c++:

...
/opt/gcc/i686-darwin/./prev-gcc/xgcc -B/opt/gcc/i686-darwin/./prev-gcc/
-B/opt/gcc/gcc4.5w/i686-apple-darwin9/bin/ -c  -g -O2 -fomit-frame-pointer
-DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes
-Wcast-qual -Wold-style-definition -Wc++-compat -Wmissing-format-attribute
-pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -Werror
-DOBJCPLUS -I../../gcc-4.5-work/gcc/objc -I../../gcc-4.5-work/gcc/cp
-fno-common  -DHAVE_CONFIG_H -I. -Iobjcp -I../../gcc-4.5-work/gcc
-I../../gcc-4.5-work/gcc/objcp -I../../gcc-4.5-work/gcc/../include -I./../intl
-I../../gcc-4.5-work/gcc/../libcpp/include -I/sw/include 
-I../../gcc-4.5-work/gcc/../libdecnumber
-I../../gcc-4.5-work/gcc/../libdecnumber/dpd -I../libdecnumber
-I/opt/ppl/build/include  -I/opt/cloog/build/include -DCLOOG_PPL_BACKEND  
../../gcc-4.5-work/gcc/objcp/objcp-decl.c -o objcp/objcp-decl.o
../../gcc-4.5-work/gcc/objc/objc-act.c: In function 'objc_finish_try_stmt':
../../gcc-4.5-work/gcc/objc/objc-act.c:3888: error: 'in_late_binary_op'
undeclared (first use in this function)
../../gcc-4.5-work/gcc/objc/objc-act.c:3888: error: (Each undeclared identifier
is reported only once
../../gcc-4.5-work/gcc/objc/objc-act.c:3888: error: for each function it
appears in.)
make[3]: *** [objcp/objcp-act.o] Error 1
...

Following the "jsm28"'s advice I am testing the following patch:

--- ../_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


-- 
           Summary: Revision 145255 breaks bootstrap with obj-c++
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dominiq at lps dot ens dot fr


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39583

Reply via email to