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:
parent
ab2e14f686
commit
7a9df68ec6
@ -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
|
||||
|
@ -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
|
||||
|
5
gcc/testsuite/gcc.dg/cpp/pr71591.c
Normal file
5
gcc/testsuite/gcc.dg/cpp/pr71591.c
Normal 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 } */
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user