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
5522c047
Commit
5522c047
authored
Sep 14, 1993
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(digest_init): Compare types using comptypes.
From-SVN: r5321
parent
7f2ab886
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
gcc/c-typeck.c
+2
-2
No files found.
gcc/c-typeck.c
View file @
5522c047
...
@@ -4943,8 +4943,8 @@ digest_init (type, init, require_constant, constructor_constant)
...
@@ -4943,8 +4943,8 @@ digest_init (type, init, require_constant, constructor_constant)
from an expression of the same type, optionally with braces. */
from an expression of the same type, optionally with braces. */
if
(
inside_init
&&
TREE_TYPE
(
inside_init
)
!=
0
if
(
inside_init
&&
TREE_TYPE
(
inside_init
)
!=
0
&&
(
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
inside_init
))
&&
(
comptypes
(
TYPE_MAIN_VARIANT
(
TREE_TYPE
(
inside_init
)),
==
TYPE_MAIN_VARIANT
(
type
))
TYPE_MAIN_VARIANT
(
type
))
||
(
code
==
ARRAY_TYPE
||
(
code
==
ARRAY_TYPE
&&
comptypes
(
TREE_TYPE
(
inside_init
),
type
))
&&
comptypes
(
TREE_TYPE
(
inside_init
),
type
))
||
(
code
==
POINTER_TYPE
||
(
code
==
POINTER_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