[clang] b878641 - Revert "[clang][safestack] Remove triple from stack usage test"
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 21 15:48:05 PDT 2022
Author: Paul Kirth
Date: 2022-04-21T22:47:56Z
New Revision: b8786413d8007f6864f0dc55d95a09cffff232e3
URL: https://github.com/llvm/llvm-project/commit/b8786413d8007f6864f0dc55d95a09cffff232e3
DIFF: https://github.com/llvm/llvm-project/commit/b8786413d8007f6864f0dc55d95a09cffff232e3.diff
LOG: Revert "[clang][safestack] Remove triple from stack usage test"
This reverts commit 414f84ba29d96c8cbbe198cfc022146e4582cbef.
Requires deirectives had already been added to the test, and CC1 tests
should use a target triple.
Differential Revision: https://reviews.llvm.org/D124210
Added:
Modified:
clang/test/Frontend/stack-usage-safestack.c
Removed:
################################################################################
diff --git a/clang/test/Frontend/stack-usage-safestack.c b/clang/test/Frontend/stack-usage-safestack.c
index 0d4f1348be25c..f6e795f8ad7b3 100644
--- a/clang/test/Frontend/stack-usage-safestack.c
+++ b/clang/test/Frontend/stack-usage-safestack.c
@@ -1,10 +1,12 @@
/// Check that stack frame size warnings behave the same when safe stack is enabled
-// RUN: %clang_cc1 %s -fwarn-stack-size=48 -S -o - 2>&1 | FileCheck --check-prefix=REGULAR %s
-// RUN: %clang_cc1 %s -fwarn-stack-size=1060 -S -o - 2>&1 | FileCheck --check-prefix=IGNORE %s
+// REQUIRES: x86-registered-target
-// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=48 -S -o - 2>&1 | FileCheck --check-prefix=SAFESTACK %s
-// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=1060 -S -o - 2>&1 | FileCheck --check-prefix=IGNORE %s
+// RUN: %clang_cc1 %s -fwarn-stack-size=48 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=REGULAR %s
+// RUN: %clang_cc1 %s -fwarn-stack-size=1060 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=IGNORE %s
+
+// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=48 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=SAFESTACK %s
+// RUN: %clang_cc1 %s -fsanitize=safe-stack -fwarn-stack-size=1060 -S -o - -triple=i386-apple-darwin 2>&1 | FileCheck --check-prefix=IGNORE %s
extern void init(char *buf, int size);
extern int use_buf(char *buf, int size);
More information about the cfe-commits
mailing list