aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNeil Booth <neilb@earthling.net>2000-11-06 19:10:05 +0000
committerNeil Booth <neil@gcc.gnu.org>2000-11-06 19:10:05 +0000
commit2b892489e17f2d418adef4c6e940cbab559238a5 (patch)
tree3bbdf9a946088e948466b4e9f8e0da4ed06d6084 /gcc
parentea33bfc554b774b3242edda58cca84c9c7770bfa (diff)
downloadgcc-2b892489e17f2d418adef4c6e940cbab559238a5.zip
gcc-2b892489e17f2d418adef4c6e940cbab559238a5.tar.gz
gcc-2b892489e17f2d418adef4c6e940cbab559238a5.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/c-lex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index af2474a..f24e183 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2000-11-06 Neil Booth <neilb@earthling.net>
+ * c-lex.c (init_c_lex): If cpp_start_read fails, exit with
+ error status.
+
+2000-11-06 Neil Booth <neilb@earthling.net>
+
* tradcpp.c (special_symbol): Assign an null string rather
than writing to an unallocated buffer.
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 4d4e481..42b8c39 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";