diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-16 18:03:31 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1995-05-16 18:03:31 -0400 |
commit | 3efba298c7bafb883a504fea152b151820c1ac9d (patch) | |
tree | 88004db04434e773e995aceb1ed7c095a00e724c | |
parent | 84ee6fd478f21c36abcc7d8b99c7f996ba267a48 (diff) | |
download | gcc-3efba298c7bafb883a504fea152b151820c1ac9d.tar.gz |
Use FATAL_EXIT_CODE instead of FAILURE_EXIT_CODE.
From-SVN: r9725
-rw-r--r-- | gcc/cccp.c | 18 | ||||
-rw-r--r-- | gcc/cpplib.c | 4 | ||||
-rw-r--r-- | gcc/cpplib.h | 8 | ||||
-rw-r--r-- | gcc/fix-header.c | 4 | ||||
-rw-r--r-- | gcc/gen-protos.c | 7 |
5 files changed, 11 insertions, 30 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c index e6870cd4a79..b699471ca1a 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -333,14 +333,6 @@ HOST_WIDE_INT parse_c_expression PROTO((char *)); extern int errno; #endif -#ifndef FAILURE_EXIT_CODE -#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */ -#endif - -#ifndef SUCCESS_EXIT_CODE -#define SUCCESS_EXIT_CODE 0 /* 0 means success on Unix. */ -#endif - /* Name under which this program was invoked. */ static char *progname; @@ -2094,7 +2086,7 @@ main (argc, argv) int fd = open (pend_files[i], O_RDONLY, 0666); if (fd < 0) { perror_with_name (pend_files[i]); - return FAILURE_EXIT_CODE; + return FATAL_EXIT_CODE; } finclude (fd, pend_files[i], &outbuf, 0, NULL_PTR); } @@ -2289,7 +2281,7 @@ main (argc, argv) int fd = open (pend_includes[i], O_RDONLY, 0666); if (fd < 0) { perror_with_name (pend_includes[i]); - return FAILURE_EXIT_CODE; + return FATAL_EXIT_CODE; } finclude (fd, pend_includes[i], &outbuf, 0, NULL_PTR); } @@ -2336,7 +2328,7 @@ main (argc, argv) fatal ("I/O error on output"); if (errors) - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); exit (SUCCESS_EXIT_CODE); perror: @@ -9936,7 +9928,7 @@ fatal (PRINTF_ALIST (msg)) vfprintf (stderr, msg, args); va_end (args); fprintf (stderr, "\n"); - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); } /* More 'friendly' abort that prints the line and file. @@ -9965,7 +9957,7 @@ pfatal_with_name (name) #ifdef VMS exit (vaxc$errno); #else - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); #endif } diff --git a/gcc/cpplib.c b/gcc/cpplib.c index 3f3e2126cba..6517deb384c 100644 --- a/gcc/cpplib.c +++ b/gcc/cpplib.c @@ -5999,7 +5999,7 @@ push_parse_file (pfile, fname) if (fd < 0) { cpp_perror_with_name (pfile, pend->arg); - return FAILURE_EXIT_CODE; + return FATAL_EXIT_CODE; } cpp_push_buffer (pfile, NULL, 0); finclude (pfile, fd, pend->arg, 0, NULL_PTR); @@ -6164,7 +6164,7 @@ push_parse_file (pfile, fname) if (fd < 0) { cpp_perror_with_name (pfile, pend->arg); - return FAILURE_EXIT_CODE; + return FATAL_EXIT_CODE; } cpp_push_buffer (pfile, NULL, 0); finclude (pfile, fd, pend->arg, 0, NULL_PTR); diff --git a/gcc/cpplib.h b/gcc/cpplib.h index 3036760925a..f1c36a048c2 100644 --- a/gcc/cpplib.h +++ b/gcc/cpplib.h @@ -31,14 +31,6 @@ extern "C" { typedef unsigned char U_CHAR; -#ifndef FAILURE_EXIT_CODE -#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */ -#endif - -#ifndef SUCCESS_EXIT_CODE -#define SUCCESS_EXIT_CODE 0 /* 0 means success on Unix. */ -#endif - struct parse_file; typedef struct cpp_reader cpp_reader; typedef struct cpp_buffer cpp_buffer; diff --git a/gcc/fix-header.c b/gcc/fix-header.c index e4d7d369a75..7e9a4670700 100644 --- a/gcc/fix-header.c +++ b/gcc/fix-header.c @@ -1189,7 +1189,7 @@ fatal (str, arg) fprintf (stderr, "%s: %s: ", progname, inc_filename); fprintf (stderr, str, arg); fprintf (stderr, "\n"); - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); } void @@ -1198,5 +1198,5 @@ cpp_pfatal_with_name (pfile, name) char *name; { cpp_perror_with_name (pfile, name); - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); } diff --git a/gcc/gen-protos.c b/gcc/gen-protos.c index 3b5c6108bfb..a7f77a98b59 100644 --- a/gcc/gen-protos.c +++ b/gcc/gen-protos.c @@ -1,5 +1,5 @@ /* gen-protos.c - massages a list of prototypes, for use by fixproto. - Copyright (C) 1993, 1994 Free Software Foundation, Inc. + Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the @@ -175,8 +175,5 @@ fatal (s) char *s; { fprintf (stderr, "%s: %s\n", "gen-protos", s); -#ifndef FAILURE_EXIT_CODE -#define FAILURE_EXIT_CODE 33 /* gnu cc command understands this */ -#endif - exit (FAILURE_EXIT_CODE); + exit (FATAL_EXIT_CODE); } |