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
f6ec7e54
Commit
f6ec7e54
authored
May 03, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r870
parent
17e256d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
gcc/gcc.c
+17
-9
No files found.
gcc/gcc.c
View file @
f6ec7e54
...
...
@@ -70,11 +70,12 @@ compilation is specified by a string called a "spec". */
/* By default there is no special suffix for executables. */
#ifndef EXECUTABLE_SUFFIX
#if __MSDOS__
#define EXECUTABLE_SUFFIX ".exe"
#else
#define EXECUTABLE_SUFFIX ""
#endif
/* By default, colon separates directories in a path. */
#ifndef PATH_SEPARATOR
#define PATH_SEPARATOR ':'
#endif
#define obstack_chunk_alloc xmalloc
...
...
@@ -1073,7 +1074,6 @@ choose_temp_base ()
putenv
(
str
)
char
*
str
;
{
#ifndef __MSDOS__
/* not sure about MS/DOS */
#ifndef VMS
/* nor about VMS */
extern
char
**
environ
;
...
...
@@ -1109,7 +1109,6 @@ putenv (str)
bcopy
(
old_environ
,
environ
+
1
,
sizeof
(
char
*
)
*
(
num_envs
+
1
));
#endif
/* VMS */
#endif
/* __MSDOS__ */
}
#endif
/* HAVE_PUTENV */
...
...
@@ -1378,7 +1377,16 @@ pexecute (func, program, argv, not_last)
pfatal_with_name
(
scmd
+
strlen
(
program
)
+
2
);
for
(
i
=
1
;
argv
[
i
];
i
++
)
fprintf
(
argfile
,
"%s
\n
"
,
argv
[
i
]);
{
char
*
cp
;
for
(
cp
=
argv
[
i
];
*
cp
;
cp
++
)
{
if
(
*
cp
==
'"'
||
*
cp
==
'\''
||
*
cp
==
'\\'
||
isspace
(
*
cp
))
fputc
(
'\\'
,
argfile
);
fputc
(
*
cp
,
argfile
);
}
fputc
(
'\n'
,
argfile
);
}
fclose
(
argfile
);
i
=
system
(
scmd
);
...
...
@@ -1694,7 +1702,7 @@ process_command (argc, argv)
startp
=
endp
=
temp
;
while
(
1
)
{
if
(
(
*
endp
==
':'
)
||
(
*
endp
==
0
)
)
if
(
*
endp
==
PATH_SEPARATOR
||
*
endp
==
0
)
{
strncpy
(
nstore
,
startp
,
endp
-
startp
);
if
(
endp
==
startp
)
...
...
@@ -1727,7 +1735,7 @@ process_command (argc, argv)
startp
=
endp
=
temp
;
while
(
1
)
{
if
(
(
*
endp
==
':'
)
||
(
*
endp
==
0
)
)
if
(
*
endp
==
PATH_SEPARATOR
||
*
endp
==
0
)
{
strncpy
(
nstore
,
startp
,
endp
-
startp
);
if
(
endp
==
startp
)
...
...
@@ -1763,7 +1771,7 @@ process_command (argc, argv)
startp
=
endp
=
temp
;
while
(
1
)
{
if
(
(
*
endp
==
':'
)
||
(
*
endp
==
0
)
)
if
(
*
endp
==
PATH_SEPARATOR
||
*
endp
==
0
)
{
strncpy
(
nstore
,
startp
,
endp
-
startp
);
if
(
endp
==
startp
)
...
...
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