public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/39066]  New: DO_GLOBAL_CTORS_BODY needs uintptr_t
@ 2009-02-01 17:02 sezeroz at gmail dot com
  2009-02-01 17:03 ` [Bug target/39066] " sezeroz at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: sezeroz at gmail dot com @ 2009-02-01 17:02 UTC (permalink / raw)
  To: gcc-bugs

DO_GLOBAL_CTORS_BODY casts __CTOR_LIST__[0] to unsigned 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 uintptr_t, instead.  here is the
warning:
../../../gcc-svn/libgcc/../gcc/libgcc2.c: In function '__do_global_ctors':
../../../gcc-svn/libgcc/../gcc/libgcc2.c:2161: warning: cast from pointer to
integer of different size


-- 
           Summary: DO_GLOBAL_CTORS_BODY needs uintptr_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=39066


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

end of thread, other threads:[~2009-04-13 10:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-01 17:02 [Bug target/39066] New: DO_GLOBAL_CTORS_BODY needs uintptr_t sezeroz at gmail dot com
2009-02-01 17:03 ` [Bug target/39066] " sezeroz at gmail dot com
2009-02-21  9:56 ` ktietz at gcc dot gnu dot org
2009-03-14 15:54 ` nightstrike at gmail dot com
2009-04-13 10:12 ` ktietz 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).