Add fancy_abort

From-SVN: r12669
This commit is contained in:
Michael Meissner 1996-08-23 14:45:19 +00:00
parent ce59619c01
commit 60a3d801a8
3 changed files with 30 additions and 0 deletions

View File

@ -79,3 +79,13 @@ xmalloc (nbytes)
return tmp;
}
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */
void
fancy_abort ()
{
fprintf (stderr, "Internal gcc abort.\n");
exit (FATAL_EXIT_CODE);
}

View File

@ -77,3 +77,13 @@ xmalloc (nbytes)
return tmp;
}
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */
void
fancy_abort ()
{
fprintf (stderr, "Internal gcc abort.\n");
exit (FATAL_EXIT_CODE);
}

View File

@ -58,3 +58,13 @@ xmalloc (nbytes)
return tmp;
}
/* More 'friendly' abort that prints the line and file.
config.h can #define abort fancy_abort if you like that sort of thing. */
void
fancy_abort ()
{
fprintf (stderr, "Internal gcc abort.\n");
exit (FATAL_EXIT_CODE);
}