ソースを参照

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 13 年 前
コミット
e9988e4304
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  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" },