aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1994-08-12 14:56:03 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1994-08-12 14:56:03 -0400
commit5638ef0d7b595d9eb0a42932f0366d89c61ebd49 (patch)
tree5a20bb87508fef8218a4499b49f3fe05440a8bcf /gcc
parent04c9e540c7fc6530d41051a2997558c2c6972586 (diff)
downloadgcc-5638ef0d7b595d9eb0a42932f0366d89c61ebd49.zip
gcc-5638ef0d7b595d9eb0a42932f0366d89c61ebd49.tar.gz
gcc-5638ef0d7b595d9eb0a42932f0366d89c61ebd49.tar.bz2
(mark_used_regs): Only show changes size if one mode is integral.
From-SVN: r7904
Diffstat (limited to 'gcc')
-rw-r--r--gcc/flow.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 56c5ca7..cc77429 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -2282,7 +2282,9 @@ mark_used_regs (needed, live, x, final, insn)
if (GET_CODE (SUBREG_REG (x)) == REG
&& REGNO (SUBREG_REG (x)) >= FIRST_PSEUDO_REGISTER
&& (GET_MODE_SIZE (GET_MODE (x))
- != GET_MODE_SIZE (GET_MODE (SUBREG_REG (x)))))
+ != GET_MODE_SIZE (GET_MODE (SUBREG_REG (x))))
+ && (INTEGRAL_MODE_P (GET_MODE (x))
+ || INTEGRAL_MODE_P (GET_MODE (SUBREG_REG (x)))))
reg_changes_size[REGNO (SUBREG_REG (x))] = 1;
/* While we're here, optimize this case. */