public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/23985] New: [ARM] Wrong code generation with -O2
@ 2005-09-20 19:30 raj dot khem at gmail dot com
  2005-09-20 19:32 ` [Bug middle-end/23985] " raj dot khem at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: raj dot khem at gmail dot com @ 2005-09-20 19:30 UTC (permalink / raw)
  To: gcc-bugs

GCC 3.4.3 and 3.4.4 generated wrong code at -O2 and -Os opt level for the
attached testcase. If I user -O1 the test case works fine.

Secondly it also works fine if I specify -O2 -fno-if-convertion2

Thirdly If I comment out

newinfo->fig->shape = *&shape;

line in the testcase it works fine agains.

The testcase can be compile and linked and runtime outputs should match

correct output should be 1
alpha.style = 1
correct output should be 2
alpha.style = 2

in wrong code case. It prints.

correct output should be 1
alpha.style = 254
correct output should be 2
alpha.style = 2

The testcase works fine with GCC 4.0 and CVS Trunk GCC

-- 
           Summary: [ARM] Wrong code generation with -O2
           Product: gcc
           Version: 3.4.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: raj dot khem at gmail dot com
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-unknown-linux


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


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

end of thread, other threads:[~2005-10-01 13:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-20 19:30 [Bug middle-end/23985] New: [ARM] Wrong code generation with -O2 raj dot khem at gmail dot com
2005-09-20 19:32 ` [Bug middle-end/23985] " raj dot khem at gmail dot com
2005-09-20 19:36 ` [Bug rtl-optimization/23985] " pinskia at gcc dot gnu dot org
2005-09-20 19:37 ` [Bug middle-end/23985] " raj dot khem at gmail dot com
2005-09-20 19:38 ` [Bug rtl-optimization/23985] " pinskia at gcc dot gnu dot org
2005-09-30 10:13 ` rearnsha at gcc dot gnu dot org
2005-09-30 10:58 ` [Bug rtl-optimization/23985] [3.4 regression] Memory aliasing information incorrect in inlined memcpy rearnsha at gcc dot gnu dot org
2005-09-30 10:59 ` [Bug target/23985] " rearnsha at gcc dot gnu dot org
2005-10-01 13:31 ` cvs-commit at gcc dot gnu dot org
2005-10-01 13:33 ` rearnsha at gcc dot gnu dot org

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).