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
ee7204ee
Commit
ee7204ee
authored
Jul 26, 1994
by
Jim Wilson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_init_element): Do not call push_init_level
if the value is error_mark_node. From-SVN: r7796
parent
f1f8fc97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
gcc/c-typeck.c
+3
-0
No files found.
gcc/c-typeck.c
View file @
ee7204ee
...
...
@@ -6020,6 +6020,7 @@ process_init_element (value)
/* Otherwise, if we have come to a subaggregate,
and we don't have an element of its type, push into it. */
else
if
(
value
!=
0
&&
!
constructor_no_implicit
&&
value
!=
error_mark_node
&&
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
value
))
!=
fieldtype
&&
(
fieldcode
==
RECORD_TYPE
||
fieldcode
==
ARRAY_TYPE
||
fieldcode
==
UNION_TYPE
))
...
...
@@ -6083,6 +6084,7 @@ process_init_element (value)
/* Otherwise, if we have come to a subaggregate,
and we don't have an element of its type, push into it. */
else
if
(
value
!=
0
&&
!
constructor_no_implicit
&&
value
!=
error_mark_node
&&
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
value
))
!=
fieldtype
&&
(
fieldcode
==
RECORD_TYPE
||
fieldcode
==
ARRAY_TYPE
||
fieldcode
==
UNION_TYPE
))
...
...
@@ -6126,6 +6128,7 @@ process_init_element (value)
/* Otherwise, if we have come to a subaggregate,
and we don't have an element of its type, push into it. */
else
if
(
value
!=
0
&&
!
constructor_no_implicit
&&
value
!=
error_mark_node
&&
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
value
))
!=
elttype
&&
(
eltcode
==
RECORD_TYPE
||
eltcode
==
ARRAY_TYPE
||
eltcode
==
UNION_TYPE
))
...
...
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