HomePhabricator

[X86][PPC] Support -mlong-double-64

Description

[X86][PPC] Support -mlong-double-64

-mlong-double-64 is supported on some ports of gcc (i386, x86_64, and ppc{32,64}).
On many other targets, there will be an error:

error: unrecognized command line option '-mlong-double-64'

This patch makes the driver option -mlong-double-64 available for x86
and ppc. The CC1 option -mlong-double-64 is available on all targets for
users to test on unsupported targets.

LongDoubleSize is added as a VALUE_LANGOPT so that the option can be
shared with -mlong-double-128 when we support it in clang.

Also, make powerpc*-linux-musl default to use 64-bit long double. It is
currently the only supported ABI on musl and is also how people
configure powerpc*-linux-musl-gcc.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D64067

Details

Committed
MaskRayJul 8 2019, 5:27 PM
Reviewer
rnk
Differential Revision
D64067: [X86][PPC] Support -mlong-double-64
Parents
rL365411: clang-cl: Port cl.exe's C4659 to clang-cl
Branches
Unknown
Tags
Unknown