summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog4
-rw-r--r--newlib/libc/include/sys/config.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index a67a49acf..1cdb47b6a 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -1,3 +1,7 @@
+2006-08-29 Paul Brook <paul@codesourcery.com>
+
+ * libc/include/sys/config.h: Define _REENT_SMALL for Thumb-2.
+
2006-08-27 Joel Sherrill <joel.sherrill@OARcorp.com>
* libc/sys/rtems/machine/sys/param.h: Conditionalize definition of
diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index dc6264333..1f3c3e03d 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -125,6 +125,10 @@
#define _REENT_SMALL
#endif /* __m32c__ */
+#ifdef __thumb2__
+/* Thumb-2 based ARMv7M devices are really small. */
+#define _REENT_SMALL
+#endif
#ifdef __SPU__
#define MALLOC_ALIGNMENT 16