https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78478
Uroš Bizjak <ubizjak at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-01-19 Ever confirmed|0 |1 --- Comment #17 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Joel Sherrill from comment #16) > Thanks for all the feedback. With this patch, it now builds. Is the style of > change to configure.host OK? I think the following patch to libgfortran is better. The patch will disable x87 only when -msoft-float is in effect, as already done in libgcc. --cut here-- diff --git a/libgfortran/config/fpu-387.h b/libgfortran/config/fpu-387.h index b219a65..266bf739 100644 --- a/libgfortran/config/fpu-387.h +++ b/libgfortran/config/fpu-387.h @@ -23,6 +23,11 @@ a copy of the GCC Runtime Library Exception along with this program; see the files COPYING3 and COPYING.RUNTIME respectively. If not, see <http://www.gnu.org/licenses/>. */ +#ifdef _SOFT_FLOAT +#include "fpu-generic.h" + +#else /* !_SOFT_FLOAT */ + #ifndef __SSE_MATH__ #include "cpuid.h" #endif @@ -506,3 +511,4 @@ set_fpu_underflow_mode (int gradual) __asm__ __volatile__ ("%vldmxcsr\t%0" : : "m" (cw_sse)); } +#endif /* !_SOFT_FLOAT */ --cut here--