This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[patch,rtems] Don't build __assert_func for RTEMS
- From: Ralf Corsepius <ralf dot corsepius at rtems dot org>
- To: "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: Joel Sherrill <joel dot sherrill at OARcorp dot com>
- Date: Tue, 22 Sep 2009 05:36:28 +0200
- Subject: [patch,rtems] Don't build __assert_func for RTEMS
Hi,
another RTEMS patch.
RTEMS has a version of __assert_func of its own outside of newlib and
therefore doesn't need newlib's __assert_func.
Ralf
2009-09-22 Ralf CorsÃpius <ralf.corsepius@rtems.org>
* libc/stdlib/assert.c (__assert_func): Don't build for RTEMS.
Index: libc/stdlib/assert.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/stdlib/assert.c,v
retrieving revision 1.3
diff -u -r1.3 assert.c
--- libc/stdlib/assert.c 27 Jun 2007 12:44:41 -0000 1.3
+++ libc/stdlib/assert.c 22 Sep 2009 03:32:37 -0000
@@ -47,6 +47,9 @@
#include <stdlib.h>
#include <stdio.h>
+#if !defined(__rtems__)
+/* RTEMS has a version of its own */
+
/* func can be NULL, in which case no function information is given. */
void
_DEFUN (__assert_func, (file, line, func, failedexpr),
@@ -62,6 +65,7 @@
abort();
/* NOTREACHED */
}
+#endif
void
_DEFUN (__assert, (file, line, failedexpr),