This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: fix -Werror regressions with gcc 4.8 on x86_64
- From: Roland McGrath <roland at hack dot frob dot com>
- To: Alexandre Oliva <aoliva at redhat dot com>
- Cc: Joseph Myers <joseph at codesourcery dot com>, <libc-alpha at sourceware dot org>
- Date: Mon, 5 Jan 2015 15:39:04 -0800 (PST)
- Subject: Re: fix -Werror regressions with gcc 4.8 on x86_64
- Authentication-results: sourceware.org; auth=none
- References: <orr3vr3pa1 dot fsf at free dot home> <oregrq414g dot fsf at free dot home> <alpine dot DEB dot 2 dot 10 dot 1412231952260 dot 31777 at digraph dot polyomino dot org dot uk> <orwq5i2cae dot fsf at free dot home>
I think what we want is to support building libc with NDEBUG but ensure
that this doesn't break the test suite. One approach is some makefile
machinations to ensure that -DNDEBUG gets removed from the options when
compiling the test sources. But I think the better approach is to change
all the test code using assert to use a different macro that exists just
for test code, and never elides the checks.