OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge from gcc-2.8
[pf3gnuchains/gcc-fork.git]
/
gcc
/
stor-layout.c
diff --git
a/gcc/stor-layout.c
b/gcc/stor-layout.c
index
21a8f44
..
a469815
100644
(file)
--- a/
gcc/stor-layout.c
+++ b/
gcc/stor-layout.c
@@
-1190,7
+1190,7
@@
get_best_mode (bitsize, bitpos, align, largest_mode, volatilep)
mode = GET_MODE_WIDER_MODE (mode))
{
unit = GET_MODE_BITSIZE (mode);
- if (
bitpos / unit == (bitpos + bitsize - 1) /
unit)
+ if (
(bitpos % unit) + bitsize <=
unit)
break;
}