diff options
author | Volker Reichelt <reichelt@igpm.rwth-aachen.de> | 2006-03-22 19:36:22 +0000 |
---|---|---|
committer | Volker Reichelt <reichelt@gcc.gnu.org> | 2006-03-22 19:36:22 +0000 |
commit | ddaf3b8666fb3cf656b439b36807e4fbd44f9755 (patch) | |
tree | 0ef1c23dc84a162b943f0131666ec56296a921be /gcc/system.h | |
parent | d67ab5eef80ed2d4891562bf5ff791c1b2af4a97 (diff) | |
download | gcc-ddaf3b8666fb3cf656b439b36807e4fbd44f9755.zip gcc-ddaf3b8666fb3cf656b439b36807e4fbd44f9755.tar.gz gcc-ddaf3b8666fb3cf656b439b36807e4fbd44f9755.tar.bz2 |
re PR driver/22600 (Exit code should be different from 1 for internal compiler error)
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.
From-SVN: r112292
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 c89394b..4d191e7 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 |