[PATCH, configure, libgfortran]: PR78478: Use fpu-generic for x86 when _SOFT_FLOAT is defined

Janne Blomqvist blomqvist.janne@gmail.com
Thu Jan 19 21:02:00 GMT 2017


On Thu, Jan 19, 2017 at 10:43 PM, Uros Bizjak <ubizjak@gmail.com> wrote:
> 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?

Ok, thanks.

>
> [1] https://www.gnu.org/software/autoconf-archive/ax_check_define.html
>
> Uros.



-- 
Janne Blomqvist



More information about the Gcc-patches mailing list