On 07/13/15 09:49, Ilya Verbin wrote:
On Mon, Jul 13, 2015 at 09:42:50 -0400, Nathan Sidwell wrote:
GOMP_offload_register's target data argument is 'void *'. Is there
any reason it shouldn't be 'const void *'? It would seem to me that
that would be better?
(a cursory look at i386/intelmic-mkoffload.c suggests a lack of
consts in the variable decls there. ptx suffers the same problem)
I can't remember any reason, so I agree that const is better (if this works :)
Ok, I'll work in that direction.
(my thought was that for targets where their is mutable data in there, they
should insert the appropriate const-removing casts)
nathan