aboutsummaryrefslogtreecommitdiff
path: root/gcc/hooks.c
diff options
context:
space:
mode:
authorRichard Sandiford <richard.sandiford@linaro.org>2017-12-20 12:52:12 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2017-12-20 12:52:12 +0000
commit37b2b8f95783b449aca30d32f4c97a4db3bd395e (patch)
treef9f4281fcb3cf1bbf777100bf54c33ef1de17cc6 /gcc/hooks.c
parentf8832fe1a7611c0458ebf45140c099eb7bf5d0c8 (diff)
downloadgcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.zip
gcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.tar.gz
gcc-37b2b8f95783b449aca30d32f4c97a4db3bd395e.tar.bz2
poly_int: TRULY_NOOP_TRUNCATION
This patch makes TRULY_NOOP_TRUNCATION take the mode sizes as poly_uint64s instead of unsigned ints. The function bodies don't need to change. 2017-12-20 Richard Sandiford <richard.sandiford@linaro.org> Alan Hayward <alan.hayward@arm.com> David Sherwood <david.sherwood@arm.com> gcc/ * target.def (truly_noop_truncation): Take poly_uint64s instead of unsigned ints. Change default to hook_bool_puint64_puint64_true. * doc/tm.texi: Regenerate. * hooks.h (hook_bool_uint_uint_true): Delete. (hook_bool_puint64_puint64_true): Declare. * hooks.c (hook_bool_uint_uint_true): Delete. (hook_bool_puint64_puint64_true): New function. * config/mips/mips.c (mips_truly_noop_truncation): Take poly_uint64s instead of unsigned ints. * config/spu/spu.c (spu_truly_noop_truncation): Likewise. * config/tilegx/tilegx.c (tilegx_truly_noop_truncation): Likewise. Co-Authored-By: Alan Hayward <alan.hayward@arm.com> Co-Authored-By: David Sherwood <david.sherwood@arm.com> From-SVN: r255866
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r--gcc/hooks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c
index 61ff890..18a957e 100644
--- a/gcc/hooks.c
+++ b/gcc/hooks.c
@@ -133,9 +133,9 @@ hook_bool_mode_uhwi_false (machine_mode, unsigned HOST_WIDE_INT)
return false;
}
-/* Generic hook that takes (unsigned int, unsigned int) and returns true. */
+/* Generic hook that takes (poly_uint64, poly_uint64) and returns true. */
bool
-hook_bool_uint_uint_true (unsigned int, unsigned int)
+hook_bool_puint64_puint64_true (poly_uint64, poly_uint64)
{
return true;
}