This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/49798] .quad instead of .long is used for address for x32
- From: "hjl.tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 21 Jul 2011 13:09:26 +0000
- Subject: [Bug target/49798] .quad instead of .long is used for address for x32
- Auto-submitted: auto-generated
- References: <bug-49798-4@http.gcc.gnu.org/bugzilla/>
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