summaryrefslogtreecommitdiff
path: root/gcc/target.def
diff options
context:
space:
mode:
authorchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 13:52:51 +0000
committerchrbr <chrbr@138bc75d-0d04-0410-961f-82ee72b054a4>2015-10-16 13:52:51 +0000
commit9d0e3e3a33034c696d99e19bb3496916e5f45a68 (patch)
treedd02fa210573226e6a7f1a92dd5a6db115002160 /gcc/target.def
parentd0849c231459927b58d3683d25780269314e579e (diff)
downloadgcc-9d0e3e3a33034c696d99e19bb3496916e5f45a68.tar.gz
2015-10-16 Christian Bruel <christian.bruel@st.com>
PR target/67745 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P. (FUNCTION_BOUNDARY_P): New macro: * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function): New hook. * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document. * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook. * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise. * gcc/function.c (allocate_struct_function): Call relayout_function hook. * gcc/passes.c (rest_of_decl_compilation): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228912 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.def')
-rw-r--r--gcc/target.def6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/target.def b/gcc/target.def
index d29aad5c3f8..694e455f570 100644
--- a/gcc/target.def
+++ b/gcc/target.def
@@ -5620,6 +5620,12 @@ specific target options and the caller does not use the same options.",
bool, (tree caller, tree callee),
default_target_can_inline_p)
+DEFHOOK
+(relayout_function,
+"This target hook fixes function @var{fndecl} after attributes are processed. Default does nothing. On ARM, the default function's alignment is updated with the attribute target.",
+ void, (tree fndecl),
+ hook_void_tree)
+
HOOK_VECTOR_END (target_option)
/* For targets that need to mark extra registers as live on entry to