--- Comment #1 from maxp at alum dot mit dot edu 2006-07-24 20:54 ---
Created an attachment (id=11930)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=11930action=view)
preprocessor output
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28473
--- Comment #2 from pinskia at physics dot uc dot edu 2006-07-24 22:01
---
Subject: Re: New: with -O, casting result of round(x) to uint64_t produces
wrong values for x INT_MAX
When compiling with -O or greater optimization, and if x INT_MAX, then code
like this:
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-07-25 02:12 ---
Hmm, this works correctly on powerpc-darwin, where we get no round function at
all.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28473