]> granicus.if.org Git - clang/commit
Add gcc ARM flags -munaligned-access / -mno-unaligned-access
authorRenato Golin <renato.golin@linaro.org>
Sat, 24 Aug 2013 14:44:41 +0000 (14:44 +0000)
committerRenato Golin <renato.golin@linaro.org>
Sat, 24 Aug 2013 14:44:41 +0000 (14:44 +0000)
commit02ab7d3c0e1e5278ca0451dc846aedcf45e623cf
treef371f1e46170ab3a6c7de9be037160f9587808fb
parent45bd2946df2ff7460b7daf06a4fe34de8a58b8cf
Add gcc ARM flags -munaligned-access / -mno-unaligned-access

clang already had a mstrict-align which mentiones "Force all memory
accesses to be aligned (ARM only)". On gcc arm this is controlled by
-munaligned-access / -mno-unaligned-access. Add the gcc versions to
the frontend and make -mstrict-align and alias to -mno-unaligned-access
and only show it in clang -cc1 -help.

Since the default value for unaligned accesses / strict alignment
depends on the tripple, both the enable and disable flags are added.
If both are set, the no-unaligned-access is used.

Patch by Jeroen Hofstee.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189175 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Driver/Options.td
lib/Driver/Tools.cpp