public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/54634] New: [4.8 Regression] miscompilation with -O3  -ftree-loop-distribution
@ 2012-09-20  8:55 Joost.VandeVondele at mat dot ethz.ch
  2012-09-20  8:58 ` [Bug tree-optimization/54634] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: Joost.VandeVondele at mat dot ethz.ch @ 2012-09-20  8:55 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 54634
           Summary: [4.8 Regression] miscompilation with -O3
                    -ftree-loop-distribution
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: Joost.VandeVondele@mat.ethz.ch


Created attachment 28227
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=28227
testcase sources

The attached sources are miscompiled with current trunk ([trunk revision
191430]) at -O3  -ftree-loop-distribution. To reproduce 

gfortran -O3  -ftree-loop-distribution  -ffree-form other.F mathconstants.F
orbital_pointers.F orbital_symbols.F orbital_transformation_matrices.F main.F ;
./a.out

which outputs wrong values (as compared to -O0) and shows a valgrind warning
(not present at -O0).

The miscompiled file is orbital_transformation_matrices.F, most likely the
routine create_spherical_harmonics (which seems inlined). If I cat at files in
a single .F file, the error also disappears, which might hint at some ipa thing
?

4.7 branch ([gcc-4_7-branch revision 190437]) is doing fine.


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

end of thread, other threads:[~2012-09-20 14:49 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-20  8:55 [Bug tree-optimization/54634] New: [4.8 Regression] miscompilation with -O3 -ftree-loop-distribution Joost.VandeVondele at mat dot ethz.ch
2012-09-20  8:58 ` [Bug tree-optimization/54634] " jakub at gcc dot gnu.org
2012-09-20 10:17 ` Joost.VandeVondele at mat dot ethz.ch
2012-09-20 11:30 ` rguenth at gcc dot gnu.org
2012-09-20 12:27 ` rguenth at gcc dot gnu.org
2012-09-20 13:07 ` Joost.VandeVondele at mat dot ethz.ch
2012-09-20 13:44 ` rguenther at suse dot de
2012-09-20 14:47 ` rguenth at gcc dot gnu.org
2012-09-20 14:49 ` rguenth 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).