[PATCH] D59624: [Driver] Pass -malign-double from the driver to the cc1 command line

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 21 13:06:19 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL356706: [Driver] Pass -malign-double from the driver to the cc1 command line (authored by ctopper, committed by ).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Changed prior to commit:
  https://reviews.llvm.org/D59624?vs=191613&id=191768#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59624/new/

https://reviews.llvm.org/D59624

Files:
  cfe/trunk/lib/Driver/ToolChains/Clang.cpp
  cfe/trunk/test/Driver/malign_double.c


Index: cfe/trunk/lib/Driver/ToolChains/Clang.cpp
===================================================================
--- cfe/trunk/lib/Driver/ToolChains/Clang.cpp
+++ cfe/trunk/lib/Driver/ToolChains/Clang.cpp
@@ -4547,6 +4547,7 @@
   Args.AddLastArg(CmdArgs, options::OPT_fdiagnostics_parseable_fixits);
   Args.AddLastArg(CmdArgs, options::OPT_ftime_report);
   Args.AddLastArg(CmdArgs, options::OPT_ftrapv);
+  Args.AddLastArg(CmdArgs, options::OPT_malign_double);
 
   if (Arg *A = Args.getLastArg(options::OPT_ftrapv_handler_EQ)) {
     CmdArgs.push_back("-ftrapv-handler");
Index: cfe/trunk/test/Driver/malign_double.c
===================================================================
--- cfe/trunk/test/Driver/malign_double.c
+++ cfe/trunk/test/Driver/malign_double.c
@@ -0,0 +1,5 @@
+// RUN: %clang -### -malign-double %s  2>&1 | FileCheck %s
+
+// Make sure -malign-double is passed through the driver.
+
+// CHECK: "-malign-double"


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59624.191768.patch
Type: text/x-patch
Size: 943 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190321/6d586291/attachment.bin>


More information about the cfe-commits mailing list