diff options
author | Jakub Jelinek <jakub@redhat.com> | 2017-04-13 21:59:04 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2017-04-13 21:59:04 +0200 |
commit | 19929ba9c99b40f7298dfb2c86dc2568f0f224e4 (patch) | |
tree | 58554729763666848a1835835025f996d1f957fc | |
parent | 099560172fc6d46fcd7878043acab799d4fb044f (diff) | |
download | gcc-19929ba9c99b40f7298dfb2c86dc2568f0f224e4.zip gcc-19929ba9c99b40f7298dfb2c86dc2568f0f224e4.tar.gz gcc-19929ba9c99b40f7298dfb2c86dc2568f0f224e4.tar.bz2 |
plugin-nvptx.c (cuda_lib_inited): Use signed char type instead of char.
* plugin/plugin-nvptx.c (cuda_lib_inited): Use signed char type
instead of char.
From-SVN: r246918
-rw-r--r-- | libgomp/ChangeLog | 5 | ||||
-rw-r--r-- | libgomp/plugin/plugin-nvptx.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/libgomp/ChangeLog b/libgomp/ChangeLog index 67351ae..5ab1b2a 100644 --- a/libgomp/ChangeLog +++ b/libgomp/ChangeLog @@ -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 diff --git a/libgomp/plugin/plugin-nvptx.c b/libgomp/plugin/plugin-nvptx.c index 36d447c..3ef48dd 100644 --- a/libgomp/plugin/plugin-nvptx.c +++ b/libgomp/plugin/plugin-nvptx.c @@ -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. */ |