aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-10-20 15:52:40 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-10-20 15:52:40 +0000
commit971774bbc15f4c0e411a921bace1fda1471433fc (patch)
treebe44f6b36227fb51d695b864ad625846518fbe4d /gcc/tree.h
parentafee2a52da20b6062fcc367e9178395ee314e41f (diff)
downloadgcc-971774bbc15f4c0e411a921bace1fda1471433fc.zip
gcc-971774bbc15f4c0e411a921bace1fda1471433fc.tar.gz
gcc-971774bbc15f4c0e411a921bace1fda1471433fc.tar.bz2
* tree.h (DECL_ALIGN_UNIT): New macro.
From-SVN: r36964
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 68ccbbf..d8cc508 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -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