diff options
author | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 18:39:22 +0000 |
---|---|---|
committer | matz <matz@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-04-29 18:39:22 +0000 |
commit | 5e507a76a292330204dfdcb2590dbaa0fab300ae (patch) | |
tree | 2a59c00753664184fec11cb5161c9e72f3e52ca4 /gcc/postreload.c | |
parent | 8af0046eee4fb9e1210d25c79600fbca146c29ec (diff) | |
download | gcc-5e507a76a292330204dfdcb2590dbaa0fab300ae.tar.gz |
PR rtl-optimization/21144
* postreload.c (reload_cse_move2add): Check for VOIDmode.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99008 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/postreload.c')
-rw-r--r-- | gcc/postreload.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/postreload.c b/gcc/postreload.c index 16cb818d59b..3d9b24bd113 100644 --- a/gcc/postreload.c +++ b/gcc/postreload.c @@ -1269,7 +1269,8 @@ reload_cse_move2add (rtx first) { enum machine_mode narrow_mode; for (narrow_mode = GET_CLASS_NARROWEST_MODE (MODE_INT); - narrow_mode != GET_MODE (reg); + narrow_mode != VOIDmode + && narrow_mode != GET_MODE (reg); narrow_mode = GET_MODE_WIDER_MODE (narrow_mode)) { if (have_insn_for (STRICT_LOW_PART, narrow_mode) |