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

--- Comment #25 from dave.anglin at bell dot net ---
On 2015-12-16 12:12 PM, joseph at codesourcery dot com wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68743
>
> --- Comment #24 from joseph at codesourcery dot com <joseph at codesourcery 
> dot com> ---
> The transformation that generates floorf calls should not happen if the
> TARGET_LIBC_HAS_FUNCTION says that the target does not have that function.
> You should fix either the definition of TARGET_LIBC_HAS_FUNCTION or the
> logic that should be checking it, rather than working around it in
> libgfortran.
I agree and have been looking at it this morning.  We have
#define TARGET_LIBC_HAS_FUNCTION no_c99_libc_has_function
in pa-hpux.h.  Thus, IMPLICIT should be false for BUILT_IN_FLOORF.

So, I think a check is missing.

Reply via email to