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
3efba298
Commit
3efba298
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.
From-SVN: r9725
parent
84ee6fd4
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
30 deletions
+11
-30
gcc/cccp.c
+5
-13
gcc/cpplib.c
+2
-2
gcc/cpplib.h
+0
-8
gcc/fix-header.c
+2
-2
gcc/gen-protos.c
+2
-5
No files found.
gcc/cccp.c
View file @
3efba298
...
@@ -333,14 +333,6 @@ HOST_WIDE_INT parse_c_expression PROTO((char *));
...
@@ -333,14 +333,6 @@ HOST_WIDE_INT parse_c_expression PROTO((char *));
extern
int
errno
;
extern
int
errno
;
#endif
#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. */
/* Name under which this program was invoked. */
static
char
*
progname
;
static
char
*
progname
;
...
@@ -2094,7 +2086,7 @@ main (argc, argv)
...
@@ -2094,7 +2086,7 @@ main (argc, argv)
int
fd
=
open
(
pend_files
[
i
],
O_RDONLY
,
0666
);
int
fd
=
open
(
pend_files
[
i
],
O_RDONLY
,
0666
);
if
(
fd
<
0
)
{
if
(
fd
<
0
)
{
perror_with_name
(
pend_files
[
i
]);
perror_with_name
(
pend_files
[
i
]);
return
FA
ILURE
_EXIT_CODE
;
return
FA
TAL
_EXIT_CODE
;
}
}
finclude
(
fd
,
pend_files
[
i
],
&
outbuf
,
0
,
NULL_PTR
);
finclude
(
fd
,
pend_files
[
i
],
&
outbuf
,
0
,
NULL_PTR
);
}
}
...
@@ -2289,7 +2281,7 @@ main (argc, argv)
...
@@ -2289,7 +2281,7 @@ main (argc, argv)
int
fd
=
open
(
pend_includes
[
i
],
O_RDONLY
,
0666
);
int
fd
=
open
(
pend_includes
[
i
],
O_RDONLY
,
0666
);
if
(
fd
<
0
)
{
if
(
fd
<
0
)
{
perror_with_name
(
pend_includes
[
i
]);
perror_with_name
(
pend_includes
[
i
]);
return
FA
ILURE
_EXIT_CODE
;
return
FA
TAL
_EXIT_CODE
;
}
}
finclude
(
fd
,
pend_includes
[
i
],
&
outbuf
,
0
,
NULL_PTR
);
finclude
(
fd
,
pend_includes
[
i
],
&
outbuf
,
0
,
NULL_PTR
);
}
}
...
@@ -2336,7 +2328,7 @@ main (argc, argv)
...
@@ -2336,7 +2328,7 @@ main (argc, argv)
fatal
(
"I/O error on output"
);
fatal
(
"I/O error on output"
);
if
(
errors
)
if
(
errors
)
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
exit
(
SUCCESS_EXIT_CODE
);
perror
:
perror
:
...
@@ -9936,7 +9928,7 @@ fatal (PRINTF_ALIST (msg))
...
@@ -9936,7 +9928,7 @@ fatal (PRINTF_ALIST (msg))
vfprintf
(
stderr
,
msg
,
args
);
vfprintf
(
stderr
,
msg
,
args
);
va_end
(
args
);
va_end
(
args
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
}
}
/* More 'friendly' abort that prints the line and file.
/* More 'friendly' abort that prints the line and file.
...
@@ -9965,7 +9957,7 @@ pfatal_with_name (name)
...
@@ -9965,7 +9957,7 @@ pfatal_with_name (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/cpplib.c
View file @
3efba298
...
@@ -5999,7 +5999,7 @@ push_parse_file (pfile, fname)
...
@@ -5999,7 +5999,7 @@ push_parse_file (pfile, fname)
if
(
fd
<
0
)
if
(
fd
<
0
)
{
{
cpp_perror_with_name
(
pfile
,
pend
->
arg
);
cpp_perror_with_name
(
pfile
,
pend
->
arg
);
return
FA
ILURE
_EXIT_CODE
;
return
FA
TAL
_EXIT_CODE
;
}
}
cpp_push_buffer
(
pfile
,
NULL
,
0
);
cpp_push_buffer
(
pfile
,
NULL
,
0
);
finclude
(
pfile
,
fd
,
pend
->
arg
,
0
,
NULL_PTR
);
finclude
(
pfile
,
fd
,
pend
->
arg
,
0
,
NULL_PTR
);
...
@@ -6164,7 +6164,7 @@ push_parse_file (pfile, fname)
...
@@ -6164,7 +6164,7 @@ push_parse_file (pfile, fname)
if
(
fd
<
0
)
if
(
fd
<
0
)
{
{
cpp_perror_with_name
(
pfile
,
pend
->
arg
);
cpp_perror_with_name
(
pfile
,
pend
->
arg
);
return
FA
ILURE
_EXIT_CODE
;
return
FA
TAL
_EXIT_CODE
;
}
}
cpp_push_buffer
(
pfile
,
NULL
,
0
);
cpp_push_buffer
(
pfile
,
NULL
,
0
);
finclude
(
pfile
,
fd
,
pend
->
arg
,
0
,
NULL_PTR
);
finclude
(
pfile
,
fd
,
pend
->
arg
,
0
,
NULL_PTR
);
...
...
gcc/cpplib.h
View file @
3efba298
...
@@ -31,14 +31,6 @@ extern "C" {
...
@@ -31,14 +31,6 @@ extern "C" {
typedef
unsigned
char
U_CHAR
;
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
;
struct
parse_file
;
typedef
struct
cpp_reader
cpp_reader
;
typedef
struct
cpp_reader
cpp_reader
;
typedef
struct
cpp_buffer
cpp_buffer
;
typedef
struct
cpp_buffer
cpp_buffer
;
...
...
gcc/fix-header.c
View file @
3efba298
...
@@ -1189,7 +1189,7 @@ fatal (str, arg)
...
@@ -1189,7 +1189,7 @@ fatal (str, arg)
fprintf
(
stderr
,
"%s: %s: "
,
progname
,
inc_filename
);
fprintf
(
stderr
,
"%s: %s: "
,
progname
,
inc_filename
);
fprintf
(
stderr
,
str
,
arg
);
fprintf
(
stderr
,
str
,
arg
);
fprintf
(
stderr
,
"
\n
"
);
fprintf
(
stderr
,
"
\n
"
);
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
}
}
void
void
...
@@ -1198,5 +1198,5 @@ cpp_pfatal_with_name (pfile, name)
...
@@ -1198,5 +1198,5 @@ cpp_pfatal_with_name (pfile, name)
char
*
name
;
char
*
name
;
{
{
cpp_perror_with_name
(
pfile
,
name
);
cpp_perror_with_name
(
pfile
,
name
);
exit
(
FA
ILURE
_EXIT_CODE
);
exit
(
FA
TAL
_EXIT_CODE
);
}
}
gcc/gen-protos.c
View file @
3efba298
/* gen-protos.c - massages a list of prototypes, for use by fixproto.
/* 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
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
under the terms of the GNU General Public License as published by the
...
@@ -175,8 +175,5 @@ fatal (s)
...
@@ -175,8 +175,5 @@ fatal (s)
char
*
s
;
char
*
s
;
{
{
fprintf
(
stderr
,
"%s: %s
\n
"
,
"gen-protos"
,
s
);
fprintf
(
stderr
,
"%s: %s
\n
"
,
"gen-protos"
,
s
);
#ifndef FAILURE_EXIT_CODE
exit
(
FATAL_EXIT_CODE
);
#define FAILURE_EXIT_CODE 33
/* gnu cc command understands this */
#endif
exit
(
FAILURE_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