diff options
Diffstat (limited to 'gcc/stor-layout.c')
-rw-r--r-- | gcc/stor-layout.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 21a8f4404ae..a4698157cc7 100644 --- 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; } |