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
0500d6f9
Commit
0500d6f9
authored
Apr 16, 1996
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(clear_limbo_values): New function.
(pushdecl): Call it for function body blocks. From-SVN: r11828
parent
f12d26af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
gcc/c-decl.c
+18
-0
No files found.
gcc/c-decl.c
View file @
0500d6f9
...
@@ -902,6 +902,22 @@ pushlevel (tag_transparent)
...
@@ -902,6 +902,22 @@ pushlevel (tag_transparent)
keep_next_if_subblocks
=
0
;
keep_next_if_subblocks
=
0
;
}
}
/* Clear the limbo values of all identifiers defined in BLOCK or a subblock. */
static
void
clear_limbo_values
(
block
)
tree
block
;
{
tree
tem
;
for
(
tem
=
BLOCK_VARS
(
block
);
tem
;
tem
=
TREE_CHAIN
(
tem
))
if
(
DECL_NAME
(
tem
)
!=
0
)
IDENTIFIER_LIMBO_VALUE
(
DECL_NAME
(
tem
))
=
0
;
for
(
tem
=
BLOCK_SUBBLOCKS
(
block
);
tem
;
tem
=
TREE_CHAIN
(
tem
))
clear_limbo_values
(
tem
);
}
/* Exit a binding level.
/* Exit a binding level.
Pop the level off, and restore the state of the identifier-decl mappings
Pop the level off, and restore the state of the identifier-decl mappings
that were in effect when this level was entered.
that were in effect when this level was entered.
...
@@ -1055,6 +1071,8 @@ poplevel (keep, reverse, functionbody)
...
@@ -1055,6 +1071,8 @@ poplevel (keep, reverse, functionbody)
if
(
functionbody
)
if
(
functionbody
)
{
{
clear_limbo_values
(
block
);
/* If this is the top level block of a function,
/* If this is the top level block of a function,
the vars are the function's parameters.
the vars are the function's parameters.
Don't leave them in the BLOCK because they are
Don't leave them in the BLOCK because they are
...
...
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