public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/13877] New: [3.3 regression] miscompilation with -O -funroll-loops on powerpc
@ 2004-01-27  7:37 debian-gcc at lists dot debian dot org
  2004-01-27  7:38 ` [Bug target/13877] " debian-gcc at lists dot debian dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2004-01-27  7:37 UTC (permalink / raw)
  To: gcc-bugs

[forwarded from http://bugs.debian.org/229567]

seen with 3.3 CVS 20040110, not in 3.2.3 and 3.4 CVS.

When complied with -O -funroll-loops on powerpc, the attached test.i 
produces the following output: 
 
Bytes in main:  0 1 
Bytes in: 0 1 0 1 0 1 ( 0 10 15 254) 
x = 282 
Bytes in: 0 1 0 1 0 1 ( 94 52 15 254) 
x = 418 
Bytes in: 0 1 0 1 0 1 ( 7 208 15 254) 
x = 487 
 
The reported x's should be the sum of the first six numbers on the line 
above. Instead, it is the sum of _all_ the numbers on the line above. 
Changing -O to -O2, or removing -funroll-loops generates the following 
(correct) result: 

Bytes in main:  0 1 
Bytes in: 0 1 0 1 0 1 ( 70 148 15 234) 
x = 3 
Bytes in: 0 1 0 1 0 1 ( 0 10 15 254) 
x = 3 
Bytes in: 0 1 0 1 0 1 ( 7 76 15 234) 
x = 3 
 
On 386, this problem does not occur. 
 
Note that this could be the same bug as PR13222, in which case this would 
be a nice, small, test case. I have not actually looked at the test case 
in PR13222 however, since it is rather large. 
 
Flags used: 
  gcc -O -funroll-loops test.i

-- 
           Summary: [3.3 regression] miscompilation with -O -funroll-loops
                    on powerpc
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: critical
          Priority: P2
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: powerpc-linux
  GCC host triplet: powerpc-linux
GCC target triplet: powerpc-linux


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


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

end of thread, other threads:[~2004-03-13  7:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-27  7:37 [Bug target/13877] New: [3.3 regression] miscompilation with -O -funroll-loops on powerpc debian-gcc at lists dot debian dot org
2004-01-27  7:38 ` [Bug target/13877] " debian-gcc at lists dot debian dot org
2004-01-27  7:44 ` pinskia at gcc dot gnu dot org
2004-01-27  8:25 ` pinskia at gcc dot gnu dot org
2004-02-15 12:41 ` gdr at gcc dot gnu dot org
2004-03-05 11:38 ` gdr at gcc dot gnu dot org
2004-03-05 22:08 ` doko at cs dot tu-berlin dot de
2004-03-10 23:43 ` wilson at gcc dot gnu dot org
2004-03-13  1:19 ` cvs-commit at gcc dot gnu dot org
2004-03-13  1:20 ` gdr at gcc dot gnu dot org
2004-03-13  7:04 ` debian-gcc at lists dot debian 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).