From: Andris Pavenis Date: Fri, 21 Oct 2016 16:22:51 +0000 (+0300) Subject: re PR preprocessor/71681 (header.gcc file lookup is broken for -remap) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67a6cac73cffde2acfe155b6ad767632c71798fd;p=gcc.git re PR preprocessor/71681 (header.gcc file lookup is broken for -remap) 2016-10-21 Andris Pavenis PR preprocessor/71681 * gcc.dg/cpp/pr71681-1.c: New testcase * gcc.dg/cpp/pr71681-2.c: Likewise * gcc.dg/cpp/remap/header.gcc: File for added test-cases * gcc.dg/cpp/remap/a/header.gcc: Likewise * gcc.dg/cpp/remap/a/t_1.h: Likewise * gcc.dg/cpp/remap/a/t_2.h: Likewise From-SVN: r241415 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0754aec5004..b89c6ced59e 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,13 @@ +2016-10-21 Andris Pavenis + + PR preprocessor/71681 + * gcc.dg/cpp/pr71681-1.c: New testcase + * gcc.dg/cpp/pr71681-2.c: Likewise + * gcc.dg/cpp/remap/header.gcc: File for added test-cases + * gcc.dg/cpp/remap/a/header.gcc: Likewise + * gcc.dg/cpp/remap/a/t_1.h: Likewise + * gcc.dg/cpp/remap/a/t_2.h: Likewise + 2016-10-21 Jakub Jelinek PR target/78057 diff --git a/gcc/testsuite/gcc.dg/cpp/pr71681-1.c b/gcc/testsuite/gcc.dg/cpp/pr71681-1.c new file mode 100644 index 00000000000..a18535160cd --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr71681-1.c @@ -0,0 +1,5 @@ +// PR preprocessor/71681 +// { dg-do preprocess } +// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" } + +#include "a/t1.h" diff --git a/gcc/testsuite/gcc.dg/cpp/pr71681-2.c b/gcc/testsuite/gcc.dg/cpp/pr71681-2.c new file mode 100644 index 00000000000..162e366b1e1 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/pr71681-2.c @@ -0,0 +1,5 @@ +// PR preprocessor/71681 +// { dg-do preprocess } +// { dg-options "-remap -I$srcdir/gcc.dg/cpp/remap" } + +#include "a/t2.h" diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc b/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc new file mode 100644 index 00000000000..a0e2b7e9f6b --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/header.gcc @@ -0,0 +1 @@ +t2.h t_2.h diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h b/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h new file mode 100644 index 00000000000..600cfce8341 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/t_1.h @@ -0,0 +1 @@ +/* Test file for cpp option -remap test */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h b/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h new file mode 100644 index 00000000000..600cfce8341 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/a/t_2.h @@ -0,0 +1 @@ +/* Test file for cpp option -remap test */ \ No newline at end of file diff --git a/gcc/testsuite/gcc.dg/cpp/remap/header.gcc b/gcc/testsuite/gcc.dg/cpp/remap/header.gcc new file mode 100644 index 00000000000..0331f897fe9 --- /dev/null +++ b/gcc/testsuite/gcc.dg/cpp/remap/header.gcc @@ -0,0 +1 @@ +a/t1.h a/t_1.h