mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-16 22:55:40 +08:00
Add fancy_abort
From-SVN: r12669
This commit is contained in:
parent
ce59619c01
commit
60a3d801a8
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user