public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/31152]  New: -(x>y) generates wrong code
@ 2007-03-12 17:36 anton at mips dot complang dot tuwien dot ac dot at
  2007-03-12 17:43 ` [Bug tree-optimization/31152] " anton at mips dot complang dot tuwien dot ac dot at
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: anton at mips dot complang dot tuwien dot ac dot at @ 2007-03-12 17:36 UTC (permalink / raw)
  To: gcc-bugs

The actual gcc version is

gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)

When compiled and run with this gcc version, using the command line

gcc -O xxx.c && a.out

the attached program outputs -1, whereas the correct output is 0.  If
I use gcc 3.3.6 or leave away the -O flag, the program produces
correct output.


-- 
           Summary: -(x>y) generates wrong code
           Product: gcc
           Version: 4.1.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: anton at mips dot complang dot tuwien dot ac dot at
  GCC host triplet: arm-linux-gnu
GCC target triplet: arm-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31152


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-06-23 19:08 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-12 17:36 [Bug tree-optimization/31152] New: -(x>y) generates wrong code anton at mips dot complang dot tuwien dot ac dot at
2007-03-12 17:43 ` [Bug tree-optimization/31152] " anton at mips dot complang dot tuwien dot ac dot at
2007-03-13 10:20 ` [Bug target/31152] " rguenth at gcc dot gnu dot org
2007-03-23 21:28 ` fb at frank-buss dot de
2007-06-19  9:41 ` rearnsha at gcc dot gnu dot org
2007-06-23 18:07 ` rearnsha at gcc dot gnu dot org
2007-06-23 18:11 ` rearnsha at gcc dot gnu dot org
2007-06-23 19:07 ` tbm at cyrius dot com
2007-06-23 19:08 ` tbm at cyrius dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).