[PATCH] D64067: [X86][PPC] Support -mlong-double-64

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 2 04:34:56 PDT 2019


MaskRay created this revision.
MaskRay added reviewers: awilfox, echristo, hfinkel, rnk, rsmith.
Herald added subscribers: cfe-commits, jsji, kbarton, nemanjai.
Herald added a project: clang.

-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 -mlong-double-64 available for x86 and ppc.

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


Repository:
  rC Clang

https://reviews.llvm.org/D64067

Files:
  include/clang/Basic/LangOptions.def
  include/clang/Driver/Options.td
  lib/Basic/Targets/PPC.cpp
  lib/Basic/Targets/X86.cpp
  lib/Basic/Targets/X86.h
  lib/Driver/ToolChains/Clang.cpp
  lib/Frontend/CompilerInvocation.cpp
  test/CodeGen/long-double-x86.c
  test/CodeGen/ppc64-align-long-double.c
  test/CodeGen/ppc64-long-double.c
  test/CodeGen/x86-long-double.c
  test/Driver/mlong-double-64.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64067.207516.patch
Type: text/x-patch
Size: 7740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190702/e6878d3b/attachment-0001.bin>


More information about the cfe-commits mailing list