This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libgomp/36475] [gomp] register keyword in openmp handled for-loop fails
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2008 08:20:40 -0000
- Subject: [Bug libgomp/36475] [gomp] register keyword in openmp handled for-loop fails
- References: <bug-36475-12609@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2008-06-11 08:20 -------
IMHO pedantically that's not valid OpenMP.
#pragma omp for
for (init-expr; test-expr; incr-expr) structured-block
One of the following:
init-expr var = lb
integer-type var = lb
random-access-iterator-type var = lb
pointer-type var = lb
register keyword isn't part of the integer-type, it is a
storage-class-specifier
and the above syntax doesn't mention storage class specifiers anywhere.
Furthermore, I don't see why you'd actually need register keyword there at all,
in today's compilers the keyword is pretty useless, except when used together
with asm ("regname"), but that's not something we can/want to support for
#pragma omp for loops.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36475