diff options
author | khan <khan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-24 17:24:45 +0000 |
---|---|---|
committer | khan <khan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-24 17:24:45 +0000 |
commit | 8a0ab9a317ada3b3cf805c53130f2949925edc3f (patch) | |
tree | 93d7834e1e7636bac180ff1ed5368892a947a6ba /gcc/c-pragma.c | |
parent | bec795975cef26636087ab07a46b63220ba20964 (diff) | |
download | gcc-8a0ab9a317ada3b3cf805c53130f2949925edc3f.tar.gz |
2000-04-24 Mumit Khan <khan@xraylith.wisc.edu>
* c-pragma.c (push_alignment): Use BITS_PER_UNIT macro.
(pop_alignment): Likewise.
(handle_pragma_token): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33379 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index c85e6bf081c..3bb9a390d1a 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -98,7 +98,7 @@ Alignment must be a small power of two, not %d, in #pragma pack", alignment_stack = entry; - maximum_field_alignment = alignment * 8; + maximum_field_alignment = alignment * BITS_PER_UNIT; } else alignment_stack->num_pushes ++; @@ -145,7 +145,7 @@ pop_alignment (id) if (entry == NULL) maximum_field_alignment = default_alignment; else - maximum_field_alignment = entry->alignment * 8; + maximum_field_alignment = entry->alignment * BITS_PER_UNIT; free (alignment_stack); @@ -206,7 +206,7 @@ handle_pragma_token (string, token) case ps_pack: if (state == ps_right) { - maximum_field_alignment = align * 8; + maximum_field_alignment = align * BITS_PER_UNIT; #ifdef HANDLE_PRAGMA_PACK_PUSH_POP default_alignment = maximum_field_alignment; #endif |