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
72cf6902
Commit
72cf6902
authored
Mar 24, 1998
by
Nick Clifton
Committed by
Nick Clifton
Mar 24, 1998
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add definition of GET_ENVIRONMENT and make prefix_from_env() use it.
From-SVN: r18801
parent
1fdb7d93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
gcc/ChangeLog
+2
-1
gcc/collect2.c
+8
-2
No files found.
gcc/ChangeLog
View file @
72cf6902
...
...
@@ -7,7 +7,8 @@ Tue Mar 24 10:44:11 1998 Nick Clifton <nickc@cygnus.com>
(main): Test for debug command line switch at start of program
execution.
(main): Use GET_ENVIRONMENT rather than getenv().
(prefix_from_env): Use GET_ENVIRONMENT.
1998-03-24 Mark Mitchell <mmitchell@usa.net>
* cplus-dem.c (optable): Add sizeof.
...
...
gcc/collect2.c
View file @
72cf6902
...
...
@@ -242,9 +242,14 @@ char * temporary_firstobj;
/* Defined in the automatically-generated underscore.c. */
extern
int
prepends_underscore
;
extern
char
*
getenv
();
extern
char
*
mktemp
();
extern
FILE
*
fdopen
();
#ifndef GET_ENVIRONMENT
#define GET_ENVIRONMENT(ENV_VALUE,ENV_NAME) ENV_VALUE = getenv (ENV_NAME)
#endif
/* Structure to hold all the directories in which to search for files to
execute. */
...
...
@@ -906,7 +911,8 @@ prefix_from_env (env, pprefix)
char
*
env
;
struct
path_prefix
*
pprefix
;
{
char
*
p
=
getenv
(
env
);
char
*
p
;
GET_ENVIRONMENT
(
p
,
env
);
if
(
p
)
prefix_from_string
(
p
,
pprefix
);
...
...
@@ -1032,7 +1038,7 @@ main (argc, argv)
In practice, collect will rarely invoke itself. This can happen now
that we are no longer called gld. A perfect example is when running
gcc in a build directory that has been installed. When looking for
ld, we will find our installed version and believe that's the real ld. */
ld
's
, we will find our installed version and believe that's the real ld. */
/* We must also append COLLECT_NAME to COLLECT_NAMES to watch for the
previous version of collect (the one that used COLLECT_NAME and only
...
...
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