OSDN Git Service

fix PR23716
authoriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 16:20:08 +0000 (16:20 +0000)
committeriains <iains@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 7 Apr 2010 16:20:08 +0000 (16:20 +0000)
2010-04-07  Iain Sandoe <iains@gcc.gnu.org>

PR objc++/23716
* objc-act.c (build_module_initializer_routine): Make the argument
to objc_start_function NULL_TREE when compiling ObjC++.

2010-04-07  Iain Sandoe <iains@gcc.gnu.org>

PR objc++/23716
* obj-c++.dg/comp-types-10.mm: Remove XFAIL.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158076 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/objc/ChangeLog
gcc/objc/objc-act.c
gcc/testsuite/ChangeLog
gcc/testsuite/obj-c++.dg/comp-types-10.mm

index 35fed82..472d4aa 100644 (file)
@@ -1,3 +1,9 @@
+2010-04-07  Iain Sandoe <iains@gcc.gnu.org>
+
+       PR objc++/23716
+       * objc-act.c (build_module_initializer_routine): Make the argument
+       to objc_start_function NULL_TREE when compiling ObjC++.
+
 2010-02-18  Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
            Mike Stump  <mikestump@comcast.net>
 
index 10cc9bc..7e3a2d8 100644 (file)
@@ -2391,11 +2391,17 @@ build_module_initializer_routine (void)
 
   objc_push_parm (build_decl (input_location,
                              PARM_DECL, NULL_TREE, void_type_node));
+#ifdef OBJCPLUS
+  objc_start_function (get_identifier (TAG_GNUINIT),
+                      build_function_type (void_type_node,
+                                           OBJC_VOID_AT_END),
+                      NULL_TREE, NULL_TREE);
+#else
   objc_start_function (get_identifier (TAG_GNUINIT),
                       build_function_type (void_type_node,
                                            OBJC_VOID_AT_END),
                       NULL_TREE, objc_get_parm_info (0));
-
+#endif
   body = c_begin_compound_stmt (true);
   add_stmt (build_function_call
            (input_location,
index 32c64b3..a074ef2 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-07  Iain Sandoe <iains@gcc.gnu.org>
+
+       PR objc++/23716
+       * obj-c++.dg/comp-types-10.mm: Remove XFAIL.
+
 2010-04-07  Jason Merrill  <jason@redhat.com>
 
        * g++.dg/template/dr408.C: New.
index b4da5dd..c7f0cb6 100644 (file)
@@ -1,6 +1,5 @@
 /* Yet another mysterious gimplifier crasher.  */
 /* { dg-do compile } */
-/* { dg-xfail-if "PR23716" { ! *-*-darwin* } { "*" } { "" } } */
 /* { dg-prune-output ".*internal compiler error.*" } */
 /* { dg-options "-O3" } */