aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorRichard Henderson <rth@cygnus.com>1998-04-04 09:46:06 -0800
committerRichard Henderson <rth@gcc.gnu.org>1998-04-04 09:46:06 -0800
commit896cced482d766c5d1d07ce1c71c191ac8864dd3 (patch)
tree732571c84a2af807ac7242046fc7cc2b2ae49b19 /gcc/tree.h
parent8983c7160410e7b865cd27a02b34fa506c8c2620 (diff)
downloadgcc-896cced482d766c5d1d07ce1c71c191ac8864dd3.zip
gcc-896cced482d766c5d1d07ce1c71c191ac8864dd3.tar.gz
gcc-896cced482d766c5d1d07ce1c71c191ac8864dd3.tar.bz2
tree.h (sizetype_tab[2], [...]): Merge all of these into a single struct, with additional [us]sizetype entries.
* tree.h (sizetype_tab[2], sbitsizetype, ubitsizetype): Merge all of these into a single struct, with additional [us]sizetype entries. * stor-layout.c (set_sizetype): Initialize [us]sizetype. * fold-const.c (size_int_wide): Don't rely on sizetype_tab being an array. From-SVN: r18994
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h18
1 files changed, 15 insertions, 3 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 8fee521..667cab9 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1435,9 +1435,21 @@ extern void put_pending_sizes PROTO((tree));
+ (BITS_PER_UNIT > 8) + (BITS_PER_UNIT > 16) + (BITS_PER_UNIT > 32) \
+ (BITS_PER_UNIT > 64) + (BITS_PER_UNIT > 128) + (BITS_PER_UNIT > 256))
-extern tree sizetype_tab[2], sbitsizetype, ubitsizetype;
-#define sizetype sizetype_tab[0]
-#define bitsizetype sizetype_tab[1]
+struct sizetype_tab
+{
+ tree xsizetype, xbitsizetype;
+ tree ssizetype, usizetype;
+ tree sbitsizetype, ubitsizetype;
+};
+
+extern struct sizetype_tab sizetype_tab;
+
+#define sizetype sizetype_tab.xsizetype
+#define bitsizetype sizetype_tab.xbitsizetype
+#define ssizetype sizetype_tab.ssizetype
+#define usizetype sizetype_tab.usizetype
+#define sbitsizetype sizetype_tab.sbitsizetype
+#define ubitsizetype sizetype_tab.ubitsizetype
/* If nonzero, an upper limit on alignment of structure fields, in bits. */
extern int maximum_field_alignment;