This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Use non-underscore stat() and fstat()


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]