From 2bef3ea48658ec42d7e4a0cff421a3c7f8c0375a Mon Sep 17 00:00:00 2001 From: Manoj Gupta Date: Fri, 13 Sep 2019 00:28:37 +0000 Subject: Revert r371785. r371785 is causing fails on clang-hexagon-elf buildbots. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371799 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../sysroot_x86_64_cross_linux_tree/lib/.keep | 0 .../usr/include/c++/.keep | 0 .../usr/lib/gcc/.keep | 0 .../usr/local/include/.keep | 0 .../usr/local/lib/.keep | 0 test/Frontend/warning-poison-system-directories.c | 27 ---------------------- 6 files changed, 27 deletions(-) delete mode 100644 test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/lib/.keep delete mode 100644 test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/include/c++/.keep delete mode 100644 test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/lib/gcc/.keep delete mode 100644 test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/include/.keep delete mode 100644 test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/lib/.keep delete mode 100644 test/Frontend/warning-poison-system-directories.c (limited to 'test/Frontend') diff --git a/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/lib/.keep b/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/lib/.keep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/include/c++/.keep b/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/include/c++/.keep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/lib/gcc/.keep b/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/lib/gcc/.keep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/include/.keep b/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/include/.keep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/lib/.keep b/test/Frontend/Inputs/sysroot_x86_64_cross_linux_tree/usr/local/lib/.keep deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/test/Frontend/warning-poison-system-directories.c b/test/Frontend/warning-poison-system-directories.c deleted file mode 100644 index 018f02db36..0000000000 --- a/test/Frontend/warning-poison-system-directories.c +++ /dev/null @@ -1,27 +0,0 @@ -// System directory and sysroot option causes warning. -// RUN: %clang -Wpoison-system-directories -target x86_64 -I/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.1.stderr -// RUN: FileCheck -check-prefix=WARN < %t.1.stderr %s -// RUN: %clang -Wpoison-system-directories -target x86_64 -cxx-isystem/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.1.stderr -// RUN: FileCheck -check-prefix=WARN < %t.1.stderr %s -// RUN: %clang -Wpoison-system-directories -target x86_64 -iquote/usr/local/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.1.stderr -// RUN: FileCheck -check-prefix=WARN < %t.1.stderr %s -// RUN: %clang -Wpoison-system-directories -target x86_64 -isystem/usr/local/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.1.stderr -// RUN: FileCheck -check-prefix=WARN < %t.1.stderr %s - -// Missing target but included sysroot still causes the warning. -// RUN: %clang -Wpoison-system-directories -I/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.2.stderr -// RUN: FileCheck -check-prefix=WARN < %t.2.stderr %s - -// With -Werror the warning causes the failure. -// RUN: not %clang -Werror=poison-system-directories -target x86_64 -I/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s 2> %t.3.stderr -// RUN: FileCheck -check-prefix=ERROR < %t.3.stderr %s - -// Cros target without sysroot causes no warning. -// RUN: %clang -Wpoison-system-directories -Werror -target x86_64 -I/usr/include -c -o - %s - -// By default the warning is off. -// RUN: %clang -Werror -target x86_64 -I/usr/include --sysroot %S/Inputs/sysroot_x86_64_cross_linux_tree -c -o - %s - -// WARN: warning: include location {{[^ ]+}} is unsafe for cross-compilation [-Wpoison-system-directories] - -// ERROR: error: include location {{[^ ]+}} is unsafe for cross-compilation [-Werror,-Wpoison-system-directories] -- cgit v1.2.1