This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] zero division checks
- From: Eric Christopher <echristo at redhat dot com>
- To: Richard Sandiford <rsandifo at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 03 Jun 2005 12:04:03 -0700
- Subject: [committed] zero division checks
- References: <1115423520.5414.37.camel@localhost.localdomain> <87ll6ry2oi.fsf@firetop.home>
>
> It is, but I wouldn't object to adding "RejectNegative" to those
> two options if you think it's confusing.
OK. Done :)
committed mainline. tested by hand and mipsisa64-elf. no regressions.
-eric
2005-06-03 Eric Christopher <echristo@redhat.com>
* config/mips/mips.opts: Add RejectNegative to divide-breaks
and divide-traps.
Index: gcc/config/mips/mips.opt
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/mips/mips.opt,v
retrieving revision 1.5
diff -u -p -w -r1.5 mips.opt
--- gcc/config/mips/mips.opt 26 May 2005 05:27:57 -0000 1.5
+++ gcc/config/mips/mips.opt 3 Jun 2005 19:00:41 -0000
@@ -44,11 +44,11 @@ Target Report Mask(CHECK_ZERO_DIV)
Trap on integer divide by zero
mdivide-breaks
-Target Report Mask(DIVIDE_BREAKS)
+Target Report RejectNegative Mask(DIVIDE_BREAKS)
Use branch-and-break sequences to check for integer divide by zero
mdivide-traps
-Target Report InverseMask(DIVIDE_BREAKS, DIVIDE_TRAPS)
+Target Report RejectNegative InverseMask(DIVIDE_BREAKS, DIVIDE_TRAPS)
Use trap instructions to check for integer divide by zero
mdouble-float