[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255 Richard Guenther rguenth at gcc dot gnu.org changed: What|Removed |Added Status|NEW |RESOLVED Known to work|| Resolution||FIXED Target Milestone|4.3.6 |4.4.0 --- Comment #7 from Richard Guenther rguenth at gcc dot gnu.org 2011-06-27 11:57:34 UTC --- Works in 4.4.
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
--- Comment #6 from gael dot guennebaud at gmail dot com 2010-06-11 14:05 --- Created an attachment (id=20893) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20893action=view) A new test case preprocessed with gcc 4.3.4 for -fno-guess-branch-probability Hi, here is a new test case showing a very similar issue when compiling with -O2 only. To be crystal clear, when compiling this example with -O2 only, then the program returns the error: Test cwiseops(Matrixfloat, 1, 1()) failed in /home/gael/Coding/eigen2/test/cwiseop.cpp (80) test_ei_isApprox(m4.setConstant(s1), m3) and valgrind report a Use of uninitialised value of size 8. On the other hand, when compiling with -O2 -fno-guess-branch-probability, then the program terminates fine, and valgrind report no error. Since the -fguess-branch-probability optimization seems to be related to -fprofile-arcs, I believe both examples exhibits the same bug. I hope that helps. Also, this example (as the previous one) works fine with gcc 3.4, 4.0.1, 4.1, 4.2, 4.4, 4.5, Intel's ICC, and various versions of MSVC. -- gael dot guennebaud at gmail dot com changed: What|Removed |Added Attachment #19210|0 |1 is obsolete|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
--- Comment #5 from rguenth at gcc dot gnu dot org 2010-05-22 18:13 --- GCC 4.3.5 is being released, adjusting target milestone. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Target Milestone|4.3.5 |4.3.6 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Priority|P3 |P2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
--- Comment #4 from rguenth at gcc dot gnu dot org 2010-03-16 11:55 --- Confirmed. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|WAITING |NEW Ever Confirmed|0 |1 Last reconfirmed|-00-00 00:00:00 |2010-03-16 11:55:04 date|| http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
--- Comment #2 from rguenth at gcc dot gnu dot org 2010-03-15 15:01 --- The preprocessed testcase does not build for me with GCC 4.3.x. Please attach preprocessed source when building with GCC 4.3. -- rguenth at gcc dot gnu dot org changed: What|Removed |Added Status|UNCONFIRMED |WAITING http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
--- Comment #3 from gael dot guennebaud at gmail dot com 2010-03-15 18:25 --- Created an attachment (id=20111) -- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=20111action=view) the test case preprocessed with 4.3.3 Oops, indeed it seems I messed up the first time. This one is gcc 4.3 approved! -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255
[Bug middle-end/42255] [4.3 Regression] broken generated code when using -fprofile-arcs and -O2
-- rguenth at gcc dot gnu dot org changed: What|Removed |Added Component|debug |middle-end Keywords||wrong-code Known to fail||4.3.3 Known to work||4.2.4 4.4.1 Summary|Regression: broken generated|[4.3 Regression] broken |code when using -fprofile- |generated code when using - |arcs and -O2|fprofile-arcs and -O2 Target Milestone|--- |4.3.5 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42255