forked from OSchip/llvm-project
parent
d1821587c7
commit
8f41aee760
|
@ -177,10 +177,6 @@ public:
|
|||
/// \brief Check if the toolchain should use the integrated assembler.
|
||||
bool useIntegratedAs() const;
|
||||
|
||||
/// IsStrictAliasingDefault - Does this tool chain use -fstrict-aliasing by
|
||||
/// default.
|
||||
virtual bool IsStrictAliasingDefault() const { return true; }
|
||||
|
||||
/// IsMathErrnoDefault - Does this tool chain use -fmath-errno by default.
|
||||
virtual bool IsMathErrnoDefault() const { return true; }
|
||||
|
||||
|
|
|
@ -2307,8 +2307,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
OptSpecifier StrictAliasingAliasOption = OFastEnabled ? options::OPT_Ofast :
|
||||
options::OPT_fstrict_aliasing;
|
||||
if (!Args.hasFlag(options::OPT_fstrict_aliasing, StrictAliasingAliasOption,
|
||||
options::OPT_fno_strict_aliasing,
|
||||
getToolChain().IsStrictAliasingDefault()))
|
||||
options::OPT_fno_strict_aliasing, true))
|
||||
CmdArgs.push_back("-relaxed-aliasing");
|
||||
if (!Args.hasFlag(options::OPT_fstruct_path_tbaa,
|
||||
options::OPT_fno_struct_path_tbaa))
|
||||
|
|
Loading…
Reference in New Issue