Explorar o código

gcc: Add `signed char' as a valid OpenCL type.

* gcc-plugin/src/starpu.c (validate_opencl_argument_type)[type_map]: Add
  "signed char".
Ludovic Courtès %!s(int64=13) %!d(string=hai) anos
pai
achega
e9988e4304
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      gcc-plugin/src/starpu.c

+ 1 - 0
gcc-plugin/src/starpu.c

@@ -1077,6 +1077,7 @@ validate_opencl_argument_type (location_t loc, const_tree type)
 	      /* Scalar types defined in OpenCL 1.2.  See
 		 <http://www.khronos.org/files/opencl-1-2-quick-reference-card.pdf>.  */
 	      { "char", "cl_char" },
+	      { "signed char", "cl_char" },
 	      { "unsigned char", "cl_uchar" },
 	      { "uchar", "cl_uchar" },
 	      { "short int", "cl_short" },