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
296a8c2f
Commit
296a8c2f
authored
May 19, 2015
by
Marek Polacek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
From-SVN: r223414
parent
90f0d176
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
gcc/c/ChangeLog
+5
-1
gcc/c/c-typeck.c
+1
-4
No files found.
gcc/c/ChangeLog
View file @
296a8c2f
2015-05-19 Marek Polacek <polacek@redhat.com>
* c-typeck.c (start_init): Use AGGREGATE_TYPE_P.
2015-05-19 Jakub Jelinek <jakub@redhat.com>
PR middle-end/66199
...
...
@@ -10,7 +14,7 @@
2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
* c-typeck.c (build_array_ref): Use std::swap instead of explicit
swaps
swaps
.
2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
...
...
gcc/c/c-typeck.c
View file @
296a8c2f
...
...
@@ -7126,10 +7126,7 @@ start_init (tree decl, tree asmspec_tree ATTRIBUTE_UNUSED, int top_level)
=
((
TREE_STATIC
(
decl
)
||
(
pedantic
&&
!
flag_isoc99
))
/* For a scalar, you can always use any value to initialize,
even within braces. */
&&
(
TREE_CODE
(
TREE_TYPE
(
decl
))
==
ARRAY_TYPE
||
TREE_CODE
(
TREE_TYPE
(
decl
))
==
RECORD_TYPE
||
TREE_CODE
(
TREE_TYPE
(
decl
))
==
UNION_TYPE
||
TREE_CODE
(
TREE_TYPE
(
decl
))
==
QUAL_UNION_TYPE
));
&&
AGGREGATE_TYPE_P
(
TREE_TYPE
(
decl
)));
locus
=
identifier_to_locale
(
IDENTIFIER_POINTER
(
DECL_NAME
(
decl
)));
}
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