This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] Move -mlong-double-128 away from platform-agnostic files
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Tulio Magno Quites Machado Filho <tuliom at linux dot ibm dot com>
- Cc: <libc-alpha at sourceware dot org>
- Date: Fri, 1 Jun 2018 17:03:33 +0000
- Subject: Re: [PATCH] Move -mlong-double-128 away from platform-agnostic files
- References: <20180528220027.30943-1-tuliom@linux.ibm.com> <alpine.DEB.2.20.1805312124340.10808@digraph.polyomino.org.uk> <877eniecb2.fsf@linux.ibm.com>
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