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: [gomp] Allow unsigned iterator with just a warning (PR c/27499)


On Fri, May 12, 2006 at 10:34:34PM +0200, Jakub Jelinek wrote:
> I believe the assert is not needed, the user has been warned that the code
> might not do what he wants and usually it will work as expected.

For some definition of "usually" that includes assuming iteration
doesn't cross the halfway mark.  But I suppose that's normally true
as well.

> 	* gimplify.c (gimplify_omp_for): Remove assertion that iteration var
> 	is signed.
> 	* gcc.dg/gomp/pr27499.c: New test.
> 	* g++.dg/gomp/pr27499.C: New test.


Ok.


r~


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