summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-14 19:17:52 +0000
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>2005-01-14 19:17:52 +0000
commita422e68e6d82a613cbcabbee84336b0325c71fa8 (patch)
tree49a6d8dd7353955831946f6f3dd794f0b07053ea /gcc
parente0e865f0d6671390cd0f4e850e207c01768c8660 (diff)
downloadgcc-a422e68e6d82a613cbcabbee84336b0325c71fa8.tar.gz
* postreload.c (move2add_note_store): Only call
trunc_int_for_mode on scalar integers. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@93658 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/postreload.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 08556ae24b4..2d0d11bbfaa 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-14 Aldy Hernandez <aldyh@redhat.com>
+
+ * postreload.c (move2add_note_store): Only call
+ trunc_int_for_mode on scalar integers.
+
2005-01-14 Steven Bosscher <stevenb@suse.de>
* tree-ssa-dce.c (visited_control_parents): New sbitmap to
diff --git a/gcc/postreload.c b/gcc/postreload.c
index 06714b90ab8..917af6997ab 100644
--- a/gcc/postreload.c
+++ b/gcc/postreload.c
@@ -1457,7 +1457,7 @@ move2add_note_store (rtx dst, rtx set, void *data ATTRIBUTE_UNUSED)
regno += REGNO (dst);
- if (SCALAR_INT_MODE_P (mode)
+ if (SCALAR_INT_MODE_P (GET_MODE (dst))
&& hard_regno_nregs[regno][mode] == 1 && GET_CODE (set) == SET
&& GET_CODE (SET_DEST (set)) != ZERO_EXTRACT
&& GET_CODE (SET_DEST (set)) != STRICT_LOW_PART)