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
03d12b64
Commit
03d12b64
authored
Feb 23, 2007
by
Mark Mitchell
Committed by
Mark Mitchell
Feb 23, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* doc/invoke.texi (Spec Files): Document getenv spec function.
From-SVN: r122248
parent
22f49ccd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
gcc/ChangeLog
+2
-0
gcc/doc/invoke.texi
+13
-0
No files found.
gcc/ChangeLog
View file @
03d12b64
2007-02-22 Mark Mitchell <mark@codesourcery.com>
* doc/invoke.texi (Spec Files): Document getenv spec function.
* gcc.c (getenv_spec_function): New function.
(static_spec_functions): Add it.
* config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
...
...
gcc/doc/invoke.texi
View file @
03d12b64
...
...
@@ -7415,6 +7415,19 @@ of the current spec.
The
following
built
-
in
spec
functions
are
provided
:
@
table
@
code
@
item
@
code
{
getenv
}
The
@
code
{
getenv
}
spec
function
takes
two
arguments
:
an
environment
variable
name
and
a
string
.
If
the
environment
variable
is
not
defined
,
a
fatal
error
is
issued
.
Otherwise
,
the
return
value
is
the
value
of
the
environment
variable
concatenated
with
the
string
.
For
example
,
if
@
env
{
TOPDIR
}
is
defined
as
@
file
{/
path
/
to
/
top
},
then
:
@
smallexample
%:
getenv
(
TOPDIR
/
include
)
@
end
smallexample
expands
to
@
file
{/
path
/
to
/
top
/
include
}.
@
item
@
code
{
if
-
exists
}
The
@
code
{
if
-
exists
}
spec
function
takes
one
argument
,
an
absolute
pathname
to
a
file
.
If
the
file
exists
,
@
code
{
if
-
exists
}
returns
the
...
...
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