]> gcc.gnu.org Git - gcc.git/commit
x86: Add a new option -mdaz-ftz to enable FTZ and DAZ flags in MXCSR.
authorliuhongt <hongtao.liu@intel.com>
Mon, 12 Dec 2022 07:43:58 +0000 (15:43 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 26 Dec 2022 01:11:44 +0000 (09:11 +0800)
commite54375d85d4aa5889869c2672158083b2106b623
tree5570081bb54818c753f2f39d2fd1c5ebc230c8be
parentbc38aee755ddd50496f9a1d517a9cdd86301967d
x86: Add a new option -mdaz-ftz to enable FTZ and DAZ flags in MXCSR.

if (mdaz-ftz)
  link crtfastmath.o
else if ((Ofast || ffast-math || funsafe-math-optimizations)
       && !shared && !mno-daz-ftz)
  link crtfastmath.o
else
  Don't link crtfastmath.o

gcc/ChangeLog:

PR target/55522
PR target/36821
* config/i386/gnu-user-common.h (GNU_USER_TARGET_MATHFILE_SPEC):
Link crtfastmath.o whenever -mdaz-ftz is specified. Don't link
crtfastmath.o when -share or -mno-daz-ftz is specified.
* config/i386/i386.opt (mdaz-ftz): New option.
* doc/invoke.texi (x86 options): Document mftz-daz.
gcc/config/i386/gnu-user-common.h
gcc/config/i386/i386.opt
gcc/doc/invoke.texi
This page took 0.06221 seconds and 6 git commands to generate.