[PATCH] Fix some -Wunreachable-code issues
John David Anglin
dave@hiauly1.hia.nrc.ca
Tue Nov 5 15:22:00 GMT 2002
> 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)
More information about the Gcc-patches
mailing list