This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc 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: ppc warnings


On Tue, Sep 03, 2002 at 12:10:33AM -0400, Roland McGrath wrote:
> > mbsrtowcs_l.c: In function `wcsmbs_get_towc_func':
> > mbsrtowcs_l.c:39: warning: implicit declaration of function `alloca'
> 
> This indicates you do not have the current version of that source file.
> Make sure your checkout is up to date.
> 
> > fileops.c:1547: warning: weak declaration of `_IO_do_write' after first
> > use results in unspecified behavior
> 
> I have been seeing this on x86 too and I am not really sure why.
> It seems to be harmless.

This is a consequence of the fact that default_symbol_version is a
.symver (which is a strong alias, as I understand it) for shared
libraries, but a weak_alias for non-shared libraries.  _IO_do_write is
used and then declared as versioned_symbol, so in the non-shared case
it is marked weak too late.  The warning means that, for instance, the
compiler can assume its value is not equal to 0 at the earlier uses.

Assuming default_symbol_version has a good reason to be weak_alias,
which seems reasonable, the only way to quiet the warning would be to
have the uses after the definition.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


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