[PATCH 3/8] Remove __assert()
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Oct 18 13:00:09 UTC 2018
This function is provided by Newlib since 2000.
Update #3409.
---
cpukit/configure.ac | 1 -
cpukit/libcsupport/src/__assert.c | 15 ---------------
2 files changed, 16 deletions(-)
diff --git a/cpukit/configure.ac b/cpukit/configure.ac
index 0dd51376ed..bc6337a4fc 100644
--- a/cpukit/configure.ac
+++ b/cpukit/configure.ac
@@ -72,7 +72,6 @@ AC_CHECK_FUNCS([creat \
telldir \
usleep],,
[RTEMS_TOOL_CHAIN_ERROR])
-AC_CHECK_FUNCS([__assert])
AC_CHECK_FUNCS([execl execlp execle execv execvp execve])
AC_CHECK_FUNCS([regcomp regexec regerror regfree])
diff --git a/cpukit/libcsupport/src/__assert.c b/cpukit/libcsupport/src/__assert.c
index ab6d89c947..42ba34e492 100644
--- a/cpukit/libcsupport/src/__assert.c
+++ b/cpukit/libcsupport/src/__assert.c
@@ -52,18 +52,3 @@ void __assert_func(
rtems_fatal( RTEMS_FATAL_SOURCE_ASSERT, (rtems_fatal_code) &assert_context );
}
#endif
-
-#if defined(RTEMS_NEWLIB) && !defined(HAVE___ASSERT)
-
-/**
- * small RTEMS Specific Implementation
- */
-void __assert(
- const char *file,
- int line,
- const char *failedexpr
-)
-{
- __assert_func (file, line, NULL, failedexpr);
-}
-#endif
--
2.16.4
More information about the devel
mailing list