CRIS: Don't include tree.h in cris-protos.h, PR bootstrap/111021
commiteef192b181b8777d708671e2541896e7e31293aa
authorHans-Peter Nilsson <hp@axis.com>
Tue, 15 Aug 2023 04:35:43 +0000 (15 06:35 +0200)
committerHans-Peter Nilsson <hp@bitrange.com>
Tue, 15 Aug 2023 10:53:59 +0000 (15 12:53 +0200)
tree96d4debfd2b6afb65c0a441476cb4a3fcb2bba8c
parent4d6132e59327e809a4d4e39fb9465dbd43775b7c
CRIS: Don't include tree.h in cris-protos.h, PR bootstrap/111021

While there's another patch that fixes the immediate error
in the PR by other means, the include of tree.h here is
something I prefer to avoid.

PR bootstrap/111021
* config/cris/cris-protos.h: Revert recent change.
* config/cris/cris.cc (cris_legitimate_address_p): Remove
code_helper unused parameter.
(cris_legitimate_address_p_hook): New wrapper function.
(TARGET_LEGITIMATE_ADDRESS_P): Change to
cris_legitimate_address_p_hook.
gcc/config/cris/cris-protos.h
gcc/config/cris/cris.cc