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
dc13bad7
Commit
dc13bad7
authored
Aug 21, 2000
by
Eli Zaretskii
Committed by
Bruce Korb
Aug 21, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent the deletion of a file before it is read on DOS
From-SVN: r35848
parent
ddd32db0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
gcc/ChangeLog
+6
-0
gcc/fixinc/fixincl.c
+7
-4
No files found.
gcc/ChangeLog
View file @
dc13bad7
2000-08-05 Eli Zaretskii <eliz@is.elta.co.il>
* fixinc/fixincl.c (fix_with_system): Pipe the output of
"external" fixes through `cat', to avoid truncating the input
file by redirection.
2000-08-21 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (lea_general_1): Copy insn condition to split
...
...
gcc/fixinc/fixincl.c
View file @
dc13bad7
...
...
@@ -914,10 +914,13 @@ fix_with_system (p_fixd, pz_fix_file, pz_file_source, pz_temp_file)
/* Don't use the "src > dstX; rm -f dst; mv -f dstX dst" trick:
dst is a temporary file anyway, so we know there's no other
file by that name; and DOS's system(3) doesn't mind to
clobber existing file in redirection. Besides, with DOS 8+3
limited file namespace, we can easily lose if dst already has
an extension that is 3 or more characters long. */
tSCC
z_cmd_fmt
[]
=
" %s > %s"
;
clobber existing file in redirection. Besides, with DOS 8+3
limited file namespace, we can easily lose if dst already has
an extension that is 3 or more characters long.
The following bizarre use of 'cat' only works on DOS boxes.
It is causing the file to be dropped into a temporary file for
'cat' to read (pipes do not work on DOS). */
tSCC
z_cmd_fmt
[]
=
" %s | cat > %s"
;
tCC
**
ppArgs
=
p_fixd
->
patch_args
;
argsize
=
sizeof
(
z_cmd_fmt
)
+
strlen
(
pz_temp_file
)
...
...
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