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
6d0c8bb1
Commit
6d0c8bb1
authored
Apr 13, 2003
by
Zack Weinberg
Committed by
Zack Weinberg
Apr 13, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
From-SVN: r65540
parent
dcf92453
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
gcc/ChangeLog
+4
-0
gcc/c-typeck.c
+2
-2
No files found.
gcc/ChangeLog
View file @
6d0c8bb1
2003-04-12 Zack Weinberg <zack@codesourcery.com>
* c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
2003-04-12 Zack Weinberg <zack@codesourcery.com>
* tree.c (build_constructor): New function.
* tree.h: Prototype it.
...
...
gcc/c-typeck.c
View file @
6d0c8bb1
...
...
@@ -4759,7 +4759,7 @@ digest_init (type, init, require_constant)
if
(
code
==
VECTOR_TYPE
&&
comptypes
(
TREE_TYPE
(
inside_init
),
type
)
&&
TREE_CONSTANT
(
inside_init
))
return
build_vector
(
type
,
TREE_OPERAND
(
inside_init
,
1
));
return
build_vector
(
type
,
CONSTRUCTOR_ELTS
(
inside_init
));
/* Any type can be initialized
from an expression of the same type, optionally with braces. */
...
...
@@ -5377,7 +5377,7 @@ push_init_level (implicit)
{
constructor_constant
=
TREE_CONSTANT
(
value
);
constructor_simple
=
TREE_STATIC
(
value
);
constructor_elements
=
TREE_OPERAND
(
value
,
1
);
constructor_elements
=
CONSTRUCTOR_ELTS
(
value
);
if
(
constructor_elements
&&
(
TREE_CODE
(
constructor_type
)
==
RECORD_TYPE
||
TREE_CODE
(
constructor_type
)
==
ARRAY_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