plugin-nvptx.c (cuda_lib_inited): Use signed char type instead of char.
authorJakub Jelinek <jakub@redhat.com>
Thu, 13 Apr 2017 19:59:04 +0000 (21:59 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Apr 2017 19:59:04 +0000 (21:59 +0200)
* plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
instead of char.

From-SVN: r246918

libgomp/ChangeLog
libgomp/plugin/plugin-nvptx.c

index 67351ae7d11b35e83cc2d28e6ef268f3e57088a1..5ab1b2a906652e14de0e6114fe2b05aa1710f35f 100644 (file)
@@ -1,3 +1,8 @@
+2017-04-13  Jakub Jelinek  <jakub@redhat.com>
+
+       * plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
+       instead of char.
+
 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
 
        PR libgomp/80394
index 36d447cfed20a59c14511a24daac288b66ecdc6f..3ef48dd5d82e3183adddc6d46b6fe59ff4362c75 100644 (file)
@@ -106,7 +106,7 @@ struct cuda_lib_s {
 
 /* -1 if init_cuda_lib has not been called yet, false
    if it has been and failed, true if it has been and succeeded.  */
-static char cuda_lib_inited = -1;
+static signed char cuda_lib_inited = -1;
 
 /* Dynamically load the CUDA runtime library and initialize function
    pointers, return false if unsuccessful, true if successful.  */