[clang] Add -mno-unaligned-access and -mbig-endian to ARM and AArch64 multilib flags (PR #114782)
Lucas Duarte Prates via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 4 07:31:59 PST 2024
================
@@ -287,6 +298,17 @@ static void getARMMultilibFlags(const Driver &D,
if (BranchProtectionArg) {
Result.push_back(BranchProtectionArg->getAsString(Args));
}
+
+ const Arg *StrictAlignArg = Args.getLastArgNoClaim(
+ options::OPT_mstrict_align, options::OPT_mno_unaligned_access);
+ if (StrictAlignArg) {
+ Result.push_back(StrictAlignArg->getAsString(Args));
+ }
+
+ const Arg *BigEndian = Args.getLastArgNoClaim(options::OPT_mbig_endian);
----------------
pratlucas wrote:
Ditto.
https://github.com/llvm/llvm-project/pull/114782
More information about the cfe-commits
mailing list