Commit 029ce7a2 by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/60002 (ICE: SIGSEGV in skip_artificial_parms_for() with…

re PR tree-optimization/60002 (ICE: SIGSEGV in skip_artificial_parms_for() with -O2 -fcompare-debug -fdeclone-ctor-dtor -fipa-cp-clone)

	PR tree-optimization/60002
	* cgraphclones.c (build_function_decl_skip_args): Clear
	DECL_LANG_SPECIFIC.

	* g++.dg/opt/pr60002.C: New test.

From-SVN: r207465
parent 8e91d222
2014-02-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/60002
* cgraphclones.c (build_function_decl_skip_args): Clear
DECL_LANG_SPECIFIC.
PR tree-optimization/60023
* tree-if-conv.c (predicate_mem_writes): Pass true instead of
false to gsi_replace.
......
......@@ -390,6 +390,9 @@ build_function_decl_skip_args (tree orig_decl, bitmap args_to_skip,
DECL_BUILT_IN_CLASS (new_decl) = NOT_BUILT_IN;
DECL_FUNCTION_CODE (new_decl) = (enum built_in_function) 0;
}
/* The FE might have information and assumptions about the other
arguments. */
DECL_LANG_SPECIFIC (new_decl) = NULL;
return new_decl;
}
......
2014-02-04 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/60002
* g++.dg/opt/pr60002.C: New test.
PR tree-optimization/60023
* g++.dg/vect/pr60023.cc: New test.
......
// PR tree-optimization/60002
// { dg-do compile }
// { dg-options "-O2 -fcompare-debug -fdeclone-ctor-dtor -fipa-cp-clone" }
struct A {};
struct B : virtual A { B (); ~B (); };
B::~B ()
{
B ();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment