Module: xenomai-jki
Branch: for-upstream
Commit: 36242d3cb2ddbeda6d06ee8adeba761e808169f4
URL:    
http://git.xenomai.org/?p=xenomai-jki.git;a=commit;h=36242d3cb2ddbeda6d06ee8adeba761e808169f4

Author: Jan Kiszka <jan.kis...@siemens.com>
Date:   Wed May  8 16:26:15 2013 +0200

native: Work around gcc-4.6 bug

This avoid that gcc bug 56712 lets the initialization of the native skin
fail. See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56712 for the
background. Affects in particular Ubuntu 12.04 LTS.

Signed-off-by: Jan Kiszka <jan.kis...@siemens.com>

---

 src/skins/native/init.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/skins/native/init.c b/src/skins/native/init.c
index e380ca6..165048f 100644
--- a/src/skins/native/init.c
+++ b/src/skins/native/init.c
@@ -50,7 +50,7 @@ void __init_native_tskey(void)
 }
 #endif /* !HAVE___THREAD */
 
-static __attribute__ ((constructor))
+static __attribute__ ((constructor, noclone))
 void __init_xeno_interface(void)
 {
        int err;


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
http://www.xenomai.org/mailman/listinfo/xenomai-git

Reply via email to