summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/unavailable_aligned_allocation.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne@apple.com>2019-04-15 14:14:45 +0000
committerLouis Dionne <ldionne@apple.com>2019-04-15 14:14:45 +0000
commitf2073321c93bba2c096a1daba3ab29f0e142f7ab (patch)
tree37a2ce0479ead1d059f3ba4e0f3fe4d66f2cd6af /clang/test/Driver/unavailable_aligned_allocation.cpp
parentf3e4f24ed749abc745a8123182234c09fd23b9ed (diff)
downloadbcm5719-llvm-f2073321c93bba2c096a1daba3ab29f0e142f7ab.tar.gz
bcm5719-llvm-f2073321c93bba2c096a1daba3ab29f0e142f7ab.zip
[clang] Aligned allocation is actually supported in macosx 10.13
Summary: In r350649, I changed aligned allocation from being available starting in macosx10.13 to macosx10.14. However, aligned allocation is indeed available starting with macosx10.13, my investigation had been based on the wrong libc++abi dylib. This means that Clang before the fix will be more stringent when it comes to aligned allocation -- it will not allow it when back-deploying to macosx 10.13, when it would actually be safe to do so. Note that a companion change will be coming to fix the libc++ tests. Reviewers: ahatanak Subscribers: jkorous, dexonsmith, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D60626 llvm-svn: 358409
Diffstat (limited to 'clang/test/Driver/unavailable_aligned_allocation.cpp')
-rw-r--r--clang/test/Driver/unavailable_aligned_allocation.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/Driver/unavailable_aligned_allocation.cpp b/clang/test/Driver/unavailable_aligned_allocation.cpp
index 131bc116be1..508202de9f4 100644
--- a/clang/test/Driver/unavailable_aligned_allocation.cpp
+++ b/clang/test/Driver/unavailable_aligned_allocation.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang -target x86_64-apple-macosx10.13 -c -### %s 2>&1 \
+// RUN: %clang -target x86_64-apple-macosx10.12 -c -### %s 2>&1 \
// RUN: | FileCheck %s -check-prefix=UNAVAILABLE
//
// RUN: %clang -target arm64-apple-ios10 -c -### %s 2>&1 \
@@ -24,7 +24,7 @@
//
// UNAVAILABLE: "-faligned-alloc-unavailable"
-// RUN: %clang -target x86_64-apple-macosx10.14 -c -### %s 2>&1 \
+// RUN: %clang -target x86_64-apple-macosx10.13 -c -### %s 2>&1 \
// RUN: | FileCheck %s -check-prefix=AVAILABLE
//
// RUN: %clang -target arm64-apple-ios11 -c -### %s 2>&1 \
@@ -54,10 +54,10 @@
// Check that passing -faligned-allocation or -fno-aligned-allocation stops the
// driver from passing -faligned-alloc-unavailable to cc1.
//
-// RUN: %clang -target x86_64-apple-macosx10.13 -faligned-allocation -c -### %s 2>&1 \
+// RUN: %clang -target x86_64-apple-macosx10.12 -faligned-allocation -c -### %s 2>&1 \
// RUN: | FileCheck %s -check-prefix=AVAILABLE
//
-// RUN: %clang -target x86_64-apple-macosx10.13 -fno-aligned-allocation -c -### %s 2>&1 \
+// RUN: %clang -target x86_64-apple-macosx10.12 -fno-aligned-allocation -c -### %s 2>&1 \
// RUN: | FileCheck %s -check-prefix=AVAILABLE
// AVAILABLE-NOT: "-faligned-alloc-unavailable"
OpenPOWER on IntegriCloud