public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gomp4] more tile parsing
@ 2016-09-28 15:29 Nathan Sidwell
  2016-09-28 15:30 ` Nathan Sidwell
  0 siblings, 1 reply; 2+ messages in thread
From: Nathan Sidwell @ 2016-09-28 15:29 UTC (permalink / raw)
  To: GCC Patches

In my recent patch for tile clauses, I noticed some tile tests didn't appear to 
fail, even though the loops they tiled were ill formed.  I figured I'd find out 
why in the fullness of time.

Didn't take long for time to be full.  The omp_for parsing routines had no 
knowledge of tile, so did not checking.  This patch rectifies that.

I did notice a couple of nits in the c++ parser, also fixed here
1) we'd complain about a missing inner loop twice, which is a bit repetative. 
Fixed by only emitting the missing for token error, if we didn't already emit an 
error.

2) 'do ... while (1)' is an odd way to write a non-terminating loop.  Changed to 
'for (;;) ...'  I guess the loop condition was originally something other than '1'.

applied to gomp4

nathan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-28 15:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28 15:29 [gomp4] more tile parsing Nathan Sidwell
2016-09-28 15:30 ` Nathan Sidwell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).