Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
84ee6fd4
Commit
84ee6fd4
authored
May 16, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FATAL_EXIT_CODE instead of FAILURE_EXIT_CODE.
Include config.h #ifndef EMACS. From-SVN: r9724
parent
299846f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
gcc/cpperror.c
+6
-2
gcc/cppmain.c
+5
-1
No files found.
gcc/cpperror.c
View file @
84ee6fd4
...
@@ -25,6 +25,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
...
@@ -25,6 +25,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include "cpplib.h"
#include "cpplib.h"
#include <stdio.h>
#include <stdio.h>
#ifndef EMACS
#include "config.h"
#endif
/* not EMACS */
/* Print the file names and line numbers of the #include
/* Print the file names and line numbers of the #include
commands which led to the current file. */
commands which led to the current file. */
...
@@ -106,7 +110,7 @@ fatal (str, arg)
...
@@ -106,7 +110,7 @@ fatal (str, arg)
fprintf
(
stderr
,
"%s: "
,
progname
);
fprintf
(
stderr
,
"%s: "
,
progname
);
fprintf
(
stderr
,
str
,
arg
);
fprintf
(
stderr
,
str
,
arg
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
}
}
...
@@ -119,6 +123,6 @@ cpp_pfatal_with_name (pfile, name)
...
@@ -119,6 +123,6 @@ cpp_pfatal_with_name (pfile, name)
#ifdef VMS
#ifdef VMS
exit
(
vaxc
$
errno
);
exit
(
vaxc
$
errno
);
#else
#else
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
#endif
#endif
}
}
gcc/cppmain.c
View file @
84ee6fd4
...
@@ -23,6 +23,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
...
@@ -23,6 +23,10 @@ Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#include "cpplib.h"
#include "cpplib.h"
#include <stdio.h>
#include <stdio.h>
#ifndef EMACS
#include "config.h"
#endif
/* not EMACS */
extern
char
*
getenv
();
extern
char
*
getenv
();
cpp_reader
parse_in
;
cpp_reader
parse_in
;
...
@@ -89,6 +93,6 @@ main (argc, argv)
...
@@ -89,6 +93,6 @@ main (argc, argv)
cpp_finish
(
&
parse_in
);
cpp_finish
(
&
parse_in
);
if
(
parse_in
.
errors
)
if
(
parse_in
.
errors
)
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment