Explicitly add -msse2 to compile HF related libgcc source file.
authorliuhongt <hongtao.liu@intel.com>
Fri, 3 Sep 2021 05:06:57 +0000 (13:06 +0800)
committerliuhongt <hongtao.liu@intel.com>
Mon, 6 Sep 2021 07:13:14 +0000 (15:13 +0800)
commit637dfcf43cfd2f01f4757abfd84d376d4011b0b2
tree540e0dce3f1edc40bdcb93e603fbb2828414664c
parenta3fb781d4b341c0d50ef1b92cd3e8734e673ef18
Explicitly add -msse2 to compile HF related libgcc source file.

For 32-bit libgcc configure w/o sse2, there's would be an error since
GCC only support _Float16 under sse2. Explicitly add -msse2 for those
HF related libgcc functions, so users can still link them w/ the
upper configuration.

libgcc/ChangeLog:

* Makefile.in: Adjust to support specific CFLAGS for each
libgcc source file.
* config/i386/64/t-softfp: Explicitly add -msse2 for HF
related libgcc source files.
* config/i386/t-softfp: Ditto.
* config/i386/_divhc3.c: New file.
* config/i386/_mulhc3.c: New file.
libgcc/Makefile.in
libgcc/config/i386/64/t-softfp
libgcc/config/i386/_divhc3.c [new file with mode: 0644]
libgcc/config/i386/_mulhc3.c [new file with mode: 0644]
libgcc/config/i386/t-softfp