This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: sparc: fix for missing include file
- From: Richard Henderson <rth at twiddle dot net>
- To: Will Newton <will dot newton at linaro dot org>, Paul Eggert <eggert at cs dot ucla dot edu>
- Cc: David Miller <davem at davemloft dot net>, Ondrej Bilka <neleai at seznam dot cz>, wbx at openadk dot org, libc-alpha <libc-alpha at sourceware dot org>
- Date: Mon, 15 Dec 2014 12:04:55 -0600
- Subject: Re: sparc: fix for missing include file
- Authentication-results: sourceware.org; auth=none
- References: <20141211 dot 150535 dot 106178897111220975 dot davem at davemloft dot net> <20141213 dot 130022 dot 1182209281374969366 dot davem at davemloft dot net> <548C8EBF dot 6010003 at cs dot ucla dot edu> <20141213 dot 143210 dot 2082290151274481189 dot davem at davemloft dot net> <548C9AC9 dot 8020608 at cs dot ucla dot edu> <CANu=DmifMhj52tF41O-pHdGSR9cBri=AC17PYsk4J1yeTS=MhQ at mail dot gmail dot com>
On 12/15/2014 03:34 AM, Will Newton wrote:
> Loading a zero constant into c is cheap and the side effect of the
> undefined behaviour is potentially a write to memory so it is not
> always going to be a performance win to do this. Also potentially
> runtime analysis tools (e.g. sanitizers, valgrind) may trip over this
> so it seems to me a better idea just to not invoke undefined
> behaviours.
My thoughts exactly.
r~