This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/4210] should not warning with dead code
- From: "joseph at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Mar 2006 23:22:51 -0000
- Subject: [Bug middle-end/4210] should not warning with dead code
- References: <bug-4210-955@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #15 from joseph at codesourcery dot com 2006-03-01 23:22 -------
Subject: Re: should not warning with dead code
On Wed, 1 Mar 2006, bangerth at dealii dot org wrote:
> c) doesn't work with code where the code guarded by the if(0) is more
> than a single statement.
It does; I've used it to eliminate all these warnings in glibc's soft-fp
code. Use statement expressions, i.e. surround the whole if body with ({
}).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210