diff options
author | Richard Henderson <rth@cygnus.com> | 1998-04-04 09:46:06 -0800 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1998-04-04 09:46:06 -0800 |
commit | 896cced482d766c5d1d07ce1c71c191ac8864dd3 (patch) | |
tree | 732571c84a2af807ac7242046fc7cc2b2ae49b19 /gcc/tree.h | |
parent | 8983c7160410e7b865cd27a02b34fa506c8c2620 (diff) | |
download | gcc-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.h | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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; |