From 648cd113ef17e879ef867c1d37567d0c0138dd47 Mon Sep 17 00:00:00 2001 From: Ken Werner Date: Tue, 15 Feb 2011 20:10:13 +0000 Subject: gdb/ChangeLog 2011-02-15 Ken Werner * 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 * gdb.opencl/datatypes.exp: Expect the size of a bool to be one byte. --- gdb/opencl-lang.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/opencl-lang.c') 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 -- cgit v1.1