emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE to step through CC modes.
authorRichard Henderson <rth@cygnus.com>
Thu, 2 Sep 1999 01:22:31 +0000 (18:22 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Thu, 2 Sep 1999 01:22:31 +0000 (18:22 -0700)
        * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
        to step through CC modes.

From-SVN: r29041

gcc/ChangeLog
gcc/emit-rtl.c

index b36bfea5f0a248c226f5dba95fc62a70312cfd4b..0828f9987af2cb9f11dc5881ac5494024d99adff 100644 (file)
@@ -1,3 +1,8 @@
+Wed Sep  1 18:21:23 1999  Richard Henderson  <rth@cygnus.com>
+
+       * emit-rtl.c (init_emit_once): Don't use GET_MODE_WIDER_MODE
+       to step through CC modes.
+
 Wed Sep  1 20:18:06 1999  J"orn Rennecke <amylaar@cygnus.co.uk>
 
        * regmove.c (fixup_match_1): Don't move INSN in front of P if
index 3535a23239dcf86805bbfc190b2b870cfece2e43..8d3f2fae61d57f85236e16577b3d10487cc9f782 100644 (file)
@@ -3550,10 +3550,9 @@ init_emit_once (line_numbers)
        const_tiny_rtx[i][(int) mode] = GEN_INT (i);
     }
 
-  for (mode = GET_CLASS_NARROWEST_MODE (MODE_CC); mode != VOIDmode;
-       mode = GET_MODE_WIDER_MODE (mode))
-    const_tiny_rtx[0][(int) mode] = const0_rtx;
-
+  for (mode = CCmode; mode < MAX_MACHINE_MODE; ++mode)
+    if (GET_MODE_CLASS (mode) == MODE_CC)
+      const_tiny_rtx[0][(int) mode] = const0_rtx;
 
   /* Assign register numbers to the globally defined register rtx.
      This must be done at runtime because the register number field