Skip to contentSkip to conversation

Boost 1.36.0 'improvements' and wesnoth 1.6a

PATCH GNUtoo 2 participants 3 messages Apr 5, 2009 – Apr 8, 2009

lore
Share & tools
lore

GNUtoo

author
#0 lore raw

Hello,
I have:
*An improved but not commitable yet boost 1.36.0 recipe
*A wesnoth(1.6a) recipe that I'll commit when the improved boost recipe hit the tree
What is for review here is the improved boost 1.36.0(I need it for the new(as 1.6a) wesnoth recipe).
I send it for review because it's a dependency used by others packages.(even if it's not the default I heard that this version was needed for packages like GNU radio)

The Main problem is that the *new* wesnoth recipe doesn't work on arm < armv6 that lack ldrex and strex instructions...that's a boost problem. I've (cross)compiled boost and wesnoth for the bug device(armv6) and it cross compiled fine with minor issues such as:
ERROR: QA Issue: No GNU_HASH in the elf binary for each boost library and:
NOTE: Not creating empty archive for boost-1.36.0-r5
NOTE: Not creating empty archive for boost-doc-1.36.0-r5
NOTE: Not creating empty archive for boost-locale-1.36.0-r5
NOTE: Not creating empty archive for boost-graph-1.36.0-r5 This is because in the install dir there are no doc or locales files and no graph library...
I should fix it.

The big problem is that I couldn't test it(my bug device had a defect and will be replaced,it's replacement is coming soon)
But according to:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/22228/focus=22369
Packages can be commited even if they are not tested(even in stable) but they must compile fine...(I've tested every other package I commited but here I'm in the impossibility to test it until my device arrive)

Here the explanation of the main problem:
Fisrt I'd like to say that it was there before and is not specific to this boost version(boost 1.36.0)...for instance it was observed on boost 1.33.1 with the new wesnoth(the old compiles and runs fine) The error is attached boost_error.txt
The Documentation is here:
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Atomic-Builtins.html
The important part is:
"Not all operations are supported by all target processors. If a particular operation cannot be implemented on the target processor, a warning will be generated and a call an external function will be generated. The external function will carry the same name as the builtin, with an additional suffix `_n' where n is the size of the data type. "
So an external function must be written such as the one in the arm-intrinsics.patch (attached)
The function written in the arm-intrinsics.patch only work for architecture >= armv6
Question:
According to the manual(14128.pdf : ARM Architecture Reference Manual) the ldrex and strex function are avaliable since ARMv6 and here there is:
+#if __ARM_ARCH_7A__
which doesn't work for my bug device because it's an armv6 so can will the fact of changing it to:
+#ifdef __ARM_ARCH_6J__
break arm > v6
(or is there something defined like __HAVE_LDREX__? )

Then I tried something for not having to write the function:
*echo '#define BOOST_SP_USE_PTHREADS' >> ${S}/boost/config/user.hpp in the recipe
that added it to the user.hpp file but there still was the same compilation error
There was also -DBOOST_SP_USE_PTHREADS defined in the original recipe:
echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam

none of them worked.

Before that I was told to steal the function somewhere but I didn't find it in GCC nor looked deeply at the possible licensing issues

So the last option remaining is to write this function... On IRC woglinde pointed me to that article:
http://lwn.net/Articles/314235/
The interresting part is at Posted Jan 12, 2009 19:58 UTC (Mon) by npitre (subscriber, #5680)
But there are things that I didn't understand yet(but I understood the bare assembly part) such as:
what is r0 in:
subs r3, r3, r0 @ compare with oldval
what is #TASK_SIZE ?
why is r3 assigned to 0xffff0fff in :
mov r3, #0xffff0fff ?
what is add 0xffff0fc0 - 0xffff0fff in :
add pc, r3, #(0xffff0fc0 - 0xffff0fff)

So I won't use,modify and commit what I dont' understand...it could have disastrous results...who knows...

PS: I've a stupid question:
what's the simpliest way to put a default preference = "-1" only to certain arm arch such as:
armv4 armv4t armv5te
DEFAULT_PREFERENCE_armv4 = "-1" DEFAULT_PREFERENCE_armv4t = "-1" DEFAULT_PREFERENCE_armv5te = "-1"
?

I'll attach the git diff

Denis.

| [ 97%] Building CXX object src/CMakeFiles/wesnoth.dir/editor2/mouse_action.o
| Linking CXX executable ../wesnoth
| CMakeFiles/wesnoth.dir/formula_ai.o: In function `boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >::release() const':
| 

formula_ai.cpp:(.text._ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_16bad_lexical_castEEEE7releaseEv[boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_lexical_cast>

Quoted 1 line

::release() const]+0x18): undefined reference to `__sync_add_and_fetch_4'

| CMakeFiles/wesnoth.dir/formula_ai.o: In function `boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_lexical_cast> >::add_ref() const':
| formula_ai.cpp:(.text._ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_16bad_lexical_castEEEE7add_refEv[boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_lexical_cast>

Quoted 1 line

::add_ref() const]+0x18): undefined reference to `__sync_add_and_fetch_4'

| CMakeFiles/wesnoth.dir/gui/dialogs/editor_settings.o: In function `boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_function_call> >::release() const':
| editor_settings.cpp:(.text._ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_17bad_function_callEEEE7releaseEv[boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_function_call>

Quoted 1 line

::release() const]+0x18): undefined reference to `__sync_add_and_fetch_4'

| CMakeFiles/wesnoth.dir/gui/dialogs/editor_settings.o: In function `boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_function_call> >::add_ref() const':
| editor_settings.cpp:(.text._ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_17bad_function_callEEEE7add_refEv[boost::exception_detail::exception_clone<boost::exception_detail::error_info_injector<boost::bad_function_call>

Quoted 1 line

::add_ref() const]+0x18): undefined reference to `__sync_add_and_fetch_4'

| collect2: ld returned 1 exit status
| make[2]: *** [wesnoth] Error 1
| make[1]: *** [src/CMakeFiles/wesnoth.dir/all] Error 2
| make: *** [all] Error 2
| FATAL: oe_runmake failed

NOTE: Task failed: /home/embedded/oetmp_openmoko/work/armv4t-angstrom-linux-gnueabi/wesnoth-1.6a-r0/temp/log.do_compile.19287
NOTE: package wesnoth-1.6a-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
ERROR: Build of /home/embedded/oe/local_recipes/recipes/westnoth/wesnoth_1.6a.bb do_compile failed
ERROR: Task 7 (/home/embedded/oe/local_recipes/recipes/westnoth/wesnoth_1.6a.bb, do_compile) failed
NOTE: Tasks Summary: Attempted 772 tasks of which 771 didn't need to be rerun and 1 failed.
ERROR: '/home/embedded/oe/local_recipes/recipes/westnoth/wesnoth_1.6a.bb' failed
NOTE: build 200903281458: completed

boost/detail/atomic_count_sync.hpp +29 -0
diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm/boost/detail/atomic_count_sync.hpp
@@ -29,17 +29,46 @@
 
     void operator++()
     {
+#ifdef __ARM_ARCH_6J__
+       int v1, tmp;
+       asm volatile ("1:                 \n\t"
+                     "ldrex   %0, %1     \n\t"
+                     "add     %0 ,%0, #1 \n\t"
+                     "strex   %2, %0, %1 \n\t"
+                     "cmp     %2, #0     \n\t"
+                     "bne     1b         \n\t"
+                     : "=&r" (v1), "+Q"(value_), "=&r"(tmp)
+                    );
+#else
         __sync_add_and_fetch( &value_, 1 );
+#endif
     }
 
     long operator--()
     {
+#ifdef __ARM_ARCH_6J__
+       int v1, tmp;
+       asm volatile ("1:                 \n\t"
+                     "ldrex   %0, %1     \n\t"
+                     "sub     %0 ,%0, #1 \n\t"
+                     "strex   %2, %0, %1 \n\t"
+                     "cmp     %2, #0     \n\t"
+                     "bne     1b         \n\t"
+                     : "=&r" (v1), "+Q"(value_), "=&r"(tmp)
+                    );
+       return value_;
+#else
         return __sync_add_and_fetch( &value_, -1 );
+#endif
     }
 
     operator long() const
     {
+#if __ARM_ARCH_6J__
+        return value_;
+#else
         return __sync_fetch_and_add( &value_, 0 );
+#endif
     }
 
 private:

Binary files boost_1_36_0.orig/boost/detail/.atomic_count_sync.hpp.swp and boost_1_36_0.arm/boost/detail/.atomic_count_sync.hpp.swp differ

recipes/boost/boost-36.inc +64 -105

193 lines not on this page · raw message

recipes/boost/boost_1.36.0.bb +13 -5
index 140ab29..0675ec4 100644
@@ -1,12 +1,20 @@
 include boost-36.inc
 
-PR = "r6"
+PR = "r5"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/boost/${BOOST_P}.tar.bz2 \
            file://arm-intrinsics.patch;patch=1 \
-          "
+           file://no-long-double-math.patch;patch=1 \
+	   file://math_tools_config.patch;patch=1 \
+           file://add-disable-long-double.patch;patch=1 \
+	   file://spinlock-no-swp-thumb.patch;patch=1 \
+	   "
 
-BJAM_OPTS    = '${BJAM_TOOLS} \
+BJAM_OPTS    = "${BJAM_TOOLS} \
                 --builddir=${S}/${TARGET_SYS} \
-                ${BJAM_EXTRA}'
-
+		--disable-long-double \
+		--without-serialization \
+		--without-python \
+		--without-graph \
+		--without-wave \
+                ${BJAM_EXTRA}"
recipes/boost/files/add-disable-long-double.patch new file +61 -0

61 lines not on this page · raw message

recipes/boost/files/arm-intrinsics.patch +3 -3
index 860b6df..cc8c3ed 100644
@@ -5,7 +5,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm
  
      void operator++()
      {
-+#ifdef __ARM_ARCH_7A__
++#ifdef __ARM_ARCH_6J__
 +       int v1, tmp;
 +       asm volatile ("1:                 \n\t"
 +                     "ldrex   %0, %1     \n\t"
@@ -22,7 +22,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm
  
      long operator--()
      {
-+#ifdef __ARM_ARCH_7A__
++#ifdef __ARM_ARCH_6J__
 +       int v1, tmp;
 +       asm volatile ("1:                 \n\t"
 +                     "ldrex   %0, %1     \n\t"
@@ -40,7 +40,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm
  
      operator long() const
      {
-+#if __ARM_ARCH_7A__
++#if __ARM_ARCH_6J__
 +        return value_;
 +#else
          return __sync_fetch_and_add( &value_, 0 );
recipes/boost/files/math_tools_config.patch new file +11 -0
new file mode 100644
index 0000000..1ce8481
@@ -0,0 +1,11 @@
+--- boost1.36-1.36.0.orig/boost/math/tools/config.hpp
++++ boost1.36-1.36.0/boost/math/tools/config.hpp
+@@ -23,7 +23,7 @@
+ #include <boost/math/tools/user.hpp>
+ #include <boost/math/special_functions/detail/round_fwd.hpp>
+
+-#if defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__hppa)
++#if defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__arm__) || defined(__armel__) || defined(__hppa) || defined(__mips__) || defined(__mipsel__)
+ #  define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ #endif
+ #if BOOST_WORKAROUND(__BORLANDC__, BOOST_TESTED_AT(0x582))
recipes/boost/files/no-long-double-math.patch new file +20 -0
new file mode 100644
index 0000000..01dc8c5
@@ -0,0 +1,20 @@
+Index: boost_1_36_0/boost/math/special_functions/log1p.hpp
+===================================================================
+--- boost_1_36_0.orig/boost/math/special_functions/log1p.hpp
++++ boost_1_36_0/boost/math/special_functions/log1p.hpp
+@@ -330,6 +330,7 @@ inline float log1p(float x, const Policy
+          "log1p<%1%>(%1%)", 0, pol);
+    return ::log1pf(x); 
+ }
++#ifndef BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS
+ template <class Policy>
+ inline long double log1p(long double x, const Policy& pol)
+ { 
+@@ -341,6 +342,7 @@ inline long double log1p(long double x, 
+          "log1p<%1%>(%1%)", 0, pol);
+    return ::log1pl(x); 
+ }
++#endif
+ #else
+ template <class Policy>
+ inline float log1p(float x, const Policy& pol)
recipes/boost/files/spinlock-no-swp-thumb.patch new file +16 -0
new file mode 100644
index 0000000..31ec4bd
@@ -0,0 +1,16 @@
+Index: boost_1_36_0/boost/detail/spinlock.hpp
+===================================================================
+--- boost_1_36_0.orig/boost/detail/spinlock.hpp
++++ boost_1_36_0/boost/detail/spinlock.hpp
+@@ -30,9 +30,9 @@
+ 
+ #include <boost/config.hpp>
+ 
+-#if defined(__GNUC__) && defined( __arm__ )
++#if defined(__GNUC__) && defined( __arm__ ) && !defined( __thumb__ ) 
+ #  include <boost/detail/spinlock_gcc_arm.hpp>
+-#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 )
++#elif defined(__GNUC__) && ( __GNUC__ * 100 + __GNUC_MINOR__ >= 401 ) && !defined( __arm__ ) 
+ #  include <boost/detail/spinlock_sync.hpp>
+ #elif defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
+ #  include <boost/detail/spinlock_w32.hpp>
#1 lore raw
Quoted 78 lines · GNUtoo

Hello,
I have:
*An improved but not commitable yet boost 1.36.0 recipe
*A wesnoth(1.6a) recipe that I'll commit when the improved boost recipe hit the tree
What is for review here is the improved boost 1.36.0(I need it for the new(as 1.6a) wesnoth recipe).
I send it for review because it's a dependency used by others packages.(even if it's not the default I heard that this version was needed for packages like GNU radio)

The Main problem is that the *new* wesnoth recipe doesn't work on arm < armv6 that lack ldrex and strex instructions...that's a boost problem. I've (cross)compiled boost and wesnoth for the bug device(armv6) and it cross compiled fine with minor issues such as:
ERROR: QA Issue: No GNU_HASH in the elf binary for each boost library and:
NOTE: Not creating empty archive for boost-1.36.0-r5
NOTE: Not creating empty archive for boost-doc-1.36.0-r5
NOTE: Not creating empty archive for boost-locale-1.36.0-r5
NOTE: Not creating empty archive for boost-graph-1.36.0-r5 This is because in the install dir there are no doc or locales files and no graph library...
I should fix it.

The big problem is that I couldn't test it(my bug device had a defect and will be replaced,it's replacement is coming soon)
But according to:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/22228/focus=22369
Packages can be commited even if they are not tested(even in stable) but they must compile fine...(I've tested every other package I commited but here I'm in the impossibility to test it until my device arrive)

Here the explanation of the main problem:
Fisrt I'd like to say that it was there before and is not specific to this boost version(boost 1.36.0)...for instance it was observed on boost 1.33.1 with the new wesnoth(the old compiles and runs fine) The error is attached boost_error.txt
The Documentation is here:
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Atomic-Builtins.html
The important part is:
"Not all operations are supported by all target processors. If a particular operation cannot be implemented on the target processor, a warning will be generated and a call an external function will be generated. The external function will carry the same name as the builtin, with an additional suffix `_n' where n is the size of the data type. "
So an external function must be written such as the one in the arm-intrinsics.patch (attached)
The function written in the arm-intrinsics.patch only work for architecture >= armv6
Question:
According to the manual(14128.pdf : ARM Architecture Reference Manual) the ldrex and strex function are avaliable since ARMv6 and here there is:
+#if __ARM_ARCH_7A__
which doesn't work for my bug device because it's an armv6 so can will the fact of changing it to:
+#ifdef __ARM_ARCH_6J__
break arm > v6
(or is there something defined like __HAVE_LDREX__? )

Then I tried something for not having to write the function:
*echo '#define BOOST_SP_USE_PTHREADS' >> ${S}/boost/config/user.hpp in the recipe
that added it to the user.hpp file but there still was the same compilation error
There was also -DBOOST_SP_USE_PTHREADS defined in the original recipe:
echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam

none of them worked.

Before that I was told to steal the function somewhere but I didn't find it in GCC nor looked deeply at the possible licensing issues

Quoted 9 lines

So the last option remaining is to write this function... On IRC woglinde pointed me to that article:
http://lwn.net/Articles/314235/
The interresting part is at Posted Jan 12, 2009 19:58 UTC (Mon) by npitre (subscriber, #5680)
But there are things that I didn't understand yet(but I understood the bare assembly part) such as:
what is r0 in:
subs r3, r3, r0 @ compare with oldval

That's the first argument to the function at 0xffff0fc0. The same that is filled with "ldr r0, [r2]" in the atomic_add macro below.

Quoted 1 line

what is #TASK_SIZE ?

I googled TASK_SIZE and found this:
"For speed reasons, kernel is mapped in each processes memory above the TASK_SIZE, protected from access (requires privilege level 0 to access)."
here: http://mail.nl.linux.org/kernelnewbies/2004-04/msg00006.html

Quoted 4 lines

why is r3 assigned to 0xffff0fff in :
mov r3, #0xffff0fff ?
what is add 0xffff0fc0 - 0xffff0fff in :
add pc, r3, #(0xffff0fc0 - 0xffff0fff)

Those two together have the same effect as "mov pc, =0xffff0fc0". ARM can't do "mov pc, #0xffff0fc0" directly, I guess this is the fastest possible way to achieve the above.

Quoted 14 lines

So I won't use,modify and commit what I dont' understand...it could have disastrous results...who knows...

PS: I've a stupid question:
what's the simpliest way to put a default preference = "-1" only to certain arm arch such as:
armv4 armv4t armv5te
DEFAULT_PREFERENCE_armv4 = "-1" DEFAULT_PREFERENCE_armv4t = "-1" DEFAULT_PREFERENCE_armv5te = "-1"
?

I'll attach the git diff

Quoted 9 lines

Denis.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

cheers
Philipp

author
#2 lore raw
Quoted 132 lines · pHilipp Zabel
Quoted 78 lines · GNUtoo

Hello,
I have:
*An improved but not commitable yet boost 1.36.0 recipe
*A wesnoth(1.6a) recipe that I'll commit when the improved boost recipe hit the tree
What is for review here is the improved boost 1.36.0(I need it for the new(as 1.6a) wesnoth recipe).
I send it for review because it's a dependency used by others packages.(even if it's not the default I heard that this version was needed for packages like GNU radio)

The Main problem is that the *new* wesnoth recipe doesn't work on arm < armv6 that lack ldrex and strex instructions...that's a boost problem. I've (cross)compiled boost and wesnoth for the bug device(armv6) and it cross compiled fine with minor issues such as:
ERROR: QA Issue: No GNU_HASH in the elf binary for each boost library and:
NOTE: Not creating empty archive for boost-1.36.0-r5
NOTE: Not creating empty archive for boost-doc-1.36.0-r5
NOTE: Not creating empty archive for boost-locale-1.36.0-r5
NOTE: Not creating empty archive for boost-graph-1.36.0-r5 This is because in the install dir there are no doc or locales files and no graph library...
I should fix it.

The big problem is that I couldn't test it(my bug device had a defect and will be replaced,it's replacement is coming soon)
But according to:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/22228/focus=22369
Packages can be commited even if they are not tested(even in stable) but they must compile fine...(I've tested every other package I commited but here I'm in the impossibility to test it until my device arrive)

Here the explanation of the main problem:
Fisrt I'd like to say that it was there before and is not specific to this boost version(boost 1.36.0)...for instance it was observed on boost 1.33.1 with the new wesnoth(the old compiles and runs fine) The error is attached boost_error.txt
The Documentation is here:
http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/Atomic-Builtins.html
The important part is:
"Not all operations are supported by all target processors. If a particular operation cannot be implemented on the target processor, a warning will be generated and a call an external function will be generated. The external function will carry the same name as the builtin, with an additional suffix `_n' where n is the size of the data type. "
So an external function must be written such as the one in the arm-intrinsics.patch (attached)
The function written in the arm-intrinsics.patch only work for architecture >= armv6
Question:
According to the manual(14128.pdf : ARM Architecture Reference Manual) the ldrex and strex function are avaliable since ARMv6 and here there is:
+#if __ARM_ARCH_7A__
which doesn't work for my bug device because it's an armv6 so can will the fact of changing it to:
+#ifdef __ARM_ARCH_6J__
break arm > v6
(or is there something defined like __HAVE_LDREX__? )

Then I tried something for not having to write the function:
*echo '#define BOOST_SP_USE_PTHREADS' >> ${S}/boost/config/user.hpp in the recipe
that added it to the user.hpp file but there still was the same compilation error
There was also -DBOOST_SP_USE_PTHREADS defined in the original recipe:
echo 'using gcc : 4.3.1 : ${CXX} : compileflags -DBOOST_SP_USE_PTHREADS -I${includedir} linkflags -L${libdir} ;' >> ${S}/tools/build/v2/user-config.jam

none of them worked.

Before that I was told to steal the function somewhere but I didn't find it in GCC nor looked deeply at the possible licensing issues

Quoted 9 lines

So the last option remaining is to write this function... On IRC woglinde pointed me to that article:
http://lwn.net/Articles/314235/
The interresting part is at Posted Jan 12, 2009 19:58 UTC (Mon) by npitre (subscriber, #5680)
But there are things that I didn't understand yet(but I understood the bare assembly part) such as:
what is r0 in:
subs r3, r3, r0 @ compare with oldval

That's the first argument to the function at 0xffff0fc0. The same that is filled with "ldr r0, [r2]" in the atomic_add macro below.

Quoted 1 line

what is #TASK_SIZE ?

I googled TASK_SIZE and found this:
"For speed reasons, kernel is mapped in each processes memory above the TASK_SIZE, protected from access (requires privilege level 0 to access)."
here: http://mail.nl.linux.org/kernelnewbies/2004-04/msg00006.html

Quoted 4 lines

why is r3 assigned to 0xffff0fff in :
mov r3, #0xffff0fff ?
what is add 0xffff0fc0 - 0xffff0fff in :
add pc, r3, #(0xffff0fc0 - 0xffff0fff)

Those two together have the same effect as "mov pc, =0xffff0fc0". ARM can't do "mov pc, #0xffff0fc0" directly, I guess this is the fastest possible way to achieve the above.

Quoted 14 lines

So I won't use,modify and commit what I dont' understand...it could have disastrous results...who knows...

PS: I've a stupid question:
what's the simpliest way to put a default preference = "-1" only to certain arm arch such as:
armv4 armv4t armv5te
DEFAULT_PREFERENCE_armv4 = "-1" DEFAULT_PREFERENCE_armv4t = "-1" DEFAULT_PREFERENCE_armv5te = "-1"
?

I'll attach the git diff

Quoted 9 lines

Denis.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

Quoted 2 lines

cheers
Philipp

thanks a lot!!! as usual I read(the lwn article) too quickly even if I read it several times...
I understand now...
Wesnoth now compiles fine(I've written the input/output and clobber list but I had issue...someone helped me debug this...it was very tricky...) I now have a segmentation fault at runtime...
gdb has a bug so I am using gdbserver+gdb
I'm now (cross)compiling boost with debug inside it(and recompiling wesnoth)
Denis.