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
8e958f70
Commit
8e958f70
authored
Apr 23, 1996
by
Per Bothner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* expr.c (store_constructor): Fix test for missing array elements.
From-SVN: r11869
parent
8b8821d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
gcc/expr.c
+4
-1
No files found.
gcc/expr.c
View file @
8e958f70
...
...
@@ -3488,7 +3488,10 @@ store_constructor (exp, target, cleared)
if
(
mostly_zeros_p
(
TREE_VALUE
(
elt
)))
zero_count
+=
this_node_count
;
}
if
(
4
*
zero_count
>=
3
*
count
)
/* Clear the entire array first if there are any missing elements,
or if the incidence of zero elements is >= 75%. */
if
(
count
<
maxelt
-
minelt
+
1
||
4
*
zero_count
>=
3
*
count
)
need_to_clear
=
1
;
}
if
(
need_to_clear
)
...
...
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