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
88687ce9
Commit
88687ce9
authored
Oct 19, 1993
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(process_init_element): Align structure elements that are subaggregates.
From-SVN: r5798
parent
dfa90b42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
gcc/c-typeck.c
+17
-0
No files found.
gcc/c-typeck.c
View file @
88687ce9
...
...
@@ -5828,6 +5828,23 @@ process_init_element (value)
&&
(
fieldcode
==
RECORD_TYPE
||
fieldcode
==
ARRAY_TYPE
||
fieldcode
==
UNION_TYPE
))
{
/* Structure elements may require alignment. Do this now
if necessary for the subaggregate. */
if
(
constructor_incremental
)
{
/* Advance to offset of this element. */
if
(
!
tree_int_cst_equal
(
constructor_bit_index
,
DECL_FIELD_BITPOS
(
constructor_fields
)))
{
int
next
=
(
TREE_INT_CST_LOW
(
DECL_FIELD_BITPOS
(
constructor_fields
))
/
BITS_PER_UNIT
);
int
here
=
(
TREE_INT_CST_LOW
(
constructor_bit_index
)
/
BITS_PER_UNIT
);
assemble_zeros
(
next
-
here
);
}
}
push_init_level
(
1
);
continue
;
}
...
...
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