Changed use of word_align: it now only indicates the alignment on
authorceriel <none@none>
Wed, 17 Feb 1988 14:29:57 +0000 (14:29 +0000)
committerceriel <none@none>
Wed, 17 Feb 1988 14:29:57 +0000 (14:29 +0000)
which word-operations are allowed to take place

lang/cem/cemcom/eval.c
lang/cem/cemcom/struct.c

index f49e21b..5bb66bf 100644 (file)
@@ -482,7 +482,7 @@ EVAL(expr, val, code, true_label, false_label)
                        if (gencode) {
                                if (is_struct_or_union(tp->tp_fund)) {
                                        C_lfr(pointer_size);
-                                       load_block(tp->tp_size, word_align);
+                                       load_block(tp->tp_size, (int) word_size);
                                }
                                else
                                        C_lfr(ATW(tp->tp_size));
index 03f5334..8e2c34d 100644 (file)
@@ -414,9 +414,9 @@ add_field(szp, fd, fdtpp, idf, stp)
                /*      align this selector on the next boundary :
                        the previous selector wasn't a bitfield.
                */
-               field_offset = align(*szp, word_align);
-               *szp = field_offset + word_size;
-               stp->tp_align = lcm(stp->tp_align, word_align);
+               field_offset = align(*szp, int_align);
+               *szp = field_offset + int_size;
+               stp->tp_align = lcm(stp->tp_align, int_align);
                bits_declared = (arith)0;
                field_busy = 1;
        }
@@ -424,9 +424,9 @@ add_field(szp, fd, fdtpp, idf, stp)
        if (fd->fd_width > bits_in_type - bits_declared)        {
                /*      field overflow: fetch next memory unit
                */
-               field_offset = align(*szp, word_align);
-               *szp = field_offset + word_size;
-               stp->tp_align = lcm(stp->tp_align, word_align);
+               field_offset = align(*szp, int_align);
+               *szp = field_offset + int_size;
+               stp->tp_align = lcm(stp->tp_align, int_align);
                bits_declared = fd->fd_width;
        }
        else