https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118955
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|fortran |target
Status|UNCONFIRMED |NEW
Last reconfirmed| |2025-02-20
Target|aarch64-*-* ; x86_64-*-* |*gnu*
Ever confirmed|0 |1
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> But it is the later fpre-include.
>
> #define TARGET_F951_OPTIONS "%{!nostdinc:\
> %:fortran-preinclude-file(-fpre-include= math-vector-fortran.h
> finclude%s/)}"
>
>
> I wonder if find_fortran_preinclude_file could be extended to say only
> include it with -ffast-math enabled (or the other options needed for
> -ffast-math).
>
> Since the driver still does processing of the options.
Or you could just do:
#define TARGET_F951_OPTIONS "%{Ofast|ffast-math|funsafe-math-optimizations: \
%{!nostdinc: \
%:fortran-preinclude-file(-fpre-include= math-vector-fortran.h
finclude%s/)}}"
Which enables only for ffast-math in the specs in the first place.