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
15317f89
Commit
15317f89
authored
Nov 28, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(finish_decl): Use DECL_CONTEXT instead of
current_binding_level to identify file-scope variables. From-SVN: r8565
parent
ad626759
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
gcc/c-decl.c
+8
-9
No files found.
gcc/c-decl.c
View file @
15317f89
...
...
@@ -3586,8 +3586,10 @@ finish_decl (decl, init, asmspec_tree)
Also if it is not file scope.
Otherwise, let it through, but if it is not `extern'
then it may cause an error message later. */
(
DECL_INITIAL
(
decl
)
!=
0
||
current_binding_level
!=
global_binding_level
)
/* We must use DECL_CONTEXT instead of current_binding_level,
because a duplicate_decls call could have changed the binding
level of this decl. */
(
DECL_INITIAL
(
decl
)
!=
0
||
DECL_CONTEXT
(
decl
)
!=
0
)
:
/* An automatic variable with an incomplete type
is an error. */
...
...
@@ -3629,8 +3631,7 @@ finish_decl (decl, init, asmspec_tree)
end_temporary_allocation
();
/* This is a no-op in c-lang.c or something real in objc-actions.c. */
maybe_objc_check_decl
(
decl
);
rest_of_decl_compilation
(
decl
,
asmspec
,
current_binding_level
==
global_binding_level
,
rest_of_decl_compilation
(
decl
,
asmspec
,
DECL_CONTEXT
(
decl
)
==
0
,
0
);
pop_obstacks
();
}
...
...
@@ -3638,11 +3639,10 @@ finish_decl (decl, init, asmspec_tree)
{
/* This is a no-op in c-lang.c or something real in objc-actions.c. */
maybe_objc_check_decl
(
decl
);
rest_of_decl_compilation
(
decl
,
asmspec
,
current_binding_level
==
global_binding_level
,
rest_of_decl_compilation
(
decl
,
asmspec
,
DECL_CONTEXT
(
decl
)
==
0
,
0
);
}
if
(
current_binding_level
!=
global_binding_level
)
if
(
DECL_CONTEXT
(
decl
)
!=
0
)
{
/* Recompute the RTL of a local array now
if it used to be an incomplete type. */
...
...
@@ -3666,8 +3666,7 @@ finish_decl (decl, init, asmspec_tree)
{
/* This is a no-op in c-lang.c or something real in objc-actions.c. */
maybe_objc_check_decl
(
decl
);
rest_of_decl_compilation
(
decl
,
NULL_PTR
,
current_binding_level
==
global_binding_level
,
rest_of_decl_compilation
(
decl
,
NULL_PTR
,
DECL_CONTEXT
(
decl
)
==
0
,
0
);
}
...
...
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