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/diagnostic.c | |
parent | d67ab5eef80ed2d4891562bf5ff791c1b2af4a97 (diff) | |
download | gcc-ddaf3b8666fb3cf656b439b36807e4fbd44f9755.tar.gz |
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/diagnostic.c')
-rw-r--r-- | gcc/diagnostic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/diagnostic.c b/gcc/diagnostic.c index b671b1a38ca..3691477e07b 100644 --- a/gcc/diagnostic.c +++ b/gcc/diagnostic.c @@ -188,7 +188,7 @@ diagnostic_count_diagnostic (diagnostic_context *context, expanded_location s = expand_location (diagnostic->location); fnotice (stderr, "%s:%d: confused by earlier errors, bailing out\n", s.file, s.line); - exit (FATAL_EXIT_CODE); + exit (ICE_EXIT_CODE); } #endif if (context->internal_error) @@ -263,7 +263,7 @@ diagnostic_action_after_output (diagnostic_context *context, fnotice (stderr, "Please submit a full bug report,\n" "with preprocessed source if appropriate.\n" "See %s for instructions.\n", bug_report_url); - exit (FATAL_EXIT_CODE); + exit (ICE_EXIT_CODE); case DK_FATAL: if (context->abort_on_error) |