summaryrefslogtreecommitdiffstats
path: root/arch/tile/lib/memcpy_64.c
diff options
context:
space:
mode:
authorChris Metcalf2013-08-12 21:00:51 +0200
committerChris Metcalf2013-09-03 20:52:09 +0200
commit49cf78ef7bb34833496d59b6dfe84ae51b1ab097 (patch)
tree8c4931de01fd8e6e861cf38e520f40ef1e5143f4 /arch/tile/lib/memcpy_64.c
parenttile: support reporting Tilera hypervisor statistics (diff)
downloadkernel-qcow2-linux-49cf78ef7bb34833496d59b6dfe84ae51b1ab097.tar.gz
kernel-qcow2-linux-49cf78ef7bb34833496d59b6dfe84ae51b1ab097.tar.xz
kernel-qcow2-linux-49cf78ef7bb34833496d59b6dfe84ae51b1ab097.zip
tile: support FRAME_POINTER
Allow enabling frame pointer support; this makes it easier to hook into the various kernel features that claim they require it without having to add Kconfig conditionals everywhere (a la mips, ppc, s390, and microblaze). When enabled, it basically eliminates leaf functions as such, and stops optimizing tail and sibling calls. It adds around 3% to the size of the kernel when enabled. Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/lib/memcpy_64.c')
-rw-r--r--arch/tile/lib/memcpy_64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/tile/lib/memcpy_64.c b/arch/tile/lib/memcpy_64.c
index 46fc1600c17d..4815354b8cd2 100644
--- a/arch/tile/lib/memcpy_64.c
+++ b/arch/tile/lib/memcpy_64.c
@@ -54,7 +54,8 @@ void *memcpy(void *__restrict dstv, const void *__restrict srcv, size_t n)
* macros to return a count of uncopied bytes due to mm fault.
*/
#define RETVAL 0
-int USERCOPY_FUNC(void *__restrict dstv, const void *__restrict srcv, size_t n)
+int __attribute__((optimize("omit-frame-pointer")))
+USERCOPY_FUNC(void *__restrict dstv, const void *__restrict srcv, size_t n)
#endif
{
char *__restrict dst1 = (char *)dstv;