+2011-01-21 Tobias Burnus <burnus@net-b.de>
+
+ PR fortran/47394
+ * error.c (gfc_error_now, gfc_fatal_error, gfc_error_check):
+ Use defined instead of magic number exit status codes.
+ * scanner.c (include_line, gfc_new_file): Ditto.
+ * gfortranspec.c (lang_specific_driver): Ditto.
+
2011-01-16 Jakub Jelinek <jakub@redhat.com>
Backport from mainline
buffer_flag = i;
if (flag_fatal_errors)
- exit (1);
+ exit (FATAL_EXIT_CODE);
}
error_print (_("Fatal Error:"), _(gmsgid), argp);
va_end (argp);
- exit (3);
+ exit (FATAL_EXIT_CODE);
}
gfc_increment_error_count();
if (flag_fatal_errors)
- exit (1);
+ exit (FATAL_EXIT_CODE);
}
return rc;
You may redistribute copies of GNU Fortran\n\
under the terms of the GNU General Public License.\n\
For more information about these matters, see the file named COPYING\n\n"));
- exit (0);
+ exit (SUCCESS_EXIT_CODE);
break;
case OPTION_help:
filename = gfc_widechar_to_char (begin, -1);
if (load_file (filename, NULL, false) == FAILURE)
- exit (1);
+ exit (FATAL_EXIT_CODE);
gfc_free (filename);
return true;
printf ("%s:%3d %s\n", LOCATION_FILE (line_head->location),
LOCATION_LINE (line_head->location), line_head->line);
- exit (0);
+ exit (SUCCESS_EXIT_CODE);
#endif
return result;