[Bug target/49798] .quad instead of .long is used for address for x32

hjl.tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Jul 21 13:10:00 GMT 2011


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|                            |http://gcc.gnu.org/ml/gcc-p
                   |                            |atches/2011-07/msg01711.htm
                   |                            |l

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-07-21 13:09:21 UTC ---
(In reply to comment #3)
> (In reply to comment #1)
> 
> > To get Pmode value out of symbol in ptr_mode, we have to do zero-extension
> > ourself.
> 
> Linker should put correct address (so, zero extended 32bit address) here.

Did you mean assembler? In many cases, .quad is still simply wrong (PR 47446).
GCC shouldn't generate .quad in this case.  A patch is posted at

http://gcc.gnu.org/ml/gcc-patches/2011-07/msg01711.html



More information about the Gcc-bugs mailing list