This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] MIPS, use trap instead of break to detect divide by zero
- From: Richard Sandiford <rsandifo at redhat dot com>
- To: David Daney <ddaney at avtrex dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 01 Jul 2004 09:26:14 +0100
- Subject: Re: [RFC] MIPS, use trap instead of break to detect divide by zero
- References: <40E3AE83.4040805@avtrex.com>
David Daney <ddaney@avtrex.com> writes:
> +#define TARGET_HAS_TRAP (mips_isa > 1)
There's already a macro for this: ISA_HAS_COND_TRAP. You should also
adjust the length attribute of the division instruction.
Richard