paulkirth created this revision.
Herald added a project: All.
paulkirth requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

This reverts commit 414f84ba29d96c8cbbe198cfc022146e4582cbef 
<https://reviews.llvm.org/rG414f84ba29d96c8cbbe198cfc022146e4582cbef>.

Requires deirectives had already been added to the test, and CC1 tests
should use a target triple.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124210

Files:
  clang/test/Frontend/stack-usage-safestack.c


Index: clang/test/Frontend/stack-usage-safestack.c
===================================================================
--- clang/test/Frontend/stack-usage-safestack.c
+++ 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);


Index: clang/test/Frontend/stack-usage-safestack.c
===================================================================
--- clang/test/Frontend/stack-usage-safestack.c
+++ 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);
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
  • [PATCH] D124210: Revert "[... Paul Kirth via Phabricator via cfe-commits

Reply via email to