AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: simonmar at microsoft dot com
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: x86_64-*-linux
GCC host triplet: x86_64-*-linux
GCC target triplet: x86_64-*-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20359
--- Additional Comments From simonmar at microsoft dot com 2005-03-07
15:11 ---
Sorry, cut & pasted that gcc -v output from the wrong window. The bug really
does occur with 3.4.2, here's the correct -v output:
$ gcc -v
Reading specs from /usr/lib/gcc/x86_64-redhat-linux/3.
d on i686-unknown-linux.
--
Summary: Wrong code for (int)x%4
Product: gcc
Version: 4.2.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
Repo
rtedBy: simonmar at microsoft dot com
GCC build triplet: x86_64-redhat-linux
GCC host triplet: x86_64-redhat-linux
GCC target triplet: x86_64-redhat-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26824
--- Comment #5 from simonmar at microsoft dot com 2006-03-23 15:10 ---
I see your point, but I still think there's a bug. Let me change the code
slightly:
#include
#include
void f(int x) {
long y;
if (x < 0) {
y = -x;
if (y > 0) {
prin