summaryrefslogtreecommitdiff
path: root/packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2007-08-24 08:51:39 +0000
committerKoen Kooi <koen@openembedded.org>2007-08-24 08:51:39 +0000
commit87dd9b603c8730c41aa20102d25b386b6123b1e3 (patch)
tree9529085af6547c1f71ed7df1cc583900b030f4f7 /packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch
parentcbea2f4a751b5ee8fb1343a05742f8b8765dec7a (diff)
parent7e541bf1f5abaad0105328e57198a05f8c17f242 (diff)
propagate from branch 'org.openembedded.dev' (head 63851b92b9273aff39e9034738719537beaaad00)
to branch 'org.openembedded.dev.avr32' (head 73b3fea2362aba583bd68ba2381480ce68660133)
Diffstat (limited to 'packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch')
-rw-r--r--packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch b/packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch
new file mode 100644
index 0000000000..cf0e677ffe
--- /dev/null
+++ b/packages/uclibc/uclibc-0.9.28/avr32/ldso-always-inline-_dl_memcpy.patch
@@ -0,0 +1,24 @@
+Subject: [PATCH] ldso: Always inline _dl_memcpy()
+
+On some gcc versions, inline is merely a hint. AVR32 depends on this
+function actually getting inlined, so we need to use __always_inline
+instead of just inline.
+
+---
+
+ ldso/include/dl-string.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+Index: uClibc-0.9.28/ldso/include/dl-string.h
+===================================================================
+--- uClibc-0.9.28.orig/ldso/include/dl-string.h 2006-02-07 17:01:28.000000000 +0100
++++ uClibc-0.9.28/ldso/include/dl-string.h 2006-02-07 17:03:02.000000000 +0100
+@@ -134,7 +134,7 @@ static inline char * _dl_strstr(const ch
+ } while (1);
+ }
+
+-static inline void * _dl_memcpy(void * dst, const void * src, size_t len)
++static __always_inline void * _dl_memcpy(void * dst, const void * src, size_t len)
+ {
+ register char *a = dst-1;
+ register const char *b = src-1;