diff options
author | Iain Sandoe <iains@gcc.gnu.org> | 2010-04-07 16:20:08 +0000 |
---|---|---|
committer | Iain Sandoe <iains@gcc.gnu.org> | 2010-04-07 16:20:08 +0000 |
commit | 58e0f0d345d1759d4af965b1592869f0583cb6eb (patch) | |
tree | fdbf6b522864c72c3e2c50dfa1d1d23362658f66 /gcc/objc/objc-act.c | |
parent | 483264879c177c32f0197992f4625dbca09d444b (diff) | |
download | gcc-58e0f0d345d1759d4af965b1592869f0583cb6eb.zip gcc-58e0f0d345d1759d4af965b1592869f0583cb6eb.tar.gz gcc-58e0f0d345d1759d4af965b1592869f0583cb6eb.tar.bz2 |
re PR objc++/23716 (obj-c++.dg/comp-types-10.mm ICE with the GNU runtime)
fix PR23716
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.
From-SVN: r158076
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 10cc9bc..7e3a2d8 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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, |