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
9bbd1091
Commit
9bbd1091
authored
Oct 20, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(main): Delete output file before opening it.
Discard directory names from progname. From-SVN: r5842
parent
94698f4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
gcc/fix-header.c
+10
-1
No files found.
gcc/fix-header.c
View file @
9bbd1091
...
@@ -626,7 +626,15 @@ main (argc, argv)
...
@@ -626,7 +626,15 @@ main (argc, argv)
long
int
inf_size
;
long
int
inf_size
;
if
(
argv
[
0
]
&&
argv
[
0
][
0
])
if
(
argv
[
0
]
&&
argv
[
0
][
0
])
progname
=
argv
[
0
];
{
register
char
*
p
;
progname
=
0
;
for
(
p
=
argv
[
0
];
*
p
;
p
++
)
if
(
*
p
==
'/'
)
progname
=
p
;
progname
=
progname
?
progname
+
1
:
argv
[
0
];
}
if
(
argc
<
4
)
if
(
argc
<
4
)
{
{
...
@@ -717,6 +725,7 @@ main (argc, argv)
...
@@ -717,6 +725,7 @@ main (argc, argv)
if
(
inf_limit
>
inf_buffer
&&
inf_limit
[
-
1
]
!=
'\n'
)
if
(
inf_limit
>
inf_buffer
&&
inf_limit
[
-
1
]
!=
'\n'
)
inf_limit
++
;
inf_limit
++
;
unlink
(
argv
[
3
]);
outf
=
fopen
(
argv
[
3
],
"w"
);
outf
=
fopen
(
argv
[
3
],
"w"
);
if
(
outf
==
NULL
)
if
(
outf
==
NULL
)
{
{
...
...
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