This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Add macros for diagnostic control, use them in locale/weightwc.h
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Roland McGrath <roland at hack dot frob dot com>, <libc-alpha at sourceware dot org>
- Date: Wed, 26 Nov 2014 00:36:23 +0000
- Subject: Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot DEB dot 2 dot 10 dot 1411181803130 dot 11642 at digraph dot polyomino dot org dot uk> <alpine dot DEB dot 2 dot 10 dot 1411211705270 dot 2475 at digraph dot polyomino dot org dot uk> <546F79BB dot 80604 at cs dot ucla dot edu> <alpine dot DEB dot 2 dot 10 dot 1411211807540 dot 2475 at digraph dot polyomino dot org dot uk> <546F8FA5 dot 2050702 at cs dot ucla dot edu> <alpine dot DEB dot 2 dot 10 dot 1411212240570 dot 32250 at digraph dot polyomino dot org dot uk> <54701BAA dot 1030805 at cs dot ucla dot edu> <20141124234701 dot 5BB082C3B22 at topped-with-meat dot com> <alpine dot DEB dot 2 dot 10 dot 1411250106450 dot 11608 at digraph dot polyomino dot org dot uk> <54750446 dot 4050908 at cs dot ucla dot edu> <alpine dot DEB dot 2 dot 10 dot 1411252238500 dot 17237 at digraph dot polyomino dot org dot uk> <54751D98 dot 1040307 at cs dot ucla dot edu>
On Tue, 25 Nov 2014, Paul Eggert wrote:
> Joseph Myers wrote:
> > It's only in a particular bit of code where we want to assume it's
> > initialized.
>
> We could use ASSUME_INITIALIZED only in the particular bit of code where it's
> needed, as it doesn't have to be used immediately after a declaration.
But won't the proposed asm, with its output operand for resplen, imply
that any previous value in resplen is dead - which is not correct if you
use it only there (where the point is that in fact there is a value there,
which is not dead, but the compiler can't see there must be a value there)
rather than before any possible initialization?
--
Joseph S. Myers
joseph@codesourcery.com
- References:
- Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h
- Re: Add macros for diagnostic control, use them in locale/weightwc.h