mirror of git://gcc.gnu.org/git/gcc.git
re PR target/39065 (libiberty hashtab.c:hash_pointer() needs intptr_t)
2009-09-03 Ozkan Sezer <sezeroz@gmail.com> PR target/39065 * configure.ac: Also check for intptr_t. * config.h.in: Regenerated. * configure: Regenerated. * hashtab.c (hash_pointer): Cast the pointer argument to intptr_t instead of of long. From-SVN: r151386
This commit is contained in:
parent
7d4507cb30
commit
2e3dac6f94
|
|
@ -1,3 +1,12 @@
|
||||||
|
2009-09-03 Ozkan Sezer <sezeroz@gmail.com>
|
||||||
|
|
||||||
|
PR target/39065
|
||||||
|
* configure.ac: Also check for intptr_t.
|
||||||
|
* config.h.in: Regenerated.
|
||||||
|
* configure: Regenerated.
|
||||||
|
* hashtab.c (hash_pointer): Cast the pointer argument to intptr_t
|
||||||
|
instead of of long.
|
||||||
|
|
||||||
2009-09-02 Tristan Gingold <gingold@adacore.com>
|
2009-09-02 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* vmsbuild.com: Removed as unused and superceeded by makefile.vms.
|
* vmsbuild.com: Removed as unused and superceeded by makefile.vms.
|
||||||
|
|
|
||||||
|
|
@ -457,6 +457,9 @@
|
||||||
#undef inline
|
#undef inline
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Define to `long' if <sys/types.h> does not define. */
|
||||||
|
#undef intptr_t
|
||||||
|
|
||||||
/* Define to `int' if <sys/types.h> does not define. */
|
/* Define to `int' if <sys/types.h> does not define. */
|
||||||
#undef pid_t
|
#undef pid_t
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -5046,6 +5046,17 @@ _ACEOF
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
|
||||||
|
if test "x$ac_cv_type_intptr_t" = x""yes; then :
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
cat >>confdefs.h <<_ACEOF
|
||||||
|
#define intptr_t long
|
||||||
|
_ACEOF
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
|
ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
|
||||||
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
|
if test "x$ac_cv_type_uintptr_t" = x""yes; then :
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -254,6 +254,7 @@ libiberty_AC_DECLARE_ERRNO
|
||||||
# Determine the size of an int for struct fibnode.
|
# Determine the size of an int for struct fibnode.
|
||||||
AC_CHECK_SIZEOF([int])
|
AC_CHECK_SIZEOF([int])
|
||||||
|
|
||||||
|
AC_CHECK_TYPE(intptr_t, long)
|
||||||
AC_CHECK_TYPE(uintptr_t, unsigned long)
|
AC_CHECK_TYPE(uintptr_t, unsigned long)
|
||||||
|
|
||||||
# Look for a 64-bit type.
|
# Look for a 64-bit type.
|
||||||
|
|
|
||||||
|
|
@ -196,7 +196,7 @@ higher_prime_index (unsigned long n)
|
||||||
static hashval_t
|
static hashval_t
|
||||||
hash_pointer (const PTR p)
|
hash_pointer (const PTR p)
|
||||||
{
|
{
|
||||||
return (hashval_t) ((long)p >> 3);
|
return (hashval_t) ((intptr_t)p >> 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Returns non-zero if P1 and P2 are equal. */
|
/* Returns non-zero if P1 and P2 are equal. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue