This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]