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
This commit is contained in:
Jakub Jelinek 2016-06-20 23:40:02 +02:00 committed by Jakub Jelinek
parent ab2e14f686
commit 7a9df68ec6
4 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,3 +1,8 @@
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

View File

@ -0,0 +1,5 @@
/* PR rtl-optimization/71591 */
/* { dg-do preprocess } */
/* { dg-options "-fself-test" } */
/* { dg-message "self-tests incompatible with -E" "" { target *-*-* } 0 } */

View File

@ -2047,6 +2047,11 @@ toplev::start_timevars ()
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;