diff options
author | Jakub Jelinek <jakub@redhat.com> | 2014-02-04 14:38:13 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2014-02-04 14:38:13 +0100 |
commit | 029ce7a26d8b23eee3096ff9f8424480c7dae6dd (patch) | |
tree | 5e172ebb5e28ff79cd66282fff4cc31e2dd09b63 /gcc/cgraphclones.c | |
parent | 8e91d222caa45afa9dc15aff60df1bf378fe2545 (diff) | |
download | gcc-029ce7a26d8b23eee3096ff9f8424480c7dae6dd.zip gcc-029ce7a26d8b23eee3096ff9f8424480c7dae6dd.tar.gz gcc-029ce7a26d8b23eee3096ff9f8424480c7dae6dd.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraphclones.c')
-rw-r--r-- | gcc/cgraphclones.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index a87f77c..ca69033 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -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; } |