aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>2000-03-03 02:27:15 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>2000-03-03 02:27:15 +0000
commit834c6dff7ba7845c7fabeda67f711b5aa0f341d8 (patch)
treedb09bd0c5719c40d563da6f148b6e0c062ae1ce1 /gcc/tree.h
parenta2b10a92a30b30c5f1fa5324daa7e41bc162db95 (diff)
downloadgcc-834c6dff7ba7845c7fabeda67f711b5aa0f341d8.zip
gcc-834c6dff7ba7845c7fabeda67f711b5aa0f341d8.tar.gz
gcc-834c6dff7ba7845c7fabeda67f711b5aa0f341d8.tar.bz2
* tree.h (TYPE_ALIGN_UNIT): New macro.
From-SVN: r32302
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 51157c6..a59b5d2 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -880,6 +880,10 @@ struct tree_block
The value is an int, measured in bits. */
#define TYPE_ALIGN(NODE) (TYPE_CHECK (NODE)->type.align)
+/* The alignment for NODE, in bytes. */
+#define TYPE_ALIGN_UNIT(NODE) \
+ (TYPE_ALIGN (NODE) / BITS_PER_UNIT)
+
#define TYPE_STUB_DECL(NODE) (TREE_CHAIN (NODE))
/* In a RECORD_TYPE, UNION_TYPE or QUAL_UNION_TYPE, it means the type