Commit 7a9df68e by Jakub Jelinek Committed by Jakub Jelinek

re PR rtl-optimization/71591 (SIGSEGV in test_uncond_jump (rtl-tests.c:90) with -E -fself-test)

	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
parent ab2e14f6
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> 2016-06-20 Hans-Peter Nilsson <hp@axis.com>
PR target/71571 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> 2016-06-20 David B. Robins <gcc@davidrobins.net>
PR target/71571 PR target/71571
......
/* PR rtl-optimization/71591 */
/* { dg-do preprocess } */
/* { dg-options "-fself-test" } */
/* { dg-message "self-tests incompatible with -E" "" { target *-*-* } 0 } */
...@@ -2047,6 +2047,11 @@ toplev::start_timevars () ...@@ -2047,6 +2047,11 @@ toplev::start_timevars ()
void void
toplev::run_self_tests () toplev::run_self_tests ()
{ {
if (no_backend)
{
error_at (UNKNOWN_LOCATION, "self-tests incompatible with -E");
return;
}
#if CHECKING_P #if CHECKING_P
/* Reset some state. */ /* Reset some state. */
input_location = UNKNOWN_LOCATION; input_location = UNKNOWN_LOCATION;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment