From 471d881979e0027737a435fd03efea493ea696f3 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 17 Feb 2007 11:19:14 +0000 Subject: ARM targets: Making a few functions non-static allows us to get rid of -ffunction-sections, significantly decreasing binary size and making things run a bit faster because static functions are no longer long_call. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12349 a1c6a512-1295-4272-9138-f99709370657 --- firmware/export/config.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'firmware/export/config.h') diff --git a/firmware/export/config.h b/firmware/export/config.h index 5e127b430d..4d7a3aecdf 100644 --- a/firmware/export/config.h +++ b/firmware/export/config.h @@ -298,11 +298,20 @@ #if CONFIG_CPU != SH7034 #define IRAM_STEAL #endif +#if defined(CPU_ARM) +/* GCC quirk workaround: arm-elf-gcc treats static functions as short_call + * when not compiling with -ffunction-sections, even when the function has + * a section attribute. */ +#define STATICIRAM +#else +#define STATICIRAM static +#endif #else #define ICODE_ATTR #define ICONST_ATTR #define IDATA_ATTR #define IBSS_ATTR +#define STATICIRAM static #endif #ifndef IRAM_LCDFRAMEBUFFER -- cgit v1.2.3