From 0f6d54f720796f2ebcb15764ac0d0b174529367d Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Tue, 3 May 2011 07:46:10 +0000 Subject: hooks.h (hook_bool_mode_uhwi_false): Declare. gcc/ * hooks.h (hook_bool_mode_uhwi_false): Declare. * hooks.c (hook_bool_mode_uhwi_false): New function. * target.def (array_mode_supported_p): New hook. * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook. * doc/tm.texi: Regenerate. * stor-layout.c (mode_for_array): New function. (layout_type): Use it. * config/arm/arm.c (arm_array_mode_supported_p): New function. (TARGET_ARRAY_MODE_SUPPORTED_P): Define. From-SVN: r173290 --- gcc/hooks.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/hooks.c') diff --git a/gcc/hooks.c b/gcc/hooks.c index 7791a14fbee..9dfde822a5f 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -117,6 +117,15 @@ hook_bool_mode_rtx_true (enum machine_mode mode ATTRIBUTE_UNUSED, return true; } +/* Generic hook that takes (enum machine_mode, unsigned HOST_WIDE_INT) + and returns false. */ +bool +hook_bool_mode_uhwi_false (enum machine_mode mode ATTRIBUTE_UNUSED, + unsigned HOST_WIDE_INT value ATTRIBUTE_UNUSED) +{ + return false; +} + /* Generic hook that takes (FILE *, const char *) and does nothing. */ void hook_void_FILEptr_constcharptr (FILE *a ATTRIBUTE_UNUSED, const char *b ATTRIBUTE_UNUSED) -- cgit v1.2.1