diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-31 15:31:18 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-12-31 15:31:18 -0500 |
commit | 5c7fe359b9a3c07937f88f1b8759163d42991d31 (patch) | |
tree | d115ef629fe557804542744194d2ba9ffd41fab8 /gcc/stmt.c | |
parent | 9deaf1b1ba4f0fc67e0c41988181563e1cde4320 (diff) | |
download | gcc-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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |