public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/39065]  New: libiberty hashtab.c:hash_pointer() needs intptr_t
@ 2009-02-01 16:59 sezeroz at gmail dot com
  2009-02-01 17:00 ` [Bug target/39065] " sezeroz at gmail dot com
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: sezeroz at gmail dot com @ 2009-02-01 16:59 UTC (permalink / raw)
  To: gcc-bugs

in function hash_pointer(), libiberty/hashtab.c casts its pointer argument
to long, probably with the assumption that long is 64 bits on all 64 bit
systems, which isn't true for win64. it must cast to intptr_t, instead.
here is the warning:
../../../gcc-svn/libiberty/hashtab.c: In function 'hash_pointer':
../../../gcc-svn/libiberty/hashtab.c:199: warning: cast from pointer to integer
of different size

(the patch should also be applied to binutils and gdb, or whoever else uses
libiberty)


-- 
           Summary: libiberty hashtab.c:hash_pointer() needs intptr_t
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: trivial
          Priority: P3
         Component: target
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: sezeroz at gmail dot com
GCC target triplet: x86_64-pc-mingw32


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39065


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2009-09-04 14:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 16:59 [Bug target/39065] New: libiberty hashtab.c:hash_pointer() needs intptr_t sezeroz at gmail dot com
2009-02-01 17:00 ` [Bug target/39065] " sezeroz at gmail dot com
2009-02-02 21:52 ` dj at redhat dot com
2009-02-02 22:59 ` sezeroz at gmail dot com
2009-02-21  8:06 ` sezeroz at gmail dot com
2009-02-21  9:55 ` ktietz at gcc dot gnu dot org
2009-03-14 15:58 ` nightstrike at gmail dot com
2009-09-03 16:46 ` hjl at gcc dot gnu dot org
2009-09-04  6:26 ` sezeroz at gmail dot com
2009-09-04 14:33 ` hjl at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).