i386: Redefine indirect_thunks_used as HARD_REG_SET.
commit69a5b3ca5c8fdd074fbb26fec926fa25fbec77c1
authorUros Bizjak <ubizjak@gmail.com>
Wed, 17 Nov 2021 19:47:48 +0000 (17 20:47 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Wed, 17 Nov 2021 19:48:31 +0000 (17 20:48 +0100)
treec679daca100fd26e8b3d95031f7c93c57579722e
parent74509b963ef64101ce601a497913c13021994f51
i386: Redefine indirect_thunks_used as HARD_REG_SET.

Change indirect_thunks_used to HARD_REG_SET to avoid recalculations
of correct register numbers and allow usage of SET/TEST_HARD_REG_BIT
accessors.

2021-11-17  Uroš Bizjak  <ubizjak@gmail.com>

gcc/ChangeLog:

* config/i386/i386.c (indirect_thunks_used): Redefine as HARD_REG_SET.
(ix86_code_end): Use TEST_HARD_REG_BIT on indirect_thunks_used.
(ix86_output_indirect_branch_via_reg): Use SET_HARD_REG_BIT
on indirect_thunks_used.
(ix86_output_indirect_function_return): Ditto.
gcc/config/i386/i386.c