On Thu, Jul 21, 2011 at 6:28 PM, H.J. Lu <hjl.to...@gmail.com> wrote:

>>> ".quad  symbol" isn't really valid for 32bit.
>>
>> Why not?  We certainly know what value to put there.
>>
>
> x32 doesn't support 64bit relocation, like R_X86_64_64.
> In many causes,  generate
>
> .long symbol
> .long 0
>
> for ".quad symbol" is wrong. Please see:
>
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47446
>
> for some examples.

Please also see:

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

on why I think this is middle-end/tree-optimization issue.

Uros.

Reply via email to