This is the mail archive of the gcc-patches@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]

Re: [PATCH] Allow VOIDmode argument to ix86_copy_addr_to_reg (PR target/60693)


On Fri, Mar 28, 2014 at 4:19 PM, Jakub Jelinek <jakub@redhat.com> wrote:

> Before ix86_copy_addr_to_reg has been added, we've been using
> copy_addr_to_reg, which handles VOIDmode values just fine.
> But this new function just ICEs on those.  As the function
> has been added for adding SUBREGs to TLS addresses, those will
> never retunring CONST_INTs, so just using copy_addr_to_reg
> is IMHO the right thing and restores previous behavior.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
>
>         PR target/60693
>         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
>         also if addr has VOIDmode.
>
>         * gcc.target/i386/pr60693.c: New test.

OK.

Thanks,
Uros.


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