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:
parent
5dd08e17e9
commit
471d881979
8 changed files with 56 additions and 40 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue