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; 4+ 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] 4+ 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; 4+ 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] 4+ messages in thread

* [Bug other/34835] splay-tree doesn't support 64bit value on 32bit host
       [not found] <bug-34835-4@http.gcc.gnu.org/bugzilla/>
  2021-08-24  8:07 ` pinskia at gcc dot gnu.org
@ 2021-08-24 13:10 ` hjl.tools at gmail dot com
  1 sibling, 0 replies; 4+ messages in thread
From: hjl.tools at gmail dot com @ 2021-08-24 13:10 UTC (permalink / raw)
  To: gcc-bugs

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

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |MOVED

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed on binutils.

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

* [Bug other/34835] splay-tree doesn't support 64bit value on 32bit host
       [not found] <bug-34835-4@http.gcc.gnu.org/bugzilla/>
@ 2021-08-24  8:07 ` pinskia at gcc dot gnu.org
  2021-08-24 13:10 ` hjl.tools at gmail dot com
  1 sibling, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-08-24  8:07 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |internal-improvement

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
r0-116114 changes splay_tree_key/splay_tree_value to use uintptr_t directly.
Since binutils no longer uses splay-tree, is this a bug that we need to worry
about?

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

end of thread, other threads:[~2021-08-24 13:10 UTC | newest]

Thread overview: 4+ 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
     [not found] <bug-34835-4@http.gcc.gnu.org/bugzilla/>
2021-08-24  8:07 ` pinskia at gcc dot gnu.org
2021-08-24 13:10 ` hjl.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).