public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48864] New: -Ofast should imply -fno-protect-parens
@ 2011-05-04  8:55 burnus at gcc dot gnu.org
  2011-05-04 11:37 ` [Bug fortran/48864] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-05-04  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -Ofast should imply -fno-protect-parens
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


-Ofast implies -O3 -ffast-math and possibly some more performance options; it
should also imply -fno-protect-parens

For -Ofast, cf. http://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html

For -fno-protect-parens,
cf. http://gcc.gnu.org/onlinedocs/gfortran/Code-Gen-Options.html


That -Ofast implies -fno-protect-parens should also be documented for -Ofast.


An example how drastic the performance depends on -fno-protect-parens is the
following program; it additionally requires -funroll-loops:

http://openmp.org/forum/viewtopic.php?f=3&t=1134#p4565

gfortran timings can be found at
  http://openmp.org/forum/viewtopic.php?f=3&t=1134&start=11
  http://openmp.org/forum/viewtopic.php?f=3&t=1134&start=11#p4673


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

end of thread, other threads:[~2011-07-24 19:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-04  8:55 [Bug fortran/48864] New: -Ofast should imply -fno-protect-parens burnus at gcc dot gnu.org
2011-05-04 11:37 ` [Bug fortran/48864] " rguenth at gcc dot gnu.org
2011-05-04 17:14 ` burnus at gcc dot gnu.org
2011-07-24 19:09 ` dfranke at gcc dot gnu.org
2011-07-24 19:48 ` burnus 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).