aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2011-03-09 17:59:55 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2011-03-09 17:59:55 +0100
commitbf6817f2c5ab79e08392ef031a40df227fa69b02 (patch)
treed6a9e8704b112827576e9fb055043b27024fa1ba /gcc/cp
parent5d304e47bc76ca92c3c9ae178a183f411f051fc3 (diff)
downloadgcc-bf6817f2c5ab79e08392ef031a40df227fa69b02.zip
gcc-bf6817f2c5ab79e08392ef031a40df227fa69b02.tar.gz
gcc-bf6817f2c5ab79e08392ef031a40df227fa69b02.tar.bz2
re PR tree-optimization/47714 (verify_ssa fails with error: invalid argument to gimple call)
2011-03-09 Martin Jambor <mjambor@suse.cz> PR tree-optimization/47714 * cp/method.c (use_thunk): Clear addressable flag of thunk arguments. * testsuite/g++.dg/torture/pr47714.C: New test. From-SVN: r170822
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/method.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 68f04e1..b0adb8f 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2011-03-09 Martin Jambor <mjambor@suse.cz>
+
+ PR tree-optimization/47714
+ * method.c (use_thunk): Clear addressable flag of thunk arguments.
+
2011-03-08 Dodji Seketeli <dodji@redhat.com>
PR c++/47705
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index a4c2dd1..d70da95 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -372,6 +372,7 @@ use_thunk (tree thunk_fndecl, bool emit_p)
DECL_CONTEXT (x) = thunk_fndecl;
SET_DECL_RTL (x, NULL);
DECL_HAS_VALUE_EXPR_P (x) = 0;
+ TREE_ADDRESSABLE (x) = 0;
t = x;
}
a = nreverse (t);