summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2016-04-04 18:27:32 +0000
committerReid Kleckner <rnk@google.com>2016-04-04 18:27:32 +0000
commit80fc4bc68a79e5795fa0bed0c27b3d8231d3a560 (patch)
treecd70197b5a9ae8330c56c51194258993a423ec60
parent87a50c4f26be70e8795f0b4e6a9ff848998434c6 (diff)
downloadbcm5719-llvm-80fc4bc68a79e5795fa0bed0c27b3d8231d3a560.tar.gz
bcm5719-llvm-80fc4bc68a79e5795fa0bed0c27b3d8231d3a560.zip
Apply suggestion from HJ Lu to avoid misaligned stack in test
Fixes PR27191 llvm-svn: 265322
-rw-r--r--compiler-rt/test/asan/TestCases/Linux/clone_test.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Linux/clone_test.cc b/compiler-rt/test/asan/TestCases/Linux/clone_test.cc
index e9c1f166eb4..f6eb26100f5 100644
--- a/compiler-rt/test/asan/TestCases/Linux/clone_test.cc
+++ b/compiler-rt/test/asan/TestCases/Linux/clone_test.cc
@@ -22,7 +22,7 @@ int Child(void *arg) {
int main(int argc, char **argv) {
const int kStackSize = 1 << 20;
- char child_stack[kStackSize + 1];
+ char __attribute__((aligned(16))) child_stack[kStackSize + 1];
char *sp = child_stack + kStackSize; // Stack grows down.
printf("Parent: %p\n", sp);
pid_t clone_pid = clone(Child, sp, CLONE_FILES | CLONE_VM, NULL);
OpenPOWER on IntegriCloud