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
9af5c88c
Commit
9af5c88c
authored
12 years ago
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Update for GCC push_cfun changes.
From-SVN: r191582
parent
5ae27c9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
gcc/go/gofrontend/gogo-tree.cc
+0
-9
No files found.
gcc/go/gofrontend/gogo-tree.cc
View file @
9af5c88c
...
...
@@ -476,7 +476,6 @@ Gogo::write_initialization_function(tree fndecl, tree init_stmt_list)
DECL_SAVED_TREE
(
fndecl
)
=
init_stmt_list
;
current_function_decl
=
fndecl
;
if
(
DECL_STRUCT_FUNCTION
(
fndecl
)
==
NULL
)
push_struct_function
(
fndecl
);
else
...
...
@@ -487,7 +486,6 @@ Gogo::write_initialization_function(tree fndecl, tree init_stmt_list)
cgraph_add_new_function
(
fndecl
,
false
);
current_function_decl
=
NULL_TREE
;
pop_cfun
();
}
...
...
@@ -864,17 +862,13 @@ Gogo::write_globals()
// means that we need an fndecl.
if
(
init_fndecl
==
NULL_TREE
)
init_fndecl
=
this
->
initialization_function_decl
();
current_function_decl
=
init_fndecl
;
if
(
DECL_STRUCT_FUNCTION
(
init_fndecl
)
==
NULL
)
push_struct_function
(
init_fndecl
);
else
push_cfun
(
DECL_STRUCT_FUNCTION
(
init_fndecl
));
tree
var_decl
=
is_sink
?
NULL_TREE
:
vec
[
i
];
var_init_tree
=
no
->
var_value
()
->
get_init_block
(
this
,
NULL
,
var_decl
);
current_function_decl
=
NULL_TREE
;
pop_cfun
();
}
...
...
@@ -1126,15 +1120,12 @@ Named_object::get_tree(Gogo* gogo, Named_object* function)
cfun
->
function_end_locus
=
func
->
block
()
->
end_location
().
gcc_location
();
current_function_decl
=
decl
;
func
->
build_tree
(
gogo
,
this
);
gimplify_function_tree
(
decl
);
cgraph_finalize_function
(
decl
,
true
);
current_function_decl
=
NULL_TREE
;
pop_cfun
();
}
}
...
...
This diff is collapsed.
Click to expand it.
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