This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: PR target/23485: [ia64]: Integer dvide by zero doesn't raise a signal
On Fri, Aug 19, 2005 at 01:36:37PM -0700, H. J. Lu wrote:
> frcpa is also used for FP divide. I don't know if we should unmask the
> FP divide-by-zero exception for __divdi3.
I had thought the mask was per status field, but on reviewing
the document, I see that it isn't.
> > Otherwise we're avoiding this exception whenever we inline
> > integer division code, which is certainly not the intent.
>
> Icc inlines x/y and raises interger divide-by-zero exception if y
> is zero.
So I guess the patch is ok, and we'll need to see about
inserting the break in the inline expansion.
r~