public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug other/34835]  New: splay-tree doesn't support 64bit value on 32bit host
@ 2008-01-17 20:20 hjl at lucon dot org
  2008-02-09 16:24 ` [Bug other/34835] " hjl dot tools at gmail dot com
  0 siblings, 1 reply; 2+ messages in thread
From: hjl at lucon dot org @ 2008-01-17 20:20 UTC (permalink / raw)
  To: gcc-bugs

splay-tree.h has

#ifndef _WIN64
  typedef unsigned long int libi_uhostptr_t;
  typedef long int libi_shostptr_t;
#else
  typedef unsigned long long libi_uhostptr_t;
  typedef long long libi_shostptr_t;
#endif

...

/* Use typedefs for the key and data types to facilitate changing
   these types, if necessary.  These types should be sufficiently wide
   that any pointer or scalar can be cast to these types, and then
   cast back, without loss of precision.  */
typedef libi_uhostptr_t splay_tree_key;
typedef libi_uhostptr_t splay_tree_value;

The problem is on 32bit host libi_uhostptr_t is defined as long and it
don't work long long, which is used by BFD and leads to the linker
bug:

http://www.sourceware.org/bugzilla/show_bug.cgi?id=5303


-- 
           Summary: splay-tree doesn't support 64bit value on 32bit host
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: other
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: hjl at lucon dot org


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


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

* [Bug other/34835] splay-tree doesn't support 64bit value on 32bit host
  2008-01-17 20:20 [Bug other/34835] New: splay-tree doesn't support 64bit value on 32bit host hjl at lucon dot org
@ 2008-02-09 16:24 ` hjl dot tools at gmail dot com
  0 siblings, 0 replies; 2+ messages in thread
From: hjl dot tools at gmail dot com @ 2008-02-09 16:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from hjl dot tools at gmail dot com  2008-02-09 16:23 -------
A patch is posted at

http://sourceware.org/ml/binutils/2008-02/msg00068.html


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://sourceware.org/ml/bin
                   |                            |utils/2008-02/msg00068.html


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


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

end of thread, other threads:[~2008-02-09 16:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-01-17 20:20 [Bug other/34835] New: splay-tree doesn't support 64bit value on 32bit host hjl at lucon dot org
2008-02-09 16:24 ` [Bug other/34835] " hjl dot tools at gmail dot com

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).