Re: [PATCH 0/3] Work around icc miscompilation - Mailing list pgsql-hackers

From Greg Stark
Subject Re: [PATCH 0/3] Work around icc miscompilation
Date
Msg-id CAM-w4HN5GR9XZDg0g6j473rEdZCut=T5w4cO8hV23js4bNxvWA@mail.gmail.com
Whole thread Raw
In response to Re: [PATCH 0/3] Work around icc miscompilation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
On Sat, Feb 23, 2013 at 5:25 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Really?  Can't "INT_MAX - a" overflow?

I guess I shouldn't have tried summarizing the code and just pasted
some real code in for fear of getting it wrong. I was thinking of
unsigned arithmetic when I wrote that.

The point being that the compiler isn't going to make optimization
based on code that comes later if that code wouldn't have run in the
same flow of execution.


-- 
greg



pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: make: *** pg_xlogdump: No such file or directory. Stop.
Next
From: David Fetter
Date:
Subject: Re: Show type in psql SELECT