This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Miscompilation of remainder expressions


On Wed, Jan 17, 2007 at 04:15:08PM -0800, Ian Lance Taylor wrote:
> Robert Dewar <dewar@adacore.com> writes:
> 
> > Ian Lance Taylor wrote:
> > 
> > > We do want to generate a trap for x / 0, of course.
> > 
> > Really? Is this really defined to generate a trap in C?
> > I would be surprised if so ...
> 
> As far as I know, but I think it would be a surprising change for x /
> 0 to silently continue executing.
> 

That's exactly what happens on PPC.

> But perhaps not a very important one.

Indeed.

	Gabriel


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]