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
90dba8f4
Commit
90dba8f4
authored
Nov 05, 2011
by
Jason Merrill
Committed by
Jason Merrill
Nov 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (cp_finish_decl): Mostly revert previous change.
From-SVN: r181017
parent
feeeff5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+7
-5
No files found.
gcc/cp/ChangeLog
View file @
90dba8f4
2011-11-05 Jason Merrill <jason@redhat.com>
* decl.c (cp_finish_decl): Mostly revert previous change.
2011-11-04 Jason Merrill <jason@redhat.com>
2011-11-04 Jason Merrill <jason@redhat.com>
PR c++/26714
PR c++/26714
...
...
gcc/cp/decl.c
View file @
90dba8f4
...
@@ -5907,8 +5907,7 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
...
@@ -5907,8 +5907,7 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
tree
asmspec_tree
,
int
flags
)
tree
asmspec_tree
,
int
flags
)
{
{
tree
type
;
tree
type
;
VEC
(
tree
,
gc
)
*
cleanups
=
make_tree_vector
();
VEC
(
tree
,
gc
)
*
cleanups
=
NULL
;
unsigned
i
;
tree
t
;
const
char
*
asmspec
=
NULL
;
const
char
*
asmspec
=
NULL
;
int
was_readonly
=
0
;
int
was_readonly
=
0
;
bool
var_definition_p
=
false
;
bool
var_definition_p
=
false
;
...
@@ -6316,9 +6315,12 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
...
@@ -6316,9 +6315,12 @@ cp_finish_decl (tree decl, tree init, bool init_const_expr_p,
/* If a CLEANUP_STMT was created to destroy a temporary bound to a
/* If a CLEANUP_STMT was created to destroy a temporary bound to a
reference, insert it in the statement-tree now. */
reference, insert it in the statement-tree now. */
FOR_EACH_VEC_ELT
(
tree
,
cleanups
,
i
,
t
)
if
(
cleanups
)
push_cleanup
(
decl
,
t
,
false
);
{
release_tree_vector
(
cleanups
);
unsigned
i
;
tree
t
;
FOR_EACH_VEC_ELT
(
tree
,
cleanups
,
i
,
t
)
push_cleanup
(
decl
,
t
,
false
);
}
if
(
was_readonly
)
if
(
was_readonly
)
TREE_READONLY
(
decl
)
=
1
;
TREE_READONLY
(
decl
)
=
1
;
...
...
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