This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc 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]

Re: [PATCH] Move -mlong-double-128 away from platform-agnostic files


On Fri, 1 Jun 2018, Tulio Magno Quites Machado Filho wrote:

> I'm trying to avoid compiler calls like this:
> 
>     gcc ... -mlong-double-128 ... \
>     ... -mabi=ieeelongdouble ...
> 
> Because they make it hard to understand which long double format is being used
> in a multiline compiler command.

I don't think they make it hard to understand; -mlong-double-128 says long 
double is 128-bit, which is true, and -mabi=ieeelongdouble says which 
particular 128-bit format is in use.

If you wanted to avoid redundant -mlong-double-128, I think the way would 
be to adjust the configure test in ldbl-opt so it sets (via 
LIBC_CONFIG_VAR) a Makefile variable to empty if -mlong-double-128 is the 
default, and to -mlong-double-128 if it's not the default, and then the 
ldbl-opt Makefile would use that variable in setting sysdep-CFLAGS.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]