This is the mail archive of thelibc-alpha@sourceware.orgmailing list for theglibc 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] | |
On 08/21/2017 02:08 PM, Alexey Neyman wrote:
On 08/21/2017 12:40 PM, Michael Meissner wrote:On Mon, Aug 21, 2017 at 08:56:48AM -0700, Alexey Neyman wrote:This comes up because when you configure a cross compiler, the testfor whetherlong double defaults to 64 bits or 128 bits fails (i.e. glibc is atleast 2.4or newer), and the compiler defaults long double to 64 bits. If youadd the--with-long-double-128 switch when you build the compiler, it shouldavoid theHi all,With GCC7, the test for -mfloat128 fails with a message that thisoption requires -mfloat128-type to be supplied as well. Cannotsupply both options unconditionally, though, as GCC6 would choke onunknown option.Patch attached, please review. Build-tested only, with GCC 7.2.0 and6.4.0.Regards,Alexey. From ea42205587b557c604f165ffdb745d94035fd18d Mon Sep 17 00:00:00 2001From: Alexey Neyman <stilor@att.net>Date: Mon, 21 Aug 2017 08:50:02 -0700Subject: [PATCH] Fix powerpc64le target with GCC7With GCC7, the test for -mfloat128 fails with a message that thisoption requires -mfloat128-type to be supplied as well. Cannotsupply both options unconditionally, though, as GCC6 would chokeon unknown option. * sysdeps/powerpc/powerpc64le/configure.ac: Detect if -mfloat128-type needs to be supplied in addition to -mfloat128 * configure.ac (libc_cv_compiler_powerpc64le_float128_type): New variable. * config.make.in (config-cflags-mfloat128-type): New variable. * sysdeps/powerpc/powerpc64le/configure, configure: Regenerate.message.Thanks, this explains it.Shouldn't the GCC configuration fall back to 128-bit long double ifthe test fails - given that GLIBC requires it?
This should've been:Shouldn't the GCC configuration for powerpc64le-*-linux target fall backto 128-bit long double if the test fails - given that GLIBC requires it?
Sorry, hit "send" too fast.
Regards,Alexey.Similarly, when my patch to make -mfloat128 goes in, I reworked thetest sothat float128 no longer checks if long doubles are 64 bits or 128 bits.However, if you are doing a cross compiler, you should make sure thelongdouble support matches your target system (presumably configure thecrosscompiler to use an appropriate glibc or add the --with-long-double-128configuration option).
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |