summaryrefslogtreecommitdiff
path: root/gcc/stupid.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-08-12 18:56:26 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>1994-08-12 18:56:26 +0000
commit5a04948f152d78764a0ffb9cb398bcfb7abafcc9 (patch)
tree78ac2b65b762e97e9a3dd4c5489f8c4e0994fbe7 /gcc/stupid.c
parentdd279ccda648a99e6a5407b7d0c4bfe7d71d7945 (diff)
downloadgcc-5a04948f152d78764a0ffb9cb398bcfb7abafcc9.tar.gz
(stupid_mark_refs): Only show changes size if one mode is integral.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@7905 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/stupid.c')
-rw-r--r--gcc/stupid.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/stupid.c b/gcc/stupid.c
index f324aeb3a81..e10f2dce459 100644
--- a/gcc/stupid.c
+++ b/gcc/stupid.c
@@ -496,7 +496,9 @@ stupid_mark_refs (x, insn)
&& 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)))))
regs_change_size[REGNO (SUBREG_REG (x))] = 1;
/* Register value being used, not set. */