* tree.h (DECL_ALIGN_UNIT): New macro.
authorMark Mitchell <mark@codesourcery.com>
Fri, 20 Oct 2000 15:52:40 +0000 (15:52 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 20 Oct 2000 15:52:40 +0000 (15:52 +0000)
From-SVN: r36964

gcc/ChangeLog
gcc/tree.h

index b4ca68f3312c02e923edae4da9b161c57f8fa833..b9f58c10a3cd0a1292c693b551ae56964ab42973 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-20  Mark Mitchell  <mark@codesourcery.com>
+
+       * tree.h (DECL_ALIGN_UNIT): New macro.
+
 2000-10-14  Marek Michalkiewicz  <marekm@linux.org.pl>
 
        * config/avr/avr-protos.h (avr_output_bld): New.
index 68ccbbf8dd3008f7f5a8a9ac7e67589fb9839ab6..d8cc50872d7efb1fd8df4d6b7dc51e806291f0a8 100644 (file)
@@ -1309,8 +1309,10 @@ struct tree_type
 #define DECL_SIZE(NODE) (DECL_CHECK (NODE)->decl.size)
 /* Likewise for the size in bytes.  */
 #define DECL_SIZE_UNIT(NODE) (DECL_CHECK (NODE)->decl.size_unit)
-/* Holds the alignment required for the datum.  */
+/* Holds the alignment required for the datum, in bits.  */
 #define DECL_ALIGN(NODE) (DECL_CHECK (NODE)->decl.u1.a.align)
+/* The alignment of NODE, in bytes.  */
+#define DECL_ALIGN_UNIT(NODE) (DECL_ALIGN (NODE) / BITS_PER_UNIT)
 /* For FIELD_DECLs, off_align holds the number of low-order bits of
    DECL_FIELD_OFFSET which are known to be always zero.
    DECL_OFFSET_ALIGN thus returns the alignment that DECL_FIELD_OFFSET