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
3dc9aec6
Commit
3dc9aec6
authored
Dec 05, 2000
by
Will Cohen
Committed by
William Cohen
Dec 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modification to define_label and finish_case_label in decl.c to handle
scoping correctly. From-SVN: r38041
parent
cbb40945
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
gcc/cp/ChangeLog
+6
-0
gcc/cp/decl.c
+8
-4
No files found.
gcc/cp/ChangeLog
View file @
3dc9aec6
2000-12-05 Will Cohen <wcohen@redhat.com>
* decl.c (finish_case_label): Cleared
more_cleanups_ok in surrounding function scopes.
(define_label): Likewise.
2000-12-05 Nathan Sidwell <nathan@codesourcery.com>
* cp-tree.h (IDENTIFIER_VIRTUAL_P): Document.
...
...
gcc/cp/decl.c
View file @
3dc9aec6
...
...
@@ -5068,14 +5068,16 @@ define_label (filename, line, name)
{
tree
decl
=
lookup_label
(
name
);
struct
named_label_list
*
ent
;
register
struct
binding_level
*
p
;
for
(
ent
=
named_labels
;
ent
;
ent
=
ent
->
next
)
if
(
ent
->
label_decl
==
decl
)
break
;
/* After labels, make any new cleanups go into their
/* After labels, make any new cleanups
in the function
go into their
own new (temporary) binding contour. */
current_binding_level
->
more_cleanups_ok
=
0
;
for
(
p
=
current_binding_level
;
!
(
p
->
parm_flag
);
p
=
p
->
level_chain
)
p
->
more_cleanups_ok
=
0
;
if
(
name
==
get_identifier
(
"wchar_t"
))
cp_pedwarn
(
"label named wchar_t"
);
...
...
@@ -5161,6 +5163,7 @@ finish_case_label (low_value, high_value)
tree
high_value
;
{
tree
cond
;
register
struct
binding_level
*
p
;
if
(
!
switch_stack
)
{
...
...
@@ -5194,9 +5197,10 @@ finish_case_label (low_value, high_value)
check_switch_goto
(
switch_stack
->
level
);
/* After labels, make any new cleanups go into their
/* After labels, make any new cleanups
in the function
go into their
own new (temporary) binding contour. */
current_binding_level
->
more_cleanups_ok
=
0
;
for
(
p
=
current_binding_level
;
!
(
p
->
parm_flag
);
p
=
p
->
level_chain
)
p
->
more_cleanups_ok
=
0
;
current_function_return_value
=
NULL_TREE
;
}
...
...
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