[Bug ada/13620] New: [3.3 regression] gcc -O3 -fprofile-arcs causes an array initalizer to be miscompiled
debian-gcc at lists dot debian dot org
gcc-bugzilla@gcc.gnu.org
Thu Jan 8 23:26:00 GMT 2004
[forwarded from http://bugs.debian.org/226244]
seen with 3.3 CVS 20031229, works ok with 3.2.3, link error with head.
This is where I gave up on narrowing it down.
--*---*---*-
-*-*-*-*-*-*
------------
------------
------------
------------
-*-*-*-*-*-*
--*---*---*-
is what it should look like,
------*---*-
-*-*-*-*-*-*
------------
------------
------------
------------
-*-*-*-*-*-*
--*---*---*-
is what it looks like with -O3 -fprofile-arcs. As you can see from the
initalizer below, a gold basilisk is missing from the board. If I remove
the upper two layers that aren't being printed out, it stops
miscompiling.
--
Summary: [3.3 regression] gcc -O3 -fprofile-arcs causes an array
initalizer to be miscompiled
Product: gcc
Version: 3.3.3
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: ada
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
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13620
More information about the Gcc-bugs
mailing list