projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3879920
)
(layout_record, PCC_BITFIELD_TYPE_MATTERS): Fix sign bug in last change.
author
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 13 Apr 1997 19:20:03 +0000
(15:20 -0400)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Sun, 13 Apr 1997 19:20:03 +0000
(15:20 -0400)
From-SVN: r13892
gcc/stor-layout.c
patch
|
blob
|
history
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index 98f5596bf6cde7073c272d8a292fcc30750b000d..e55961a9f512cbf43cfaa86365381288cf0266a2 100644
(file)
--- a/
gcc/stor-layout.c
+++ b/
gcc/stor-layout.c
@@
-440,7
+440,7
@@
layout_record (rec)
/* A bit field may not span more units of alignment of its type
than its type itself. Advance to next boundary if necessary. */
- if ((
const_size / type_align - (const_size + field_size)
/ type_align)
+ if ((
(const_size + field_size) / type_align - const_size
/ type_align)
> TREE_INT_CST_LOW (TYPE_SIZE (TREE_TYPE (field))) / type_align)
const_size = CEIL (const_size, type_align) * type_align;
}