diff options
author | Dave Chapman <dave@dchapman.com> | 2009-10-04 08:49:23 +0000 |
---|---|---|
committer | Dave Chapman <dave@dchapman.com> | 2009-10-04 08:49:23 +0000 |
commit | 9546e4093d8a6f9b27c06db242894c3dc9d9f574 (patch) | |
tree | 5d7571051b6d08993448ba3493c0bd678998f1fe /apps/codecs/libtremor/config-tremor.h | |
parent | ccec5cfe79025b4f203619a0d8b4083445e6063c (diff) | |
download | rockbox-9546e4093d8a6f9b27c06db242894c3dc9d9f574.tar.gz rockbox-9546e4093d8a6f9b27c06db242894c3dc9d9f574.zip |
Add STATICIRAM_NOT_MDCT as a workaround for the gcc bug where static functions are not long called. This is currently only an issue on the Nano2G (S5L8701 CPU) which is the only ARM target with enough IRAM for these functions. Also add multiple-inclusion protection for config-tremor.h. All plugins and codecs now compile cleanly for the Nano2G.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22914 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/libtremor/config-tremor.h')
-rw-r--r-- | apps/codecs/libtremor/config-tremor.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/codecs/libtremor/config-tremor.h b/apps/codecs/libtremor/config-tremor.h index d360b5fd73..403fdfd88b 100644 --- a/apps/codecs/libtremor/config-tremor.h +++ b/apps/codecs/libtremor/config-tremor.h | |||
@@ -1,4 +1,8 @@ | |||
1 | #ifndef _CONFIG_TREMOR_H | ||
2 | #define _CONFIG_TREMOR_H | ||
3 | |||
1 | #include "codeclib.h" | 4 | #include "codeclib.h" |
5 | |||
2 | #ifdef CPU_ARM | 6 | #ifdef CPU_ARM |
3 | #define _ARM_ASSEM_ | 7 | #define _ARM_ASSEM_ |
4 | #endif | 8 | #endif |
@@ -17,6 +21,14 @@ | |||
17 | #define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR | 21 | #define ICODE_ATTR_TREMOR_MDCT ICODE_ATTR |
18 | #endif | 22 | #endif |
19 | 23 | ||
24 | /* Workaround for gcc bug where all static functions are called with short | ||
25 | calls */ | ||
26 | #if !defined(ICODE_ATTR_TREMOR_NOT_MDCT) && (CONFIG_CPU==S5L8701) | ||
27 | #define STATICIRAM_NOT_MDCT | ||
28 | #else | ||
29 | #define STATICIRAM_NOT_MDCT static | ||
30 | #endif | ||
31 | |||
20 | #ifndef ICODE_ATTR_TREMOR_NOT_MDCT | 32 | #ifndef ICODE_ATTR_TREMOR_NOT_MDCT |
21 | #define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR | 33 | #define ICODE_ATTR_TREMOR_NOT_MDCT ICODE_ATTR |
22 | #endif | 34 | #endif |
@@ -47,3 +59,5 @@ | |||
47 | #define CHANNELS 2 | 59 | #define CHANNELS 2 |
48 | 60 | ||
49 | // #define _LOW_ACCURACY_ | 61 | // #define _LOW_ACCURACY_ |
62 | |||
63 | #endif /* _CONFIG_TREMOR_H */ | ||