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
b1254b72
Commit
b1254b72
authored
25 years ago
by
Richard Kenner
Committed by
Richard Kenner
25 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* stor-layout.c (place_field): Set rli->offset_align properly.
From-SVN: r33262
parent
ecb36604
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
gcc/ChangeLog
+4
-0
gcc/stor-layout.c
+4
-3
No files found.
gcc/ChangeLog
View file @
b1254b72
Wed
Apr
19
12
:
14
:
55
2000
Richard
Kenner
<
kenner
@vlsi1
.
ultra
.
nyu
.
edu
>
*
stor
-
layout
.
c
(
place_field
)
:
Set
rli
->
offset_align
properly
.
2000
-
04
-
19
Kaveh
R
.
Ghazi
<
ghazi
@caip
.
rutgers
.
edu
>
*
mips
.
h
(
BITS_PER_WORD
,
UNITS_PER_WORD
,
UNITS_PER_FPREG
,
...
...
This diff is collapsed.
Click to expand it.
gcc/stor-layout.c
View file @
b1254b72
...
...
@@ -753,6 +753,9 @@ place_field (rli, field)
rli
->
offset
=
round_up
(
rli
->
offset
,
desired_align
/
BITS_PER_UNIT
);
}
if
(
!
TREE_CONSTANT
(
rli
->
offset
))
rli
->
offset_align
=
desired_align
;
}
/* Handle compatibility with PCC. Note that if the record has any
...
...
@@ -821,9 +824,6 @@ place_field (rli, field)
}
#endif
if
(
!
TREE_CONSTANT
(
rli
->
offset
))
rli
->
offset_align
=
DECL_ALIGN
(
field
);
/* Offset so far becomes the position of this field after normalizing. */
normalize_rli
(
rli
);
DECL_FIELD_OFFSET
(
field
)
=
rli
->
offset
;
...
...
@@ -866,6 +866,7 @@ place_field (rli, field)
rli
->
offset
=
size_binop
(
PLUS_EXPR
,
rli
->
offset
,
DECL_SIZE_UNIT
(
field
));
rli
->
bitpos
=
bitsize_zero_node
;
rli
->
offset_align
=
MIN
(
rli
->
offset_align
,
DECL_ALIGN
(
field
));
}
else
{
...
...
This diff is collapsed.
Click to expand it.
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