aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.c
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>1999-04-14 09:40:56 +0000
committerZack Weinberg <zack@gcc.gnu.org>1999-04-14 09:40:56 +0000
commit34ca9541e706330f52d63cb1fde4adaf65c1775e (patch)
tree5c0f7e812107a4a1edffd2adab583d43d11252a1 /gcc/cpplib.c
parent42ebbb0a1d80d913a908b73aecf718e98f08cac4 (diff)
downloadgcc-34ca9541e706330f52d63cb1fde4adaf65c1775e.zip
gcc-34ca9541e706330f52d63cb1fde4adaf65c1775e.tar.gz
gcc-34ca9541e706330f52d63cb1fde4adaf65c1775e.tar.bz2
cpperror.c, [...]: Never call abort.
1999-04-14 12:37 -0400 Zack Weinberg <zack@rabi.columbia.edu> * cpperror.c, cppexp.c, cpplib.c: Never call abort. * cpphash.c: Only call abort when we detect corruption of the malloc arena. * cppmain.c: Don't define fatal or fancy_abort. From-SVN: r26442
Diffstat (limited to 'gcc/cpplib.c')
-rw-r--r--gcc/cpplib.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cpplib.c b/gcc/cpplib.c
index 3ed75db..aa198dd 100644
--- a/gcc/cpplib.c
+++ b/gcc/cpplib.c
@@ -836,7 +836,10 @@ cpp_expand_to_buffer (pfile, buf, length)
#endif
if (length < 0)
- abort ();
+ {
+ cpp_fatal (pfile, "internal error: length < 0 in cpp_expand_to_buffer");
+ return;
+ }
/* Set up the input on the input stack. */