This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] [ARC] Fix legitimize pic address.
- From: Jeff Law <law at redhat dot com>
- To: Claudiu Zissulescu <claziss at gmail dot com>, gcc-patches at gcc dot gnu dot org
- Cc: fbedard at synopsys dot com, andrew dot burgess at embecosm dot com, claziss at synopsys dot com
- Date: Mon, 28 Oct 2019 13:23:16 -0600
- Subject: Re: [PATCH] [ARC] Fix legitimize pic address.
- References: <20191022081014.15747-1-claziss@gmail.com>
On 10/22/19 2:10 AM, Claudiu Zissulescu wrote:
> Hi Andrew,
>
> There are cases when an pic address gets complicated, and it needs to
> be resolved via force_reg function found in
> prepare_move_operands. When this happens, we need to disambiguate the
> pic address and re-legitimize it. Testcase added as well.
>
> The patch needs to be applied to trunk and gcc9 branch as well.
>
> OK to apply?
> Claudiu
>
> gcc/
> xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
>
> * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
> as well, if interesting recover the symbol and re-legitimize the
> pic address.
>
> gcc/testsuite/
> xxxx-xx-xx Claudiu Zissulescu <claziss@synopsys.com>
>
> * gcc.target/arc/pic-2.c: New file.
OK
jeff