aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/error.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-03-22 19:36:22 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-03-22 19:36:22 +0000
commitddaf3b8666fb3cf656b439b36807e4fbd44f9755 (patch)
tree0ef1c23dc84a162b943f0131666ec56296a921be /gcc/fortran/error.c
parentd67ab5eef80ed2d4891562bf5ff791c1b2af4a97 (diff)
downloadgcc-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/fortran/error.c')
-rw-r--r--gcc/fortran/error.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/error.c b/gcc/fortran/error.c
index 4c82c4a..435fc16 100644
--- a/gcc/fortran/error.c
+++ b/gcc/fortran/error.c
@@ -677,7 +677,7 @@ gfc_internal_error (const char *format, ...)
error_print ("", format, argp);
va_end (argp);
- exit (4);
+ exit (ICE_EXIT_CODE);
}