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
d4c40650
Commit
d4c40650
authored
Jun 30, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
From-SVN: r1355
parent
f3ee8ad1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletions
+10
-1
gcc/stor-layout.c
+10
-1
No files found.
gcc/stor-layout.c
View file @
d4c40650
...
@@ -40,6 +40,10 @@ tree size_zero_node;
...
@@ -40,6 +40,10 @@ tree size_zero_node;
tree
size_one_node
;
tree
size_one_node
;
/* If nonzero, this is an upper limit on alignment of structure fields.
The value is measured in bits. */
int
maximum_field_alignment
;
#define GET_MODE_ALIGNMENT(MODE) \
#define GET_MODE_ALIGNMENT(MODE) \
MIN (BIGGEST_ALIGNMENT, \
MIN (BIGGEST_ALIGNMENT, \
MAX (1, (GET_MODE_UNIT_SIZE (MODE) * BITS_PER_UNIT)))
MAX (1, (GET_MODE_UNIT_SIZE (MODE) * BITS_PER_UNIT)))
...
@@ -198,7 +202,12 @@ layout_decl (decl, known_align)
...
@@ -198,7 +202,12 @@ layout_decl (decl, known_align)
/* Conditions are: a fixed size that is correct for another mode
/* Conditions are: a fixed size that is correct for another mode
and occupying a complete byte or bytes on proper boundary. */
and occupying a complete byte or bytes on proper boundary. */
if
(
code
==
FIELD_DECL
)
if
(
code
==
FIELD_DECL
)
DECL_BIT_FIELD_TYPE
(
decl
)
=
DECL_BIT_FIELD
(
decl
)
?
type
:
0
;
{
DECL_BIT_FIELD_TYPE
(
decl
)
=
DECL_BIT_FIELD
(
decl
)
?
type
:
0
;
if
(
maximum_field_alignment
!=
0
)
DECL_ALIGN
(
decl
)
=
MIN
(
DECL_ALIGN
(
decl
),
maximum_field_alignment
);
}
if
(
DECL_BIT_FIELD
(
decl
)
if
(
DECL_BIT_FIELD
(
decl
)
&&
TYPE_SIZE
(
type
)
!=
0
&&
TYPE_SIZE
(
type
)
!=
0
&&
TREE_CODE
(
TYPE_SIZE
(
type
))
==
INTEGER_CST
)
&&
TREE_CODE
(
TYPE_SIZE
(
type
))
==
INTEGER_CST
)
...
...
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