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
14be024e
Commit
14be024e
authored
May 25, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1076
parent
e85ddd99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
gcc/gcc.c
+19
-5
No files found.
gcc/gcc.c
View file @
14be024e
...
...
@@ -1368,6 +1368,7 @@ static int last_pipe_input;
NOT_LAST is nonzero if this is not the last subcommand
(i.e. its output should be piped to the next one.) */
#ifndef OS2
#ifdef __MSDOS__
/* Declare these to avoid compilation error. They won't be called. */
...
...
@@ -1375,9 +1376,9 @@ int execv(const char *a, const char **b){}
int
execvp
(
const
char
*
a
,
const
char
**
b
){}
static
int
pexecute
(
func
,
program
,
argv
,
not_last
)
pexecute
(
search_flag
,
program
,
argv
,
not_last
)
int
search_flag
;
char
*
program
;
int
(
*
func
)();
char
*
argv
[];
int
not_last
;
{
...
...
@@ -1413,12 +1414,13 @@ pexecute (func, program, argv, not_last)
#else
/* not __MSDOS__ */
static
int
pexecute
(
func
,
program
,
argv
,
not_last
)
pexecute
(
search_flag
,
program
,
argv
,
not_last
)
int
search_flag
;
char
*
program
;
int
(
*
func
)();
char
*
argv
[];
int
not_last
;
{
int
(
*
func
)()
=
(
search_flag
?
execv
:
execvp
);
int
pid
;
int
pdes
[
2
];
int
input_desc
=
last_pipe_input
;
...
...
@@ -1500,6 +1502,18 @@ pexecute (func, program, argv, not_last)
}
#endif
/* not __MSDOS__ */
#else
/* not OS2 */
static
int
pexecute
(
search_flag
,
program
,
argv
,
not_last
)
int
search_flag
;
char
*
program
;
char
*
argv
[];
int
not_last
;
{
return
(
search_flag
?
spawnv
:
spawnvp
)
(
1
,
program
,
argv
);
}
#endif
/* not OS2 */
/* Execute the command specified by the arguments on the current line of spec.
When using pipes, this includes several piped-together commands
...
...
@@ -1594,7 +1608,7 @@ execute ()
{
char
*
string
=
commands
[
i
].
argv
[
0
];
commands
[
i
].
pid
=
pexecute
(
(
string
!=
commands
[
i
].
prog
?
execv
:
execvp
)
,
commands
[
i
].
pid
=
pexecute
(
string
!=
commands
[
i
].
prog
,
string
,
commands
[
i
].
argv
,
i
+
1
<
n_commands
);
...
...
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