OSDN Git Service

* cse.c (cse_insn): Fix loop to stop at VOIDmode.
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2009 01:21:13 +0000 (01:21 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 5 Mar 2009 01:21:13 +0000 (01:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@144634 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cse.c

index 533943e..2d67288 100644 (file)
@@ -1,5 +1,7 @@
 2009-03-05  J"orn Rennecke  <joern.rennecke@arc.com>
 
+       * cse.c (cse_insn): Fix loop to stop at VOIDmode.
+
        * combine.c (gen_lowpart_for_combine): Use omode when generating
        clobber.
 
index 91cb108..bab0908 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4483,7 +4483,8 @@ cse_insn (rtx insn)
          enum machine_mode wider_mode;
 
          for (wider_mode = GET_MODE_WIDER_MODE (mode);
-              GET_MODE_BITSIZE (wider_mode) <= BITS_PER_WORD
+              wider_mode != VOIDmode
+              && GET_MODE_BITSIZE (wider_mode) <= BITS_PER_WORD
               && src_related == 0;
               wider_mode = GET_MODE_WIDER_MODE (wider_mode))
            {