2007-04-09 Ralf Corsépius <ralf.corsepius@rtems.org>

* libcsupport/src/newlibc.c: Add __ATTRIBUTE_IMPURE_PTR__
	(Fixes "relocation truncated to fit: R_MIPS_GPREL16" agains
	impure_ptr bug).
	Fix abuse of _REENT_INIT().
This commit is contained in:
Ralf Corsepius
2007-04-09 11:23:12 +00:00
parent 382c020085
commit befa0042cd
2 changed files with 9 additions and 2 deletions

View File

@@ -1,3 +1,10 @@
2007-04-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/newlibc.c: Add __ATTRIBUTE_IMPURE_PTR__
(Fixes "relocation truncated to fit: R_MIPS_GPREL16" agains
impure_ptr bug).
Fix abuse of _REENT_INIT().
2007-04-05 Joel Sherrill <joel@OARcorp.com>
* itron/src/itrontime.c: Fix typo.

View File

@@ -51,7 +51,7 @@
int _fwalk(struct _reent *ptr, int (*function) (FILE *) );
int libc_reentrant; /* do we think we are reentrant? */
struct _reent libc_global_reent;
struct _reent libc_global_reent __ATTRIBUTE_IMPURE_PTR__ = _REENT_INIT(libc_global_reent);
/*
* CYGNUS newlib routine that does atexit() processing and flushes
@@ -305,7 +305,7 @@ libc_init(int reentrant)
rtems_status_code rc;
rtems_id extension_id;
libc_global_reent = (struct _reent) _REENT_INIT((libc_global_reent));
/* libc_global_reent = _REENT_INIT(libc_global_reent); */
_REENT = &libc_global_reent;
if (reentrant) {