public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/59343] New: miscompiled for loop in sh4 target (-Os)
@ 2013-11-29 13:52 gcc-bugzilla-f5d8 at theblacksun dot eu
  2013-11-29 13:55 ` [Bug target/59343] " gcc-bugzilla-f5d8 at theblacksun dot eu
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: gcc-bugzilla-f5d8 at theblacksun dot eu @ 2013-11-29 13:52 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 59343
           Summary: miscompiled for loop in sh4 target (-Os)
           Product: gcc
           Version: 4.8.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gcc-bugzilla-f5d8 at theblacksun dot eu

Created attachment 31327
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=31327&action=edit
miscompilation testcase

The attached testcase miscompiles on sh4 target if build with -Os

$ sh4-unknown-linux-gnu-g++ -Wall -Wextra -o for_loop_miscompile_O2 -O2
for_loop_miscompile.cpp
$ sh4-unknown-linux-gnu-g++ -Wall -Wextra -o for_loop_miscompile_Os -Os
for_loop_miscompile.cpp

target $ ./for_loop_miscompile_O2
teststring = 0x411068
teststring = 0x411068
target $ ./for_loop_miscompile_Os
teststring = 0x411068
teststring = 0x1


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

end of thread, other threads:[~2013-12-06 12:52 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-29 13:52 [Bug target/59343] New: miscompiled for loop in sh4 target (-Os) gcc-bugzilla-f5d8 at theblacksun dot eu
2013-11-29 13:55 ` [Bug target/59343] " gcc-bugzilla-f5d8 at theblacksun dot eu
2013-11-29 13:55 ` gcc-bugzilla-f5d8 at theblacksun dot eu
2013-12-02 12:57 ` gcc-bugzilla-f5d8 at theblacksun dot eu
2013-12-02 13:02 ` gcc-bugzilla-f5d8 at theblacksun dot eu
2013-12-03 12:52 ` chrbr at gcc dot gnu.org
2013-12-03 14:55 ` gcc-bugzilla-f5d8 at theblacksun dot eu
2013-12-03 22:22 ` olegendo at gcc dot gnu.org
2013-12-06 10:47 ` olegendo at gcc dot gnu.org
2013-12-06 12:52 ` olegendo at gcc dot gnu.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).