aboutsummaryrefslogtreecommitdiff
path: root/gcc/stmt.c
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-12-31 15:31:18 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1995-12-31 15:31:18 -0500
commit5c7fe359b9a3c07937f88f1b8759163d42991d31 (patch)
treed115ef629fe557804542744194d2ba9ffd41fab8 /gcc/stmt.c
parent9deaf1b1ba4f0fc67e0c41988181563e1cde4320 (diff)
downloadgcc-5c7fe359b9a3c07937f88f1b8759163d42991d31.zip
gcc-5c7fe359b9a3c07937f88f1b8759163d42991d31.tar.gz
gcc-5c7fe359b9a3c07937f88f1b8759163d42991d31.tar.bz2
(tail_recursion_args): Compare TYPE_MAIN_VARIANTs.
From-SVN: r10917
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r--gcc/stmt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c
index 1c0722f..20b7464 100644
--- a/gcc/stmt.c
+++ b/gcc/stmt.c
@@ -2909,7 +2909,8 @@ tail_recursion_args (actuals, formals)
for (a = actuals, f = formals, i = 0; a && f; a = TREE_CHAIN (a), f = TREE_CHAIN (f), i++)
{
- if (TREE_TYPE (TREE_VALUE (a)) != TREE_TYPE (f))
+ if (TYPE_MAIN_VARIANT (TREE_TYPE (TREE_VALUE (a)))
+ != TYPE_MAIN_VARIANT (TREE_TYPE (f)))
return 0;
if (GET_CODE (DECL_RTL (f)) != REG || DECL_MODE (f) == BLKmode)
return 0;