From 1d273bf509646a511051229f4c8d2478585dec55 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Mon, 18 Dec 1995 07:49:21 -0500 Subject: [PATCH] (fixup_var_refs_1): Fix error in last change (when mode of VAR is not the same as PROMOTED_MODE). From-SVN: r10795 --- gcc/function.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gcc/function.c b/gcc/function.c index a1699dc..b62a284 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -1979,6 +1979,7 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) && (GET_CODE (SET_DEST (x)) == REG || (GET_CODE (SET_DEST (x)) == SUBREG && GET_CODE (SUBREG_REG (SET_DEST (x))) == REG)) + && GET_MODE (var) == promoted_mode && x == single_set (insn)) { rtx pat; @@ -2024,6 +2025,7 @@ fixup_var_refs_1 (var, promoted_mode, loc, insn, replacements) && (GET_CODE (SET_SRC (x)) == REG || (GET_CODE (SET_SRC (x)) == SUBREG && GET_CODE (SUBREG_REG (SET_SRC (x))) == REG)) + && GET_MODE (var) == promoted_mode && x == single_set (insn)) { rtx pat; -- 2.7.4