aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorAlexandros Lamprineas <alexandros.lamprineas@arm.com>2015-10-05 12:45:10 +0000
committerAlexandros Lamprineas <alexandros.lamprineas@arm.com>2015-10-05 12:45:10 +0000
commiteda554a9b426f456366b41d53e1d85d879da1026 (patch)
treed1f8907fa36cad2141af828c860044b0a371d9f5 /clang/lib/Driver/Tools.cpp
parentbb9c116165644db4f61b6cca67af050dda91f838 (diff)
downloadllvm-eda554a9b426f456366b41d53e1d85d879da1026.zip
llvm-eda554a9b426f456366b41d53e1d85d879da1026.tar.gz
llvm-eda554a9b426f456366b41d53e1d85d879da1026.tar.bz2
The Driver does not set the +strict-align flag when targeting
[ARM] armv6m + netbsd. Tests are misssing for armv6m + darwin as well. Differential Revision: http://reviews.llvm.org/D13217 llvm-svn: 249308
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 1b42ff7..649f907 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -834,7 +834,8 @@ static void getARMTargetFeatures(const ToolChain &TC,
// The above behavior is consistent with GCC.
int VersionNum = getARMSubArchVersionNumber(Triple);
if (Triple.isOSDarwin() || Triple.isOSNetBSD()) {
- if (VersionNum < 6)
+ if (VersionNum < 6 ||
+ Triple.getSubArch() == llvm::Triple::SubArchType::ARMSubArch_v6m)
Features.push_back("+strict-align");
} else if (Triple.isOSLinux() || Triple.isOSNaCl()) {
if (VersionNum < 7)