aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2006-02-13 21:27:44 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2006-02-13 20:27:44 +0000
commitbd361d85c7cf2c5083f6c595cec251ef4edec77f (patch)
treefbb06cbf7b7c5251d02118817d6d657e6655424f
parent0977d3fedf2d1ee4287519c1d47b0fbcfcf00bc2 (diff)
downloadgcc-bd361d85c7cf2c5083f6c595cec251ef4edec77f.zip
gcc-bd361d85c7cf2c5083f6c595cec251ef4edec77f.tar.gz
gcc-bd361d85c7cf2c5083f6c595cec251ef4edec77f.tar.bz2
re PR rtl-optimization/26247 (gcc.dg/tree-ssa/gen-vect-26.c, 28 and 32. int_mode_for_mode ICE strict_low_part loop-invariant)
PR rtl-optimization/26247 PR rtl-optimization/26248 * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode. From-SVN: r110924
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/loop-invariant.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8cb23e0..8df4b64 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2006-02-13 Zdenek Dvorak <dvorakz@suse.cz>
+
+ PR rtl-optimization/26247
+ PR rtl-optimization/26248
+ * loop-invariant.c (may_assign_reg_p): Do not allow VOIDmode.
+
2006-02-13 Richard Sandiford <richard@codesourcery.com>
* config/floatunditf.c: Use if __LDBL_MANT_DIG__ == 113.
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c
index eb6719e..ce82780 100644
--- a/gcc/loop-invariant.c
+++ b/gcc/loop-invariant.c
@@ -582,8 +582,9 @@ find_exits (struct loop *loop, basic_block *body,
static bool
may_assign_reg_p (rtx x)
{
- return (can_copy_p (GET_MODE (x))
+ return (GET_MODE (x) != VOIDmode
&& GET_MODE (x) != BLKmode
+ && can_copy_p (GET_MODE (x))
&& (!REG_P (x)
|| !HARD_REGISTER_P (x)
|| REGNO_REG_CLASS (REGNO (x)) != NO_REGS));