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
a63f73f8
Commit
a63f73f8
authored
Sep 26, 2001
by
DJ Delorie
Committed by
DJ Delorie
Sep 26, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* c-typeck.c (digest_init): Check for sizeless arrays.
From-SVN: r45831
parent
9c2f7166
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
gcc/ChangeLog
+4
-0
gcc/c-typeck.c
+1
-0
No files found.
gcc/ChangeLog
View file @
a63f73f8
2001
-
09
-
26
DJ
Delorie
<
dj
@redhat
.
com
>
*
c
-
typeck
.
c
(
digest_init
)
:
Check
for
sizeless
arrays
.
2001
-
09
-
26
Richard
Henderson
<
rth
@redhat
.
com
>
*
optabs
.
c
(
init_one_libfunc
)
:
Create
a
dummy
function
type
...
...
gcc/c-typeck.c
View file @
a63f73f8
...
...
@@ -4690,6 +4690,7 @@ digest_init (type, init, require_constant, constructor_constant)
TREE_TYPE
(
inside_init
)
=
type
;
if
(
TYPE_DOMAIN
(
type
)
!=
0
&&
TYPE_SIZE
(
type
)
!=
0
&&
TREE_CODE
(
TYPE_SIZE
(
type
))
==
INTEGER_CST
/* Subtract 1 (or sizeof (wchar_t))
because it's ok to ignore the terminating null char
...
...
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