diff options
author | Martin Liska <marxin@gcc.gnu.org> | 2015-03-19 17:35:52 +0000 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2015-03-19 17:35:52 +0000 |
commit | e68287df88d7afcf7f25049f45de9ae614912157 (patch) | |
tree | 8e1dc19a95064f435093c7338fbedb158000e6e5 /gcc/cgraphunit.c | |
parent | 5cdd35db59ff0a28e8d62001e9042080e2323d3f (diff) | |
download | gcc-e68287df88d7afcf7f25049f45de9ae614912157.zip gcc-e68287df88d7afcf7f25049f45de9ae614912157.tar.gz gcc-e68287df88d7afcf7f25049f45de9ae614912157.tar.bz2 |
re PR ipa/65465 (Internal compiler error: in build2_stIat)
Fix for PR ipa/65465.
PR ipa/65465
* cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
all fields of cgraph_thunk_info.
* g++.dg/ipa/pr65465.C: New test.
From-SVN: r221518
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index e640907..8ac92e1 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2484,8 +2484,9 @@ cgraph_node::create_wrapper (cgraph_node *target) /* Turn alias into thunk and expand it into GIMPLE representation. */ definition = true; + + memset (&thunk, 0, sizeof (cgraph_thunk_info)); thunk.thunk_p = true; - thunk.this_adjusting = false; create_edge (target, NULL, count, CGRAPH_FREQ_BASE); tree arguments = DECL_ARGUMENTS (decl); |