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
7a6cb708
Commit
7a6cb708
authored
Feb 17, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
compiler: Check for initialization loop in constant initializer.
From-SVN: r184347
parent
061793a4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
gcc/go/gofrontend/gogo-tree.cc
+9
-2
No files found.
gcc/go/gofrontend/gogo-tree.cc
View file @
7a6cb708
...
...
@@ -834,8 +834,15 @@ Gogo::write_globals()
else
if
(
init
==
NULL_TREE
)
;
else
if
(
TREE_CONSTANT
(
init
))
this
->
backend
()
->
global_variable_set_init
(
var
,
tree_to_expr
(
init
));
{
if
(
expression_requires
(
no
->
var_value
()
->
init
(),
NULL
,
no
))
error_at
(
no
->
location
(),
"initialization expression for %qs depends "
"upon itself"
,
no
->
message_name
().
c_str
());
this
->
backend
()
->
global_variable_set_init
(
var
,
tree_to_expr
(
init
));
}
else
if
(
is_sink
)
var_init_tree
=
init
;
else
...
...
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