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.
This commit is contained in:
parent
d58a192976
commit
648cd113ef
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
||||
2011-02-15 Pedro Alves <pedro@codesourcery.com>
|
||||
Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
|
@ -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
|
||||
|
@ -1,3 +1,7 @@
|
||||
2011-02-15 Ken Werner <ken.werner@de.ibm.com>
|
||||
|
||||
* gdb.opencl/datatypes.exp: Expect the size of a bool to be one byte.
|
||||
|
||||
2011-02-15 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
PR tdep/12352
|
||||
|
@ -44,7 +44,7 @@ gdb_test_no_output "set language opencl" "No prompt when setting the language to
|
||||
|
||||
# Check OpenCL data types (GDB)
|
||||
gdb_test "whatis bool" "type = bool"
|
||||
gdb_test "p sizeof(bool)" " = 4"
|
||||
gdb_test "p sizeof(bool)" " = 1"
|
||||
|
||||
gdb_test "whatis char" "type = char"
|
||||
gdb_test "p sizeof(char)" " = 1"
|
||||
@ -229,7 +229,7 @@ set have_cl_khr_fp16 [get_integer_valueof "have_cl_khr_fp16" 0]
|
||||
|
||||
# Check OpenCL data types (DWARF)
|
||||
gdb_test "whatis b" "type = bool"
|
||||
gdb_test "p sizeof(b)" " = 4"
|
||||
gdb_test "p sizeof(b)" " = 1"
|
||||
gdb_test "print b" " = 0"
|
||||
|
||||
gdb_test "whatis c" "type = char"
|
||||
|
Loading…
Reference in New Issue
Block a user