From d56a43a0e09598ec8e4e76817e5cd0f76e564962 Mon Sep 17 00:00:00 2001 From: Andreas Krebbel Date: Mon, 5 May 2014 07:55:26 +0000 Subject: target.def: Add new target hook. 2014-05-05 Andreas Krebbel * target.def: Add new target hook. * doc/tm.texi: Regenerate. * targhooks.h (default_keep_leaf_when_profiled): Add prototype. * targhooks.c (default_keep_leaf_when_profiled): New function. * config/s390/s390.c (s390_keep_leaf_when_profiled): New function. (TARGET_KEEP_LEAF_WHEN_PROFILED): Define. 2014-05-05 Andreas Krebbel * gcc.target/s390/leaf-profile.c: New testcase. From-SVN: r210061 --- gcc/targhooks.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'gcc/targhooks.c') diff --git a/gcc/targhooks.c b/gcc/targhooks.c index 79491c7..0be1978 100644 --- a/gcc/targhooks.c +++ b/gcc/targhooks.c @@ -1447,6 +1447,15 @@ default_get_reg_raw_mode (int regno) return reg_raw_mode[regno]; } +/* Return true if a leaf function should stay leaf even with profiling + enabled. */ + +bool +default_keep_leaf_when_profiled () +{ + return false; +} + /* Return true if the state of option OPTION should be stored in PCH files and checked by default_pch_valid_p. Store the option's current state in STATE if so. */ -- cgit v1.1