[Bug c/21607] New: Optimizations convert 0 to -0 leading to difference in answers.

2005-05-16 Thread fsmith at mathworks dot com
: unassigned at gcc dot gnu dot org ReportedBy: fsmith at mathworks dot com CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21607

[Bug c/21607] Optimizations convert 0 to -0 leading to difference in answers.

2005-05-16 Thread fsmith at mathworks dot com
--- Additional Comments From fsmith at mathworks dot com 2005-05-16 13:48 --- Created an attachment (id=8901) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8901action=view) Minimal self-contained C program exhibiting problem The answer provided by this program changes depending

[Bug c/21607] Optimizations convert 0 to -0 leading to difference in answers.

2005-05-16 Thread fsmith at mathworks dot com
--- Additional Comments From fsmith at mathworks dot com 2005-05-16 13:49 --- Created an attachment (id=8902) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8902action=view) Pre-processed version of previous attachment. Preprocessed version of previous file. The previous C file

[Bug c/21607] Optimizations convert 0 to -0 leading to difference in answers.

2005-05-16 Thread fsmith at mathworks dot com
--- Additional Comments From fsmith at mathworks dot com 2005-05-16 13:50 --- Information from gcc -save-temps -v follows: Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs Thread model: posix gcc version 3.3 20030304 (Apple Computer, Inc. build 1495) /usr/libexec/gcc/darwin

[Bug c/21607] Optimizations convert 0 to -0 leading to difference in answers.

2005-05-16 Thread fsmith at mathworks dot com
--- Additional Comments From fsmith at mathworks dot com 2005-05-16 14:04 --- How do I report it to Apple? On their site http://developer.apple.com/documentation/DeveloperTools/gcc-3.3/gcc/gccbug.html#gccbug they told me to report it here (effectively). But since, for reasons