aboutsummaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorGreg McGary <greg@mcgary.org>2000-08-30 22:50:52 +0000
committerGreg McGary <gkm@gcc.gnu.org>2000-08-30 22:50:52 +0000
commit2afaa41c5fdc34be0208be3148f8e83806899f21 (patch)
tree042ac04f650e870a46a4b967cad55fc6c0fee687 /gcc/varasm.c
parent1d92b3e1d64e84c9a268dceea46a3b1026d32858 (diff)
downloadgcc-2afaa41c5fdc34be0208be3148f8e83806899f21.zip
gcc-2afaa41c5fdc34be0208be3148f8e83806899f21.tar.gz
gcc-2afaa41c5fdc34be0208be3148f8e83806899f21.tar.bz2
tree.h (struct tree_int_cst): Wrap low and high in a sub-struct.
* tree.h (struct tree_int_cst): Wrap low and high in a sub-struct. (TREE_INT_CST_LOW, TREE_INT_CST_HIGH): Access through sub-struct. (TREE_INT_CST): New macro. * varasm.c (const_hash, compare_constant_1, record_constant_1): Use new macro TREE_INT_CST. From-SVN: r36076
Diffstat (limited to 'gcc/varasm.c')
-rw-r--r--gcc/varasm.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index 478daf8..5a10d65 100644
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -2361,8 +2361,8 @@ const_hash (exp)
switch (code)
{
case INTEGER_CST:
- p = (char *) &TREE_INT_CST_LOW (exp);
- len = 2 * sizeof TREE_INT_CST_LOW (exp);
+ p = (char *) &TREE_INT_CST (exp);
+ len = sizeof TREE_INT_CST (exp);
break;
case REAL_CST:
@@ -2506,8 +2506,8 @@ compare_constant_1 (exp, p)
if (*p++ != TYPE_PRECISION (TREE_TYPE (exp)))
return 0;
- strp = (unsigned char *) &TREE_INT_CST_LOW (exp);
- len = 2 * sizeof TREE_INT_CST_LOW (exp);
+ strp = (unsigned char *) &TREE_INT_CST (exp);
+ len = sizeof TREE_INT_CST (exp);
break;
case REAL_CST:
@@ -2745,8 +2745,8 @@ record_constant_1 (exp)
{
case INTEGER_CST:
obstack_1grow (&permanent_obstack, TYPE_PRECISION (TREE_TYPE (exp)));
- strp = (unsigned char *) &TREE_INT_CST_LOW (exp);
- len = 2 * sizeof TREE_INT_CST_LOW (exp);
+ strp = (unsigned char *) &TREE_INT_CST (exp);
+ len = sizeof TREE_INT_CST (exp);
break;
case REAL_CST: