diff options
Diffstat (limited to 'gcc/ch')
-rw-r--r-- | gcc/ch/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ch/actions.c | 3 | ||||
-rw-r--r-- | gcc/ch/typeck.c | 4 |
3 files changed, 10 insertions, 3 deletions
diff --git a/gcc/ch/ChangeLog b/gcc/ch/ChangeLog index 9336309aa66..cc319779119 100644 --- a/gcc/ch/ChangeLog +++ b/gcc/ch/ChangeLog @@ -1,3 +1,9 @@ +Sat Mar 25 09:12:10 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> + + * actions.c (check_missing_cases): BYTES_NEEDED is HOST_WIDE_INT. + * typeck.c (expand_constant_to_buffer): Use int_byte_position. + (extract_constant_from_buffer): Likewise. + Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * typeck.c (min_precision): New function. diff --git a/gcc/ch/actions.c b/gcc/ch/actions.c index d7b10e60270..32bb18152ad 100644 --- a/gcc/ch/actions.c +++ b/gcc/ch/actions.c @@ -1453,7 +1453,8 @@ check_missing_cases (type) unsigned char *cases_seen; /* The number of possible selector values. */ HOST_WIDE_INT size = all_cases_count (type, &is_sparse); - long bytes_needed = (size+HOST_BITS_PER_CHAR)/HOST_BITS_PER_CHAR; + HOST_WIDE_INT bytes_needed + = (size + HOST_BITS_PER_CHAR) / HOST_BITS_PER_CHAR; if (size == -1) warning ("CASE selector with variable range"); diff --git a/gcc/ch/typeck.c b/gcc/ch/typeck.c index 9126ede3e3a..17539602e30 100644 --- a/gcc/ch/typeck.c +++ b/gcc/ch/typeck.c @@ -830,7 +830,7 @@ expand_constant_to_buffer (value, buffer, buf_size) if (DECL_BIT_FIELD (field)) return 0; - offset = int_bit_position (field) / BITS_PER_UNIT; + offset = int_byte_position (field); if (!expand_constant_to_buffer (TREE_VALUE (list), buffer + offset, buf_size - offset)) @@ -946,7 +946,7 @@ extract_constant_from_buffer (type, buffer, buf_size) tree field = TYPE_FIELDS (type); for (; field != NULL_TREE; field = TREE_CHAIN (field)) { - HOST_WIDE_INT offset = int_bit_position (field) / BITS_PER_UNIT; + HOST_WIDE_INT offset = int_byte_position (field); if (DECL_BIT_FIELD (field)) return 0; |