From 2b892489e17f2d418adef4c6e940cbab559238a5 Mon Sep 17 00:00:00 2001 From: Neil Booth Date: Mon, 6 Nov 2000 19:10:05 +0000 Subject: [PATCH] c-lex.c (init_c_lex): If cpp_start_read fails, exit with error status. * c-lex.c (init_c_lex): If cpp_start_read fails, exit with error status. From-SVN: r37279 --- gcc/ChangeLog | 5 +++++ gcc/c-lex.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index af2474a2b91..f24e1838027 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-11-06 Neil Booth + + * c-lex.c (init_c_lex): If cpp_start_read fails, exit with + error status. + 2000-11-06 Neil Booth * tradcpp.c (special_symbol): Assign an null string rather diff --git a/gcc/c-lex.c b/gcc/c-lex.c index 4d4e4815c5f..42b8c3978da 100644 --- a/gcc/c-lex.c +++ b/gcc/c-lex.c @@ -221,7 +221,7 @@ init_c_lex (filename) CPP_OPTION (&parse_in, digraphs) = flag_digraphs; if (! cpp_start_read (&parse_in, filename)) - abort (); + exit (FATAL_EXIT_CODE); /* cpplib has emitted an error. */ if (filename == 0 || !strcmp (filename, "-")) filename = "stdin"; -- 2.30.2