https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125935

            Bug ID: 125935
           Summary: [debug] bool type supported in C23, but debug info
                    says _Bool
           Product: gcc
           Version: 16.1.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: debug
          Assignee: unassigned at gcc dot gnu.org
          Reporter: vries at gcc dot gnu.org
  Target Milestone: ---

[ originally filed as GDB PR:
https://sourceware.org/bugzilla/show_bug.cgi?id=34308 ]

The bool type is supported in C23, but debug info still says _Bool.
...
$ cat test.c
bool b;
$ gcc -std=c23 test.c -c -g
$ readelf -wi test.o | grep -i bool
    <39>   DW_AT_encoding    : 2        (boolean)
    <3a>   DW_AT_name        : (indirect string, offset: 0x52): _Bool
...

Clang does use bool:
...
$ clang -std=c23 test.c -c -g
$ readelf -wi test.o | grep -i bool
    <2a>   DW_AT_name        : (indexed string: 0x4): bool
    <2b>   DW_AT_encoding    : 2        (boolean)
...

Reply via email to