This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hello! Attached patch avoids bootstrap error when building libgfortran for soft-float x86 targets. Configure detects when _SOFT_FLOAT is defined and uses fpu-generic.h instead of fpu-387.h header. The patch also imports ax_check_define.m4 from autoconf archive [1] - the macro is really handy, and I guess it can be used in many other places, avoiding reinventing the wheel. 2017-01-19 Uros Bizjak <ubizjak@gmail.com> PR target/78478 * config/ax_check_define.m4: New file. libgfortran/ChangeLog: 2017-01-19 Uros Bizjak <ubizjak@gmail.com> PR target/78478 * acinclude.m4: Include ../config/ax_check_define.m4 * configure.ac: Check if _SOFT_FLOAT is defined. * configure.host (i?86 | x86_64): Use fpu-generic when have_soft_float is set. * configure: Regenerate. Patch was bootstrapped and regression tested on x86_64-linux-gnu {,-m32}. OK for mainline and gcc-6 branch? [1] https://www.gnu.org/software/autoconf-archive/ax_check_define.html Uros.
Attachment:
f.diff.txt
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |