Making -malign-double effective only for x86.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
-Xclang -malign-double passes a CC1 option. This is like poking into the compiler internals. The interface is not stable, and some flags may not make sense (they can be precluded by clang/lib/Driver logic), so I am not sure why it is reported as a bug in the first place.
edit: The problem is that Opts.AlignDouble in TargetInfo.cpp needs some adaptation to make it work for aarch64_32. I will on a patch.
I think we should just add aarch64_32 support when it becomes clearer how aarch64_32 needs -malign-double.
clang-format: please reformat the code