diff options
author | Andrew MacLeod <amacleod@redhat.com> | 2013-11-22 16:19:21 +0000 |
---|---|---|
committer | Andrew Macleod <amacleod@gcc.gnu.org> | 2013-11-22 16:19:21 +0000 |
commit | fceec4d3d738b29c5e5c6d5dadd64c096f053f6a (patch) | |
tree | 6046b2c41ea50ac794232280ab4a1997a352faa9 /gcc/hooks.c | |
parent | 2fb9a547b4c0a5abb0dedb0ffd8848cd7f86bd82 (diff) | |
download | gcc-fceec4d3d738b29c5e5c6d5dadd64c096f053f6a.zip gcc-fceec4d3d738b29c5e5c6d5dadd64c096f053f6a.tar.gz gcc-fceec4d3d738b29c5e5c6d5dadd64c096f053f6a.tar.bz2 |
hooks.h (hook_uint_mode_0): Add Prototype.
* hooks.h (hook_uint_mode_0): Add Prototype.
* hooks.c (hook_uint_mode_0): New default function.
* target.def (atomic_align_for_mode): New target hook.
* tree.c (build_atomic_base): Add alignment override parameter.
(build_common_tree_nodes): Use atomic alignment override.
* doc/tm.texi.in (TARGET_ATOMIC_ALIGN_FOR_MODE): Define.
* doc/tm.texi (TARGET_ATOMIC_ALIGN_FOR_MODE): Add description.
From-SVN: r205273
Diffstat (limited to 'gcc/hooks.c')
-rw-r--r-- | gcc/hooks.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/hooks.c b/gcc/hooks.c index 9f53007..ce59503 100644 --- a/gcc/hooks.c +++ b/gcc/hooks.c @@ -358,6 +358,13 @@ hook_rtx_tree_int_null (tree a ATTRIBUTE_UNUSED, int b ATTRIBUTE_UNUSED) return NULL; } +/* Generic hook that takes a machine mode and returns an unsigned int 0. */ +unsigned int +hook_uint_mode_0 (enum machine_mode m ATTRIBUTE_UNUSED) +{ + return 0; +} + /* Generic hook that takes three trees and returns the last one as is. */ tree hook_tree_tree_tree_tree_3rd_identity (tree a ATTRIBUTE_UNUSED, |