From 414f84ba29d96c8cbbe198cfc022146e4582cbef Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Thu, 21 Apr 2022 21:51:03 +0000 Subject: [PATCH] [clang][safestack] Remove triple from stack usage test Supplying the target triple caused breakeages for compilers that don't support the supplied triple. Reviewed By: mysterymath Differential Revision: https://reviews.llvm.org/D124203 --- clang/test/Frontend/stack-usage-safestack.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/clang/test/Frontend/stack-usage-safestack.c b/clang/test/Frontend/stack-usage-safestack.c index f6e795f8ad7b..0d4f1348be25 100644 --- a/clang/test/Frontend/stack-usage-safestack.c +++ b/clang/test/Frontend/stack-usage-safestack.c @@ -1,12 +1,10 @@ /// Check that stack frame size warnings behave the same when safe stack is enabled -// REQUIRES: x86-registered-target +// 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 -// 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 +// 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 extern void init(char *buf, int size); extern int use_buf(char *buf, int size);