From: Kazu Hirata Date: Sun, 24 Aug 2003 09:02:32 +0000 (+0000) Subject: * rtlanal.c (may_trap_p): Simplify an integer comparison. X-Git-Tag: releases/gcc-3.4.0~4088 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=30c3267cef53e13862011b293b07593c135b6361;p=thirdparty%2Fgcc.git * rtlanal.c (may_trap_p): Simplify an integer comparison. From-SVN: r70761 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index edda5b2e933a..42d313fc1560 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-08-24 Kazu Hirata + + * rtlanal.c (may_trap_p): Simplify an integer comparison. + 2003-08-24 Nathanael Nerode * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index 18173ebf297e..6509f4f92bf3 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -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;