summaryrefslogtreecommitdiffstats
path: root/apps/codecs/lib/codeclib.c
diff options
context:
space:
mode:
authorBrandon Low <lostlogic@rockbox.org>2006-03-09 01:37:52 +0000
committerBrandon Low <lostlogic@rockbox.org>2006-03-09 01:37:52 +0000
commit9c2b203025976fceb3840c2785c96f1baa261982 (patch)
tree6ea28de2148888f3c987679f7ef57dcd13f90657 /apps/codecs/lib/codeclib.c
parentca9e8b6cf5d1bdadf0040eb2f4baec1cbd5e3d7a (diff)
downloadrockbox-9c2b203025976fceb3840c2785c96f1baa261982.tar.gz
rockbox-9c2b203025976fceb3840c2785c96f1baa261982.zip
Fix profiling compilation for non-m68k targets
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8967 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/lib/codeclib.c')
-rw-r--r--apps/codecs/lib/codeclib.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/codecs/lib/codeclib.c b/apps/codecs/lib/codeclib.c
index e6780c68fe..e76d03f4a2 100644
--- a/apps/codecs/lib/codeclib.c
+++ b/apps/codecs/lib/codeclib.c
@@ -145,8 +145,12 @@ void qsort(void *base, size_t nmemb, size_t size,
#ifdef RB_PROFILE
void __cyg_profile_func_enter(void *this_fn, void *call_site) {
+#ifdef CPU_COLDFIRE
(void)call_site;
local_rb->profile_func_enter(this_fn, __builtin_return_address(1));
+#else
+ local_rb->profile_func_enter(this_fn, call_site);
+#endif
}
void __cyg_profile_func_exit(void *this_fn, void *call_site) {