From 10a82e709408ef691c16969a849fb35fe07ae4c1 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 3 Apr 2003 23:01:12 +0000 Subject: 2003-04-03 Eri Valette PR 381/core * src/newlibc.c: Switch from using _REENT_INIT to _REEINT_INIT_PTR to fix strange run-time problem where EIP was corrupted on pc386 BSP. --- cpukit/libcsupport/ChangeLog | 6 ++++++ cpukit/libcsupport/src/newlibc.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'cpukit/libcsupport') diff --git a/cpukit/libcsupport/ChangeLog b/cpukit/libcsupport/ChangeLog index 8143d251d1..273bcc5e31 100644 --- a/cpukit/libcsupport/ChangeLog +++ b/cpukit/libcsupport/ChangeLog @@ -1,3 +1,9 @@ +2003-04-03 Eri Valette + + PR 381/core + * src/newlibc.c: Switch from using _REENT_INIT to _REEINT_INIT_PTR + to fix strange run-time problem where EIP was corrupted on pc386 BSP. + 2003-03-18 Ralf Corsepius * configure.ac: AC_CHECK_FUNCS(strlcpy strlcat). diff --git a/cpukit/libcsupport/src/newlibc.c b/cpukit/libcsupport/src/newlibc.c index 97834c42e1..43840ead8b 100644 --- a/cpukit/libcsupport/src/newlibc.c +++ b/cpukit/libcsupport/src/newlibc.c @@ -128,7 +128,7 @@ rtems_extension libc_start_hook( #ifdef __GNUC__ /* GCC extension: structure constants */ - *ptr = (struct _reent) _REENT_INIT((*ptr)); + _REENT_INIT_PTR((ptr)); #else /* * WARNING: THIS IS VERY DEPENDENT ON NEWLIB!!! -- cgit v1.2.3