mirror of
https://gcc.gnu.org/git/gcc.git
synced 2026-02-22 20:01:22 -05:00
Use FATAL_EXIT_CODE rather than hardcoded 1 for fatal error.
From-SVN: r6079
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -164,5 +164,5 @@ yyerror (s)
|
||||
char *s;
|
||||
{
|
||||
fprintf (stderr, "syntax error in input\n");
|
||||
exit (1);
|
||||
exit (FATAL_EXIT_CODE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user