This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Use non-underscore stat() and fstat()
- From: Corinna Vinschen <vinschen at redhat dot com>
- To: newlib at sourceware dot org
- Date: Fri, 19 Apr 2013 11:13:59 +0200
- Subject: Re: [PATCH] Use non-underscore stat() and fstat()
- References: <1366276295-17446-1-git-send-email-sebastian dot huber at embedded-brains dot de>
- Reply-to: newlib at sourceware dot org
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