public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/30423] New: Build failures with clang 16
@ 2023-05-05 14:28 simon.marchi at polymtl dot ca
  2023-05-05 15:05 ` [Bug gdb/30423] " tromey at sourceware dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: simon.marchi at polymtl dot ca @ 2023-05-05 14:28 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30423

            Bug ID: 30423
           Summary: Build failures with clang 16
           Product: gdb
           Version: 13.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at polymtl dot ca
  Target Milestone: ---

Building GDB 13.1 with clang 16, I get these warnings:

  CXX    gdb.o
In file included from /home/smarchi/src/binutils-gdb/gdb/gdb.c:19:
In file included from /home/smarchi/src/binutils-gdb/gdb/defs.h:66:
/home/smarchi/src/binutils-gdb/gdb/../gdbsupport/enum-flags.h:95:52: error:
integer value -1 is outside the valid range of values [0, 15] for this
enumeration type [-Wenum-constexpr-conversion]
    integer_for_size<sizeof (T), static_cast<bool>(T (-1) < T (0))>::type
                                                   ^
This breaks the build, since clang makes -Wenum-constexpr-conversion an error
by default (without -Werror).

Then, we have a few of these warnings:

  CXX    z80-tdep.o
/home/smarchi/src/binutils-gdb/gdb/z80-tdep.c:338:32: warning: implicit
truncation from 'int' to a one-bit wide bit-field changes value from 1 to -1
[-Wsingle-bit-bitfield-constant-conversion]
        info->prologue_type.load_args = 1;
                                      ^ ~

We have patches for these issues in master:

https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ae61525fcf456ab395d55c45492a106d1275873a
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=07f285934886016ddd82cac99a3873e68b499d5c

We can consider cherry-picking them in gdb-13-branch.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-05 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-05 14:28 [Bug gdb/30423] New: Build failures with clang 16 simon.marchi at polymtl dot ca
2023-05-05 15:05 ` [Bug gdb/30423] " tromey at sourceware dot org
2023-05-05 19:27 ` cvs-commit at gcc dot gnu.org
2023-05-05 19:27 ` cvs-commit at gcc dot gnu.org
2023-05-05 19:33 ` simon.marchi at polymtl dot ca

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).