summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-02 14:41:25 +0000
committeredlinger <edlinger@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-02 14:41:25 +0000
commitefe8bdf56233a49029eadd86fc7691d1b408b0bc (patch)
treee43d4f31850fe5a6551d58e5f2953a3ddbeffd75
parent47ef9633e510b93bf34139d48538d5d6ee4912d1 (diff)
downloadgcc-efe8bdf56233a49029eadd86fc7691d1b408b0bc.tar.gz
2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
* gcc.dg/spec-options.c: Run the test on all targets. * gcc.dg/foo.specs: Use cpp_unique_options. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235762 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/gcc.dg/foo.specs2
-rw-r--r--gcc/testsuite/gcc.dg/spec-options.c3
3 files changed, 7 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 2ea3d7700e3..7d7dae4dcf9 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
+
+ * gcc.dg/spec-options.c: Run the test on all targets.
+ * gcc.dg/foo.specs: Use cpp_unique_options.
+
2016-05-02 Marc Glisse <marc.glisse@inria.fr>
* gcc.dg/tree-ssa/unord.c: New testcase.
diff --git a/gcc/testsuite/gcc.dg/foo.specs b/gcc/testsuite/gcc.dg/foo.specs
index 8819249fa34..45fc84306cd 100644
--- a/gcc/testsuite/gcc.dg/foo.specs
+++ b/gcc/testsuite/gcc.dg/foo.specs
@@ -1,2 +1,2 @@
-*cppruntime:
+*cpp_unique_options:
+ %{tfoo: -DFOO}
diff --git a/gcc/testsuite/gcc.dg/spec-options.c b/gcc/testsuite/gcc.dg/spec-options.c
index e3ab23ac110..01d0a0929e0 100644
--- a/gcc/testsuite/gcc.dg/spec-options.c
+++ b/gcc/testsuite/gcc.dg/spec-options.c
@@ -1,8 +1,7 @@
/* Check that -mfoo is accepted if defined in a user spec
and that it is not passed on the command line. */
/* Must be processed in EXTRA_SPECS to run. */
-/* { dg-do compile } */
-/* { dg-do run { target sh*-*-* } } */
+/* { dg-do run } */
/* { dg-options "-B${srcdir}/gcc.dg --specs=foo.specs -tfoo" } */
extern void abort(void);