[PATCH] Use non-underscore stat() and fstat()
Corinna Vinschen
vinschen@redhat.com
Fri Apr 19 09:14:00 GMT 2013
On Apr 18 11:11, Sebastian Huber wrote:
> The change
>
> 2012-08-08 Corinna Vinschen <vinschen@redhat.com>
>
> Throughout, run newlib with -Wall -Werror option and fix bugs and
> compiler warnings found this way.
>
> [...]
> * libc/search/hash.c: Throughout use underscored variants of the stat
> function family.
> [...]
>
> introduces a problem on RTEMS:
>
> /scratch/opt/rtems-4.11/lib64/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-hash.o):
> In function `__hash_open':
> (.text+0xed8): undefined reference to `_stat'
> /scratch/opt/rtems-4.11/lib64/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-hash.o):
> In function `__hash_open':
> (.text+0x116c): undefined reference to `_stat'
> /scratch/opt/rtems-4.11/lib64/gcc/mips-rtems4.11/4.8.1/../../../../mips-rtems4.11/lib/libc.a(lib_a-hash.o):
> In function `__hash_open':
> (.text+0x1220): undefined reference to `_fstat'
>
> I don't get compiler warnings for this file:
I think I changed them for symmetry only. I couldn't reproduce a
warning myself. I reverted that patch.
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
More information about the Newlib
mailing list