[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
================
@@ -230,6 +230,17 @@ static void getAArch64MultilibFlags(const Driver &D,
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:
I believe the same logic applies for `-mbig-endian` vs `-mlittle-endian`, where the last option provided takes effect over others.
https://github.com/llvm/llvm-project/pull/114782
More information about the cfe-commits
mailing list