ARM EABI / Thumb vs. gdb

Bernhard Fischer rep.dot.nop at gmail.com
Thu Jul 17 16:32:56 UTC 2008


On Thu, Jul 17, 2008 at 05:55:30PM +0200, Bernhard Fischer wrote:
>On Thu, Jul 17, 2008 at 08:37:29AM -0700, Khem Raj wrote:
>>Johannes Stezenbach wrote:
>
>>> Please consider merging this change into trunk.
>>
>>uclibc-nptl branch soon collapse into trunk so this changeset will make through.
>
>I've applied this to trunk as r22867:
>
>- pull fix for unwinding from the NPTL branch (Johannes Stezenbach)
>  Repair C89 compliance and severe whitespace-defects while at it.

I'm tempted to apply something like the hunk below and disable it on
release-branches. I've fixed i386 and alpha some time ago, but the
other arches should also try to be gentle to people who are
bootstrapping a comfortable environment for themselves (and thus
may use non-C99 toolchains initially). Note that the version of
ccc that i have access to doesn't even support the keyword volatile..

Index: include/features.h
===================================================================
--- include/features.h	(revision 22866)
+++ include/features.h	(working copy)
@@ -40,6 +40,17 @@
  * a lot of expensive inlining... */
 #define __OPTIMIZE_SIZE__   1
 
+#ifdef _LIBC
+/* make sure that we're gentle to oldish non-gcc:
+   asm -> __asm__
+   volatile -> __volatile__
+ */
+#undef asm
+#define asm BUG_use__asm__instead
+#undef volatile
+#define volatile BUG_use__volatile_instead
+#endif
+
 /* These are defined by the user (or the compiler)
    to specify the desired environment:
 




More information about the uClibc mailing list