summaryrefslogtreecommitdiff
path: root/gdb/opencl-lang.c
diff options
context:
space:
mode:
authorkwerner <kwerner>2011-02-15 20:09:46 +0000
committerkwerner <kwerner>2011-02-15 20:09:46 +0000
commit1b368083ab2b61258ca543e94ba716130bea0b52 (patch)
treee7a8850f5da120ad9b67c0b6d9a7d6fcf093946a /gdb/opencl-lang.c
parent856b65754435b90c9b1bcec7db9d574eba045aad (diff)
downloadgdb-1b368083ab2b61258ca543e94ba716130bea0b52.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/opencl-lang.c b/gdb/opencl-lang.c
index 169ee6bfa7c..26a84721b66 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