diff options
author | Reid Kleckner <rnk@google.com> | 2016-05-04 02:58:24 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2016-05-04 02:58:24 +0000 |
commit | 8195f696e493508b4784fbf94471e966457931b1 (patch) | |
tree | 05558c6afec703381fae821b7adff81d5e80bf55 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e9bc5ce1240a4daf04bf041d93bc8acf6a200658 (diff) | |
download | bcm5719-llvm-8195f696e493508b4784fbf94471e966457931b1.tar.gz bcm5719-llvm-8195f696e493508b4784fbf94471e966457931b1.zip |
[X86] Add -malign-double support
The -malign-double flag causes i64 and f64 types to have alignment 8
instead of 4. On x86-64, the behavior of -malign-double is enabled by default.
Rebases and cleans phosek's work here: http://reviews.llvm.org/D12860
Patch by Sean Klein
Reviewers: rnk
Subscribers: rnk, jfb, dschuff, phosek
Differential Revision: http://reviews.llvm.org/D19734
llvm-svn: 268473
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 02a570076b9..69a43662137 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -1758,6 +1758,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK, Opts.EmitAllDecls = Args.hasArg(OPT_femit_all_decls); Opts.PackStruct = getLastArgIntValue(Args, OPT_fpack_struct_EQ, 0, Diags); Opts.MaxTypeAlign = getLastArgIntValue(Args, OPT_fmax_type_align_EQ, 0, Diags); + Opts.AlignDouble = Args.hasArg(OPT_malign_double); Opts.PICLevel = getLastArgIntValue(Args, OPT_pic_level, 0, Diags); Opts.PIELevel = getLastArgIntValue(Args, OPT_pie_level, 0, Diags); Opts.Static = Args.hasArg(OPT_static_define); |