This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: /internet
- To: tim at wagner dot Princeton dot EDU (Tim Hollebeek)
- Subject: Re: /internet
- From: Joe Buck <jbuck at Synopsys dot COM>
- Date: Wed, 16 Dec 98 8:40:41 PST
- Cc: law at cygnus dot com, jbuck at Synopsys dot COM, moshier at mediaone dot net, tprince at cat dot e-mail dot com, bosch at gnat dot com, burley at gnu dot org, egcs at cygnus dot com, hjstein at bfr dot co dot il
> I believe the example you were talking about yesterday violates IEEE,
> since the reordering you suggested can change the value of the result
> (by causing an intermediate (c*d) to overflow, when left to right
> evaluation would not cause an overflow):
Does IEEE require left-to-right evaluation of y = a * b * c * d;
when there are no parentheses present?