diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2011-02-15 20:10:13 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2011-02-15 20:10:13 +0000 |
commit | 648cd113ef17e879ef867c1d37567d0c0138dd47 (patch) | |
tree | 42f025658d7c140d9b6425b0b9c41b1a173d284a /gdb/opencl-lang.c | |
parent | d58a192976eba896842e03d757d72492dbcb9a0b (diff) | |
download | gdb-648cd113ef17e879ef867c1d37567d0c0138dd47.zip gdb-648cd113ef17e879ef867c1d37567d0c0138dd47.tar.gz gdb-648cd113ef17e879ef867c1d37567d0c0138dd47.tar.bz2 |
gdb/ChangeLog
2011-02-15 Ken Werner <ken.werner@de.ibm.com>
* opencl-lang.c (build_opencl_types): Set the size of the built-in
bool data type to a size of one byte.
gdb/testsuite/ChangeLog
2011-02-15 Ken Werner <ken.werner@de.ibm.com>
* gdb.opencl/datatypes.exp: Expect the size of a bool to be one byte.
Diffstat (limited to 'gdb/opencl-lang.c')
-rw-r--r-- | gdb/opencl-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c index 169ee6b..26a8472 100644 --- a/gdb/opencl-lang.c +++ b/gdb/opencl-lang.c @@ -1172,7 +1172,7 @@ build_opencl_types (struct gdbarch *gdbarch) = arch_float_type (gdbarch, 64, "double", floatformats_ieee_double); BUILD_OCL_VTYPES (double); builtin_opencl_type->builtin_bool - = arch_boolean_type (gdbarch, 32, 1, "bool"); + = arch_boolean_type (gdbarch, 8, 1, "bool"); builtin_opencl_type->builtin_unsigned_char = arch_integer_type (gdbarch, 8, 1, "unsigned char"); builtin_opencl_type->builtin_unsigned_short |