poly_int: MACRO_MODE
commit42d5183d19fdcf4cc087d4f1b5db37dd4e8e95b2
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Dec 2017 14:13:03 +0000 (16 14:13 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 16 Dec 2017 14:13:03 +0000 (16 14:13 +0000)
tree0932d4f8ba3dd51e383d00346fdcab38cc45d073
parent785790dcb626c9bb4622a929a5b99487ac018ae7
poly_int: MACRO_MODE

This patch uses a MACRO_MODE wrapper for the target macro invocations
in targhooks.c and address.h, so that macros for non-AArch64 targets
can continue to treat modes as fixed-size.

It didn't seem worth converting the address macros to hooks since
(a) they're heavily used, (b) they should be probably be replaced
with a different interface rather than converted to hooks as-is,
and most importantly (c) addresses.h already localises the problem.

2017-12-16  Richard Sandiford  <richard.sandiford@linaro.org>
    Alan Hayward  <alan.hayward@arm.com>
    David Sherwood  <david.sherwood@arm.com>

gcc/
* machmode.h (MACRO_MODE): New macro.
* addresses.h (base_reg_class, ok_for_base_p_1): Use it.
* targhooks.c (default_libcall_value, default_secondary_reload)
(default_memory_move_cost, default_register_move_cost)
(default_class_max_nregs): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@255744 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/addresses.h
gcc/machmode.h
gcc/targhooks.c