aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1995-05-16 18:02:38 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1995-05-16 18:02:38 -0400
commit84ee6fd478f21c36abcc7d8b99c7f996ba267a48 (patch)
tree8eb9e080af589a182c95994414f235c2798b4912 /gcc
parent299846f2e7f5c81ba846d0740b18fd4291286051 (diff)
downloadgcc-84ee6fd478f21c36abcc7d8b99c7f996ba267a48.zip
gcc-84ee6fd478f21c36abcc7d8b99c7f996ba267a48.tar.gz
gcc-84ee6fd478f21c36abcc7d8b99c7f996ba267a48.tar.bz2
Use FATAL_EXIT_CODE instead of FAILURE_EXIT_CODE.
Include config.h #ifndef EMACS. From-SVN: r9724
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cpperror.c8
-rw-r--r--gcc/cppmain.c6
2 files changed, 11 insertions, 3 deletions
diff --git a/gcc/cpperror.c b/gcc/cpperror.c
index a610e2f..ad91848 100644
--- a/gcc/cpperror.c
+++ b/gcc/cpperror.c
@@ -25,6 +25,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include "cpplib.h"
#include <stdio.h>
+#ifndef EMACS
+#include "config.h"
+#endif /* not EMACS */
+
/* Print the file names and line numbers of the #include
commands which led to the current file. */
@@ -106,7 +110,7 @@ fatal (str, arg)
fprintf (stderr, "%s: ", progname);
fprintf (stderr, str, arg);
fprintf (stderr, "\n");
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
}
@@ -119,6 +123,6 @@ cpp_pfatal_with_name (pfile, name)
#ifdef VMS
exit (vaxc$errno);
#else
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
#endif
}
diff --git a/gcc/cppmain.c b/gcc/cppmain.c
index d78bf89..386a0ec 100644
--- a/gcc/cppmain.c
+++ b/gcc/cppmain.c
@@ -23,6 +23,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include "cpplib.h"
#include <stdio.h>
+#ifndef EMACS
+#include "config.h"
+#endif /* not EMACS */
+
extern char *getenv ();
cpp_reader parse_in;
@@ -89,6 +93,6 @@ main (argc, argv)
cpp_finish (&parse_in);
if (parse_in.errors)
- exit (FAILURE_EXIT_CODE);
+ exit (FATAL_EXIT_CODE);
exit (SUCCESS_EXIT_CODE);
}