This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix some -Wunreachable-code issues
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: thorpej at wasabisystems dot com (Jason R Thorpe)
- Cc: gcc-patches at gcc dot gnu dot org, jakub at redhat dot com, rth at redhat dot com
- Date: Tue, 5 Nov 2002 18:22:45 -0500 (EST)
- Subject: Re: [PATCH] Fix some -Wunreachable-code issues
> Here are 3 Duff's device tests:
>
> 1. Loop start before first label, no comparison in for()
> statement. PR 3846. This test no longer fails (guess
> the PR should be closed).
>
> 2. Loop start before first label, comparison in while()
> statement. PR 5230 (which was closed as a duplicate
> of 3846, but I think I'll reopen, since this still
> produces a bogus warning). This test fails. It is
> a regression relative to 2.95.3, which does not produce
> a warning for this code. The warning is bogus; the
> while() statement is clearly reachable, since the loop
> eventually terminates.
There was I believe a suggested fix with PR 3846. Was this looked at?
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)