aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJed Wing <jedwin@zloty.ugcs.caltech.edu>2000-03-20 18:12:59 +0000
committerJason Merrill <jason@gcc.gnu.org>2000-03-20 13:12:59 -0500
commit10bd7f8c2dd0d9ecae70e591c4cca949065fd759 (patch)
tree50d8db3793d568d4f5281704a28a91d6fafd126c /gcc
parentc65a922c68fcaafce36473e2e940cd5c9d12d7fe (diff)
downloadgcc-10bd7f8c2dd0d9ecae70e591c4cca949065fd759.zip
gcc-10bd7f8c2dd0d9ecae70e591c4cca949065fd759.tar.gz
gcc-10bd7f8c2dd0d9ecae70e591c4cca949065fd759.tar.bz2
method.c (build_overload_int): Use host_integerp.
* method.c (build_overload_int): Use host_integerp. Co-Authored-By: Jason Merrill <jason@casey.cygnus.com> From-SVN: r32650
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/method.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index f1a2f8a..7f515d9 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,8 @@
+2000-03-20 Jed Wing <jedwin@zloty.ugcs.caltech.edu>
+ Jason Merrill <jason@casey.cygnus.com>
+
+ * method.c (build_overload_int): Use host_integerp.
+
2000-03-20 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
* init.c (build_offset_ref): Handle the case of a templated member
diff --git a/gcc/cp/method.c b/gcc/cp/method.c
index 38e9c58..44dc3ab 100644
--- a/gcc/cp/method.c
+++ b/gcc/cp/method.c
@@ -597,11 +597,9 @@ build_overload_int (value, flags)
should always be represented by constants. */
my_friendly_assert (TREE_CODE (value) == INTEGER_CST, 243);
- /* If the high-order word is not merely a sign-extension of the
- low-order word, we must use a special output routine that can
- deal with this. */
- if ((unsigned HOST_WIDE_INT) TREE_INT_CST_HIGH (value)
- != (TREE_INT_CST_LOW (value) >> (HOST_BITS_PER_WIDE_INT - 1)))
+ /* If value doesn't fit in a single HOST_WIDE_INT, we must use a
+ special output routine that can deal with this. */
+ if (! host_integerp (value, 0))
{
multiple_words_p = 1;
/* And there is certainly going to be more than one digit. */