diff options
author | Richard Sandiford <richard.sandiford@linaro.org> | 2011-05-03 07:46:10 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2011-05-03 07:46:10 +0000 |
commit | 0f6d54f720796f2ebcb15764ac0d0b174529367d (patch) | |
tree | 0a9929f4d33aeb581d3ef899196493bcc28993e8 /gcc/hooks.c | |
parent | b15eacc7da352ad393b29bd35b71019f1da2af7d (diff) | |
download | gcc-0f6d54f720796f2ebcb15764ac0d0b174529367d.zip gcc-0f6d54f720796f2ebcb15764ac0d0b174529367d.tar.gz gcc-0f6d54f720796f2ebcb15764ac0d0b174529367d.tar.bz2 |
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
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 7791a14..9dfde82 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) |