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
d70a5179
Commit
d70a5179
authored
Oct 26, 2010
by
Jason Merrill
Committed by
Jason Merrill
Oct 26, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* decl.c (finish_function): Don't look at function_depth.
From-SVN: r165967
parent
6e2f8c15
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
gcc/cp/ChangeLog
+4
-0
gcc/cp/decl.c
+1
-7
No files found.
gcc/cp/ChangeLog
View file @
d70a5179
2010
-
10
-
26
Jason
Merrill
<
jason
@redhat
.
com
>
*
decl
.
c
(
finish_function
)
:
Don
'
t
look
at
function_depth
.
2010
-
10
-
25
Rodrigo
Rivas
Costa
<
rodrigorivascosta
@gmail
.
com
>
2010
-
10
-
25
Rodrigo
Rivas
Costa
<
rodrigorivascosta
@gmail
.
com
>
Implement
opaque
-
enum
-
specifiers
for
C
++
0
x
.
Implement
opaque
-
enum
-
specifiers
for
C
++
0
x
.
...
...
gcc/cp/decl.c
View file @
d70a5179
...
@@ -12660,7 +12660,6 @@ finish_function (int flags)
...
@@ -12660,7 +12660,6 @@ finish_function (int flags)
tree
fndecl
=
current_function_decl
;
tree
fndecl
=
current_function_decl
;
tree
fntype
,
ctype
=
NULL_TREE
;
tree
fntype
,
ctype
=
NULL_TREE
;
int
inclass_inline
=
(
flags
&
2
)
!=
0
;
int
inclass_inline
=
(
flags
&
2
)
!=
0
;
int
nested
;
/* When we get some parse errors, we can end up without a
/* When we get some parse errors, we can end up without a
current_function_decl, so cope. */
current_function_decl, so cope. */
...
@@ -12672,7 +12671,6 @@ finish_function (int flags)
...
@@ -12672,7 +12671,6 @@ finish_function (int flags)
record_key_method_defined
(
fndecl
);
record_key_method_defined
(
fndecl
);
nested
=
function_depth
>
1
;
fntype
=
TREE_TYPE
(
fndecl
);
fntype
=
TREE_TYPE
(
fndecl
);
/* TREE_READONLY (fndecl) = 1;
/* TREE_READONLY (fndecl) = 1;
...
@@ -12883,11 +12881,7 @@ finish_function (int flags)
...
@@ -12883,11 +12881,7 @@ finish_function (int flags)
--
function_depth
;
--
function_depth
;
/* Clean up. */
/* Clean up. */
if
(
!
nested
)
current_function_decl
=
NULL_TREE
;
/* Let the error reporting routines know that we're outside a
function. For a nested function, this value is used in
cxx_pop_function_context and then reset via pop_function_context. */
current_function_decl
=
NULL_TREE
;
defer_mark_used_calls
=
false
;
defer_mark_used_calls
=
false
;
if
(
deferred_mark_used_calls
)
if
(
deferred_mark_used_calls
)
...
...
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