aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssanames.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-02-08 10:04:18 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-02-08 10:04:18 +0000
commit63998a6336239da20540a9e4b529d839ed2db26e (patch)
tree8d1a5a7532aba53531b52e607ed30ac5c716273f /gcc/tree-ssanames.c
parentffe9a0a76e4212d8ec2b41d756ae82ef84d13d40 (diff)
downloadgcc-63998a6336239da20540a9e4b529d839ed2db26e.zip
gcc-63998a6336239da20540a9e4b529d839ed2db26e.tar.gz
gcc-63998a6336239da20540a9e4b529d839ed2db26e.tar.bz2
re PR target/68273 (Wrong code on mips/mipsel due to (invalid?) peeking at alignments in function_arg.)
2016-02-08 Richard Biener <rguenther@suse.de> Jeff Law <law@redhat.com> PR target/68273 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified types for anonymous SSA names. * gcc.target/mips/pr68273.c: New testcase. Co-Authored-By: Jeff Law <law@redhat.com> From-SVN: r233211
Diffstat (limited to 'gcc/tree-ssanames.c')
-rw-r--r--gcc/tree-ssanames.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssanames.c b/gcc/tree-ssanames.c
index d6897c7..b72c7cb 100644
--- a/gcc/tree-ssanames.c
+++ b/gcc/tree-ssanames.c
@@ -286,7 +286,7 @@ make_ssa_name_fn (struct function *fn, tree var, gimple *stmt)
if (TYPE_P (var))
{
- TREE_TYPE (t) = var;
+ TREE_TYPE (t) = TYPE_MAIN_VARIANT (var);
SET_SSA_NAME_VAR_OR_IDENTIFIER (t, NULL_TREE);
}
else