diff options
author | Geoffrey Keating <geoffk@redhat.com> | 2002-06-04 07:11:05 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2002-06-04 07:11:05 +0000 |
commit | e2500fedef1a1c5b9e818fd1e2c281adff80df4a (patch) | |
tree | 720630adca0f6b357e05c4feb8cbe33d556925ce /gcc/fold-const.c | |
parent | c2ae66169b8326bbf9b1dfa63083d2560fea7ddf (diff) | |
download | gcc-e2500fedef1a1c5b9e818fd1e2c281adff80df4a.zip gcc-e2500fedef1a1c5b9e818fd1e2c281adff80df4a.tar.gz gcc-e2500fedef1a1c5b9e818fd1e2c281adff80df4a.tar.bz2 |
Merge from pch-branch up to tag pch-commit-20020603.
From-SVN: r54232
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r-- | gcc/fold-const.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c index 947d575..6febe58 100644 --- a/gcc/fold-const.c +++ b/gcc/fold-const.c @@ -1376,21 +1376,21 @@ size_int_wide (number, kind) /* Likewise, but the desired type is specified explicitly. */ +static GTY (()) tree new_const; +static GTY ((if_marked ("ggc_marked_p"), param_is (union tree_node))) + htab_t size_htab; + tree size_int_type_wide (number, type) HOST_WIDE_INT number; tree type; { - static htab_t size_htab = 0; - static tree new_const = 0; PTR *slot; if (size_htab == 0) { size_htab = htab_create (1024, size_htab_hash, size_htab_eq, NULL); - ggc_add_deletable_htab (size_htab, NULL, NULL); new_const = make_node (INTEGER_CST); - ggc_add_tree_root (&new_const, 1); } /* Adjust NEW_CONST to be the constant we want. If it's already in the @@ -7236,3 +7236,5 @@ rtl_expr_nonnegative_p (r) return 0; } } + +#include "gt-fold-const.h" |