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
3ee1e240
Commit
3ee1e240
authored
May 29, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_init_constructor): Never set current_index
itself--always store into current_index_node. From-SVN: r4591
parent
e8b1e868
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
gcc/c-typeck.c
+12
-3
No files found.
gcc/c-typeck.c
View file @
3ee1e240
...
@@ -5254,12 +5254,18 @@ process_init_constructor (type, init, elts, constant_value, constant_element,
...
@@ -5254,12 +5254,18 @@ process_init_constructor (type, init, elts, constant_value, constant_element,
element. */
element. */
warning
(
"empty array initializer range"
);
warning
(
"empty array initializer range"
);
tail
=
TREE_CHAIN
(
tail
);
tail
=
TREE_CHAIN
(
tail
);
current_index
=
end_index
;
TREE_INT_CST_LOW
(
current_index
)
=
TREE_INT_CST_LOW
(
end_index
);
TREE_INT_CST_HIGH
(
current_index
)
=
TREE_INT_CST_HIGH
(
end_index
);
continue
;
continue
;
}
}
else
else
{
{
current_index
=
start_index
;
TREE_INT_CST_LOW
(
current_index
)
=
TREE_INT_CST_LOW
(
start_index
);
TREE_INT_CST_HIGH
(
current_index
)
=
TREE_INT_CST_HIGH
(
start_index
);
win
=
1
;
win
=
1
;
/* See if the first element is also the last. */
/* See if the first element is also the last. */
if
(
!
tree_int_cst_lt
(
current_index
,
end_index
))
if
(
!
tree_int_cst_lt
(
current_index
,
end_index
))
...
@@ -5276,7 +5282,10 @@ process_init_constructor (type, init, elts, constant_value, constant_element,
...
@@ -5276,7 +5282,10 @@ process_init_constructor (type, init, elts, constant_value, constant_element,
else
else
{
{
constant_expression_warning
(
index
);
constant_expression_warning
(
index
);
current_index
=
index
,
win
=
1
;
TREE_INT_CST_LOW
(
current_index
)
=
TREE_INT_CST_LOW
(
index
);
TREE_INT_CST_HIGH
(
current_index
)
=
TREE_INT_CST_HIGH
(
index
);
win
=
1
;
}
}
if
(
!
win
)
if
(
!
win
)
...
...
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