This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]