On 12/10/20 8:11 AM, Jakub Jelinek wrote:
> On Thu, Dec 10, 2020 at 12:00:17PM +0100, Jakub Jelinek wrote:
>> So, would it be better to check for one of FRAME_POINTER_REGNUM,
>> ARG_POINTER_REGNUM or RETURN_ADDRESS_POINTER_REGNUM if they
>> are mentioned in (from part of pairs in) ELIMINABLE_REGS?
> In patch form now:
>
> 2020-12-10 Jakub Jelinek <ja...@redhat.com>
>
> PR target/92469
> * varasm.c (eliminable_regno_p): New function.
> (make_decl_rtl): Reject asm vars for frame and argp
> if they are different from hard frame pointer.
>
> * gcc.target/i386/pr92469.c: New test.
> * gcc.target/i386/pr79804.c: Adjust expected diagnostics.
> * gcc.target/i386/pr88178.c: Expect an error.
OK
jeff