On Thu, Mar 20, 2014 at 10:05 AM, Jakub Jelinek <ja...@redhat.com> wrote:

> With -flto -fpic -m32 sometimes (unfortunately the testcase provided was
> in form of *.o file with LTO bytecode, so can't be reduced), if the thunk
> target doesn't bind locally we get ICE because we can't recog what
> x86_output_mi_thunk creates.  The problem is that it doesn't
> put UNSPEC_GOT into CONST and thus ix86_decompose_address refuses it.
>
> Fixed thusly, bootstrapped/regtested on x86_64-linux and i686-linux and
> tested with the testcase that it doesn't ICE anymore and can be properly
> assembled.  Ok for trunk?
>
> 2014-03-19  Jakub Jelinek  <ja...@redhat.com>
>
>         PR target/60568
>         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
>         into CONST, put pic register as first operand of PLUS.  Use
>         gen_const_mem for both 32-bit and 64-bit PIC got loads.

OK for mainline, and also other release branches.

Thanks,
Uros.

Reply via email to