Move c6x REGNO_REG_CLASS out of line
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 10 Sep 2019 18:56:21 +0000 (18:56 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 10 Sep 2019 18:56:21 +0000 (18:56 +0000)
commit031e8857886b91da290ffb03d9027424566e5da3
tree38e3ad9468d0607ef4c594d9fc2c8e0252773763
parent0f8b14ee8ae787d7fba104dbdeb31e0400f6b7d2
Move c6x REGNO_REG_CLASS out of line

I have a series of patches that hides call_used_regs from target-
independent code, a knock-on effect of which is that (public) target
macros can't use call_used_regs either.  This patch fixes the only
case in which that was a problem.

2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>

gcc/
* config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
* config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
* config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.

From-SVN: r275597
gcc/ChangeLog
gcc/config/c6x/c6x-protos.h
gcc/config/c6x/c6x.c
gcc/config/c6x/c6x.h