[PATCH] Move -mlong-double-128 away from platform-agnostic files
Joseph Myers
joseph@codesourcery.com
Fri Jun 1 17:03:00 GMT 2018
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
More information about the Libc-alpha
mailing list