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
This commit is contained in:
Iain Sandoe 2010-04-07 16:20:08 +00:00
parent 483264879c
commit 58e0f0d345
4 changed files with 18 additions and 2 deletions

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

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

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

View 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" } */