PR rtl-optimization/71591
* toplev.c (toplev::run_self_tests): If no_backend, complain and
don't run any tests.
* gcc.dg/cpp/pr71591.c: New test.
From-SVN: r237620
+2016-06-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR rtl-optimization/71591
+ * toplev.c (toplev::run_self_tests): If no_backend, complain and
+ don't run any tests.
+
2016-06-20 Hans-Peter Nilsson <hp@axis.com>
PR target/71571
+2016-06-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR rtl-optimization/71591
+ * gcc.dg/cpp/pr71591.c: New test.
+
2016-06-20 David B. Robins <gcc@davidrobins.net>
PR target/71571
--- /dev/null
+/* PR rtl-optimization/71591 */
+/* { dg-do preprocess } */
+/* { dg-options "-fself-test" } */
+
+/* { dg-message "self-tests incompatible with -E" "" { target *-*-* } 0 } */
void
toplev::run_self_tests ()
{
+ if (no_backend)
+ {
+ error_at (UNKNOWN_LOCATION, "self-tests incompatible with -E");
+ return;
+ }
#if CHECKING_P
/* Reset some state. */
input_location = UNKNOWN_LOCATION;