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: Roland McGrath <roland at hack dot frob dot com>
- To: Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: Joseph Myers <joseph at codesourcery dot com>, libc-alpha at sourceware dot org
- Date: Tue, 25 Nov 2014 14:42:18 -0800 (PST)
- 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>
> Neither you nor Roland liked the IF_LINT approach that Gnulib uses for
> this sort of thing, but I hope we can figure out something else to
> satisfy glibc's constraints. How about something like this?
>
> #define ASSUME_MEM_INITIALIZED(v) asm ("" : "=m" (v))
>
> and then write "ASSUME_MEM_INITIALIZED (resplen)" after declaring resplen.
With "=g" as the constraint it probably won't affect code generation at all.
So that could be OK.
- 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