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
920b13cc
Commit
920b13cc
authored
Apr 13, 1997
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(L_bb, L_exit): Use 0 rather than NULL for null pointers.
From-SVN: r13883
parent
6780a54b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
gcc/libgcc2.c
+5
-5
No files found.
gcc/libgcc2.c
View file @
920b13cc
...
...
@@ -1483,7 +1483,7 @@ __bb_exit_func (void)
/* If the file exists, and the number of counts in it is the same,
then merge them in. */
if
((
da_file
=
fopen
(
ptr
->
filename
,
"r"
))
!=
NULL
)
if
((
da_file
=
fopen
(
ptr
->
filename
,
"r"
))
!=
0
)
{
long
n_counts
=
0
;
unsigned
char
tmp
;
...
...
@@ -1855,7 +1855,7 @@ gclose (FILE *f)
{
struct
stat
buf
;
if
(
f
!=
NULL
)
if
(
f
!=
0
)
{
if
(
!
fstat
(
fileno
(
f
),
&
buf
)
&&
S_ISFIFO
(
buf
.
st_mode
))
return
pclose
(
f
);
...
...
@@ -3022,7 +3022,7 @@ int _exit_dummy_decl = 0; /* prevent compiler & linker warnings */
#ifdef NEED_ATEXIT
# include <errno.h>
static
func_ptr
*
atexit_chain
=
NULL
;
static
func_ptr
*
atexit_chain
=
0
;
static
long
atexit_chain_length
=
0
;
static
volatile
long
last_atexit_chain_slot
=
-
1
;
...
...
@@ -3068,10 +3068,10 @@ exit (int status)
for
(
;
last_atexit_chain_slot
--
>=
0
;
)
{
(
*
atexit_chain
[
last_atexit_chain_slot
+
1
])
();
atexit_chain
[
last_atexit_chain_slot
+
1
]
=
NULL
;
atexit_chain
[
last_atexit_chain_slot
+
1
]
=
0
;
}
free
(
atexit_chain
);
atexit_chain
=
NULL
;
atexit_chain
=
0
;
}
#else
/* No NEED_ATEXIT */
__do_global_dtors
();
...
...
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