public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/35259]  New: PAREN_EXPR: Option to allow for reassociation
@ 2008-02-20  9:28 burnus at gcc dot gnu dot org
  2008-02-20 10:10 ` [Bug fortran/35259] " rguenth at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: burnus at gcc dot gnu dot org @ 2008-02-20  9:28 UTC (permalink / raw)
  To: gcc-bugs

Follow up to http://gcc.gnu.org/ml/fortran/2008-02/msg00157.html

Contrary to C, Fortran allows a lot of reassociations (-fassociative-math is
enabled by default in Fortran. THE GCC MANPAGE NEEDS TO BE UPDATED!).

Contrary to C with -fassociative-math, parentheses are still honoured, i.e. "(x
+ 2**52) - 2**52)" remains such while "x + 2**52 - 2**52" can be optimized to
"x".

In C the "= x" happens for both versions using -ffast-math. However, in Fortran
it never is done. We should add an option to do so optionally. One could argue
that option should be enabled by default for -ffast-math.


-- 
           Summary: PAREN_EXPR: Option to allow for reassociation
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-02-23 13:56 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-20  9:28 [Bug fortran/35259] New: PAREN_EXPR: Option to allow for reassociation burnus at gcc dot gnu dot org
2008-02-20 10:10 ` [Bug fortran/35259] " rguenth at gcc dot gnu dot org
2008-02-20 10:12 ` rguenth at gcc dot gnu dot org
2008-02-20 10:23 ` burnus at gcc dot gnu dot org
2008-02-20 10:50 ` rguenther at suse dot de
2008-02-21  9:57 ` [Bug fortran/35259] -fassociative-math not enabled by default; No option to associate with PAREN_EXPRs rguenth at gcc dot gnu dot org
2010-02-21 13:06 ` burnus at gcc dot gnu dot org
2010-02-21 13:06 ` burnus at gcc dot gnu dot org
2010-02-23 13:56 ` hjl dot tools at gmail dot com

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).