diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-08-27 16:45:20 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-08-27 16:45:20 +0000 |
commit | ce552f75de9316942eb2762787ade0ac7684e299 (patch) | |
tree | 0747dfb5ae0b38c647d928875f6ef8f699b58a80 /gcc/cp | |
parent | 06c37c965a32bf125f32111fac25707bee54708a (diff) | |
download | gcc-ce552f75de9316942eb2762787ade0ac7684e299.zip gcc-ce552f75de9316942eb2762787ade0ac7684e299.tar.gz gcc-ce552f75de9316942eb2762787ade0ac7684e299.tar.bz2 |
tree.h (size_int_type): Remove.
* tree.h (size_int_type): Remove.
* fold-const.c: Do not #include gt-fold-const.h.
(size_htab_hash, size_htab_eq): Remove.
(size_int_kind): Use build_int_cst.
(new_const, size_htab): Remove.
(size_int_type): Remove.
(round_up): Use build_int_cst.
(round_down): Likewise. Remove spurious constant build.
* ada/utils2.c (build_allocator): Use ssize_int.
* cp/class.c (build_vtbl_initializer): Use ssize_int.
* cp/decl.c (complete_array_type): Likewise.
* cp/method.c (finish_thunk): Likewise.
* cp/search.c (get_dynamic_base_type): Likewise.
From-SVN: r86667
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 7 | ||||
-rw-r--r-- | gcc/cp/class.c | 3 | ||||
-rw-r--r-- | gcc/cp/decl.c | 2 | ||||
-rw-r--r-- | gcc/cp/method.c | 2 | ||||
-rw-r--r-- | gcc/cp/search.c | 2 |
5 files changed, 11 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ac5344ed..b2e109d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2004-08-27 Nathan Sidwell <nathan@codesourcery.com> + + * class.c (build_vtbl_initializer): Use ssize_int. + * decl.c (complete_array_type): Likewise. + * method.c (finish_thunk): Likewise. + * search.c (get_dynamic_base_type): Likewise. + 2004-08-26 Richard Henderson <rth@redhat.com> * cp-tree.h (DECL_FIELD_IS_BASE): New. diff --git a/gcc/cp/class.c b/gcc/cp/class.c index d6115b4..8785de7 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -7282,8 +7282,7 @@ build_vtbl_initializer (tree binfo, vid.ctor_vtbl_p = !same_type_p (BINFO_TYPE (rtti_binfo), t); vid.generate_vcall_entries = true; /* The first vbase or vcall offset is at index -3 in the vtable. */ - vid.index = build_int_cst (ssizetype, - -3 * TARGET_VTABLE_DATA_ENTRY_DISTANCE); + vid.index = ssize_int(-3 * TARGET_VTABLE_DATA_ENTRY_DISTANCE); /* Add entries to the vtable for RTTI. */ build_rtti_vtbl_entries (binfo, &vid); diff --git a/gcc/cp/decl.c b/gcc/cp/decl.c index dfb5681..a5c6309 100644 --- a/gcc/cp/decl.c +++ b/gcc/cp/decl.c @@ -5260,7 +5260,7 @@ complete_array_type (tree type, tree initial_value, int do_default) { tree elts = CONSTRUCTOR_ELTS (initial_value); - maxindex = build_int_cst (ssizetype, -1); + maxindex = ssize_int (-1); for (; elts; elts = TREE_CHAIN (elts)) { if (TREE_PURPOSE (elts)) diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 11107b1..13fe0a4 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -179,7 +179,7 @@ void finish_thunk (tree thunk) { tree function, name; - tree fixed_offset = build_int_cst (ssizetype, THUNK_FIXED_OFFSET (thunk)); + tree fixed_offset = ssize_int (THUNK_FIXED_OFFSET (thunk)); tree virtual_offset = THUNK_VIRTUAL_OFFSET (thunk); my_friendly_assert (!DECL_NAME (thunk) && DECL_THUNK_P (thunk), 20021127); diff --git a/gcc/cp/search.c b/gcc/cp/search.c index 4acd2d5..c0342ad 100644 --- a/gcc/cp/search.c +++ b/gcc/cp/search.c @@ -347,7 +347,7 @@ get_dynamic_cast_base_type (tree subtype, tree target) if (!boff) return offset; - offset = build_int_cst (ssizetype, boff); + offset = ssize_int (boff); return offset; } |