[rtems commit] Remove __assert()
Sebastian Huber
sebh at rtems.org
Mon Oct 22 06:16:36 UTC 2018
Module: rtems
Branch: master
Commit: 658ec757cfbef89718b88c42748801c0b71b2a43
Changeset: http://git.rtems.org/rtems/commit/?id=658ec757cfbef89718b88c42748801c0b71b2a43
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Oct 18 14:28:17 2018 +0200
Remove __assert()
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 0dd5137..bc6337a 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 ab6d89c..42ba34e 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
More information about the vc
mailing list