us from having to make any backend changes.
llvm-svn: 167623
CODEGENOPT(StackRealignment , 1, 0) ///< Control whether to permit stack
///< realignment.
-CODEGENOPT(StrictAlign , 1, 0) ///< Force all memory accesses to be aligned.
CODEGENOPT(UseInitArray , 1, 0) ///< Control whether to use .init_array or
///< .ctors.
VALUE_CODEGENOPT(StackAlignment , 32, 0) ///< Overrides default stack
Options.UseSoftFloat = CodeGenOpts.SoftFloat;
Options.StackAlignmentOverride = CodeGenOpts.StackAlignment;
Options.RealignStack = CodeGenOpts.StackRealignment;
- Options.StrictAlign = CodeGenOpts.StrictAlign;
Options.DisableTailCalls = CodeGenOpts.DisableTailCalls;
Options.TrapFuncName = CodeGenOpts.TrapFuncName;
Options.PositionIndependentExecutable = LangOpts.PIELevel != 0;
CmdArgs.push_back(Args.MakeArgString("-mstack-alignment=" + alignment));
}
if (Args.hasArg(options::OPT_mstrict_align)) {
- CmdArgs.push_back(Args.MakeArgString("-mstrict-align"));
+ CmdArgs.push_back("-backend-option");
+ CmdArgs.push_back("-arm-strict-align");
}
// Forward -f options with positive and negative forms; we translate
Opts.SSPBufferSize =
Args.getLastArgIntValue(OPT_stack_protector_buffer_size, 8, Diags);
Opts.StackRealignment = Args.hasArg(OPT_mstackrealign);
- Opts.StrictAlign = Args.hasArg(OPT_mstrict_align);
if (Arg *A = Args.getLastArg(OPT_mstack_alignment)) {
StringRef Val = A->getValue();
unsigned StackAlignment = Opts.StackAlignment;
+++ /dev/null
-// RUN: %clang -### -mstrict-align %s 2>&1 | FileCheck %s
-// CHECK: -mstrict-align