aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2016-05-02 14:41:25 +0000
committerBernd Edlinger <edlinger@gcc.gnu.org>2016-05-02 14:41:25 +0000
commit72407e00fd86e794aa5f0cb36523e43798ad35f8 (patch)
treee43d4f31850fe5a6551d58e5f2953a3ddbeffd75 /gcc
parentdd53d197a2b19dc53efe7937a793b3909830d767 (diff)
downloadgcc-72407e00fd86e794aa5f0cb36523e43798ad35f8.zip
gcc-72407e00fd86e794aa5f0cb36523e43798ad35f8.tar.gz
gcc-72407e00fd86e794aa5f0cb36523e43798ad35f8.tar.bz2
spec-options.c: Run the test on all targets.
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. From-SVN: r235762
Diffstat (limited to 'gcc')
-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 2ea3d77..7d7dae4 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 8819249..45fc843 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 e3ab23a..01d0a09 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);