public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "simon.marchi at polymtl dot ca" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/30423] New: Build failures with clang 16
Date: Fri, 05 May 2023 14:28:12 +0000	[thread overview]
Message-ID: <bug-30423-4717@http.sourceware.org/bugzilla/> (raw)

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.

             reply	other threads:[~2023-05-05 14:28 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-05 14:28 simon.marchi at polymtl dot ca [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-30423-4717@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).