1
0
Fork 0
forked from len0rd/rockbox

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
This commit is contained in:
Jens Arnold 2007-02-17 11:19:14 +00:00
parent 5dd08e17e9
commit 471d881979
8 changed files with 56 additions and 40 deletions

View file

@ -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