]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* rtlanal.c (may_trap_p): Simplify an integer comparison.
authorKazu Hirata <kazu@cs.umass.edu>
Sun, 24 Aug 2003 09:02:32 +0000 (09:02 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Sun, 24 Aug 2003 09:02:32 +0000 (09:02 +0000)
From-SVN: r70761

gcc/ChangeLog
gcc/rtlanal.c

index edda5b2e933a6d22ed3c8b1e013280bb5cfe14ff..42d313fc1560730600ed4fd9607450fe61611dbc 100644 (file)
@@ -1,3 +1,7 @@
+2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * rtlanal.c (may_trap_p): Simplify an integer comparison.
+
 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
 
        * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
index 18173ebf297ec1d9381f655cd40261f6b32a8f47..6509f4f92bf3ae8a3a66f5471aa634d9347583d9 100644 (file)
@@ -2388,9 +2388,7 @@ may_trap_p (rtx x)
          || (GET_MODE_CLASS (GET_MODE (x)) == MODE_FLOAT
              && flag_trapping_math))
        return 1;
-      /* This was const0_rtx, but by not using that,
-        we can link this file into other programs.  */
-      if (GET_CODE (XEXP (x, 1)) == CONST_INT && INTVAL (XEXP (x, 1)) == 0)
+      if (XEXP (x, 1) == const0_rtx)
        return 1;
       break;