This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] fix regrename pass to ensure renamings produce valid insns
- From: Eric Botcazou <ebotcazou at adacore dot com>
- To: Chung-Lin Tang <cltang at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Sandra Loosemore <sandra at codesourcery dot com>, Kito Cheng <kito dot cheng at gmail dot com>, Jeff Law <law at redhat dot com>, Marcus Shawcroft <Marcus dot Shawcroft at arm dot com>, Richard Earnshaw <Richard dot Earnshaw at arm dot com>, "Schmidt, Bernd - Code Sourcery" <bernds at codesourcery dot com>
- Date: Tue, 30 Jun 2015 11:06:17 +0200
- Subject: Re: [patch] fix regrename pass to ensure renamings produce valid insns
- Authentication-results: sourceware.org; auth=none
- References: <5581AA41 dot 7010201 at codesourcery dot com> <55922571 dot 2050808 at codesourcery dot com> <5592287F dot 4050203 at codesourcery dot com>
> I notice the way gcc_assert() is defined in system.h now, the test won't
> disappear even when runtime checks are disabled, though you might still
> adjust it to avoid any programmer confusion.
It will disappear at run time, see the definition:
/* Include EXPR, so that unused variable warnings do not occur. */
#define gcc_assert(EXPR) ((void)(0 && (EXPR)))
so you really need to use a separate variable.
--
Eric Botcazou