From: Richard Stallman Date: Sat, 13 Nov 1993 09:00:21 +0000 (+0000) Subject: Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6026c19c421f68b112c57494c704749c4a94de62;p=gcc.git Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error. From-SVN: r6079 --- diff --git a/gcc/bi-lexer.c b/gcc/bi-lexer.c index d631fb60cd8..0766b5ff953 100644 --- a/gcc/bi-lexer.c +++ b/gcc/bi-lexer.c @@ -38,7 +38,7 @@ xmalloc (nbytes) if (!tmp) { fprintf (stderr, "can't allocate %d bytes (out of virtual memory)\n", nbytes); - exit (1); + exit (FATAL_EXIT_CODE); } return tmp; @@ -60,7 +60,7 @@ xrealloc (block, nbytes) if (!tmp) { fprintf (stderr, "can't reallocate %d bytes (out of virtual memory)\n", nbytes); - exit (1); + exit (FATAL_EXIT_CODE); } return tmp; diff --git a/gcc/bi-parser.y b/gcc/bi-parser.y index 5e5df8f8aff..5b3be52b209 100644 --- a/gcc/bi-parser.y +++ b/gcc/bi-parser.y @@ -164,5 +164,5 @@ yyerror (s) char *s; { fprintf (stderr, "syntax error in input\n"); - exit (1); + exit (FATAL_EXIT_CODE); }