https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743

--- Comment #15 from dave.anglin at bell dot net ---
On 2015-12-13, at 11:16 AM, kargl at gcc dot gnu.org wrote:

> What happens if you change -std=gnu11 to -std=c11?

I will check soon.  Possibly, this should be -std=c90 as most
c99 functions are handled as builtins except in strict ISO mode.
There is also -fno-builtin and -fno-builtin-floor, etc.

> 
> It is not clear why you think that this is a libgfortran
> issue.  It look likes a target problem (as hpux apparently
> does not have floorf) or a middle-end problem (as gfortran
> is supplying hpux with floorf with perfectly fine C code).

The floorf implementation in libgfortran is not okay if the compiler is free to
optimise "(float)floor" to "floorf".  This seems to be justified on the basis
that
the floorf key word was reserved in c90 and it was used for the reserved
purpose in c99.  But there is vagueness.

My knowledge of C is insufficient to determine whether the transformation is
valid or not.  If you think the transformation is not valid, feel free to
change the
category.

--
John David Anglin       dave.ang...@bell.net

Reply via email to