diff options
author | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-22 19:36:22 +0000 |
---|---|---|
committer | reichelt <reichelt@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-03-22 19:36:22 +0000 |
commit | 87011ef06ed381f5716d53222fb68a2ae0863436 (patch) | |
tree | 0ef1c23dc84a162b943f0131666ec56296a921be /gcc/system.h | |
parent | f23886abacad045dae2b04895dddea4aaec2db1c (diff) | |
download | gcc-87011ef06ed381f5716d53222fb68a2ae0863436.tar.gz |
PR driver/22600
* system.h (ICE_EXIT_CODE): New macro.
* diagnostic.c (diagnostic_count_diagnostic): Exit with ICE_EXIT_CODE.
(diagnostic_action_after_output): Likewise.
* gcc.c (fatal_ice): New function.
(execute): Use it instead of fatal.
(fancy_abort): Likewise.
* doc/invoke.texi (-pass-exit-codes): Document return code for ICEs.
* fortran/error.c (gfc_fatal_error): Return ICE_EXIT_CODE instead of 4.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@112292 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/system.h')
-rw-r--r-- | gcc/system.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/system.h b/gcc/system.h index c89394b47cd..4d191e7009d 100644 --- a/gcc/system.h +++ b/gcc/system.h @@ -227,6 +227,8 @@ extern int errno; # endif #endif +#define ICE_EXIT_CODE 4 + #ifdef HAVE_UNISTD_H # include <unistd.h> #endif |