[Driver] Pass -malign-double from the driver to the cc1 command line
authorCraig Topper <craig.topper@intel.com>
Thu, 21 Mar 2019 20:07:24 +0000 (20:07 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 21 Mar 2019 20:07:24 +0000 (20:07 +0000)
commit3205dbb3f1f96e77e106f964dcf1b5f69fba4ecc
tree50d228cc32de2812dd0745a3fd1a4596476a8d1f
parent65bb3f92bd5f6d1d32dee43904c56f4f73276e62
[Driver] Pass -malign-double from the driver to the cc1 command line

-malign-double is currently only implemented in the -cc1 interface. But its declared in Options.td so it is a driver option too. But you try to use it with the driver you'll get a message about the option being unused.

This patch teaches the driver to pass the option through to cc1 so it won't be unused. The Options.td says the option is x86 only but I didn't see any x86 specific code in its impementation in cc1 so not sure if the documentation is wrong or if I should only pass this option through the driver on x86 targets.

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

llvm-svn: 356706
clang/lib/Driver/ToolChains/Clang.cpp
clang/test/Driver/malign_double.c [new file with mode: 0644]