summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhan <khan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-24 17:24:45 +0000
committerkhan <khan@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-24 17:24:45 +0000
commit8a0ab9a317ada3b3cf805c53130f2949925edc3f (patch)
tree93d7834e1e7636bac180ff1ed5368892a947a6ba
parentbec795975cef26636087ab07a46b63220ba20964 (diff)
downloadgcc-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
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/c-pragma.c6
2 files changed, 9 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 7dc6656ec7e..64ac1154f0c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2000-04-24 Robert Lipe <robertlipe@usa.net>
* tree.h (tree_decl): Member `mode' now ENUM_BITFIELD.
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