[Bug target/39065] libiberty hashtab.c:hash_pointer() needs intptr_t
sezeroz at gmail dot com
gcc-bugzilla@gcc.gnu.org
Mon Feb 2 22:59:00 GMT 2009
------- Comment #3 from sezeroz at gmail dot com 2009-02-02 22:59 -------
(In reply to comment #2)
> You should put the new code in a #ifdef HAVE_STDINT and use the old code
> otherwise. Else, any platforms without stdint.h would not compile.
>
I would do that and it would be easy, but then one may say that having intptr_t
doesn't have to depend on having stdint.h: in MSVC, for one, you get it via the
stddef.h header. Maybe adding an AC_CHECK_TYPE(intptr_t,long) to configure.ac
would be better solution?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39065
More information about the Gcc-bugs
mailing list