diff options
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index f51d2cb2b77..da80097eb5b 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -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; |