The documentation of -ffinite-math-only states
"This option should never be turned on by any '-O' option"

but for sh's -mieee it is said "the default is set to -ffinite-math-only"
(-mieee is unset by default)

as a result the -ffinite-math-only is turned on by default for the sh for all
optimisation levels.

on chapter 2 it was reenforced that: ... "*By default*, it (gcc) will act as
the compiler for a hosted implementation" ... and a conforming hosted
implementation 
supports the whole standard.

So either the documentation is false or infinite float values should be
supported (by default).
The ability to perform optimum floating point code is preserved by explicitly
setting it.


-- 
           Summary: [SH] -ffinite-math-only should not be on by default
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: christian dot bruel at st dot com
GCC target triplet: sh-superh-elf


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

Reply via email to