Thank you for the bug report. I've confirmed this with gcc-
linaro-4.6+bzr106903 on x86_64:

michaelh@crucis:~/linaro/bugs$ ~/linaro/gcc/build/native-4.6/install/bin/gcc 
-O3 testcase3.c 
michaelh@crucis:~/linaro/bugs$ ./a.out 
m = 1

The fault is probably introduced by r106733 which added condtional store
sinking support.

I've set it to high priority as bad code is generated.  Likely trunk
fixes include r113242, r111593, r110,443, and r114986 of lp:gcc-
linaro/4.7.


** Changed in: gcc-linaro
       Status: New => Triaged

** Changed in: gcc-linaro
   Importance: Undecided => High

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1029454

Title:
  cselim tree optimizer generates incorrect code

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc-linaro/+bug/1029454/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to