From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D396B395BC05; Sun, 20 Nov 2022 13:53:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D396B395BC05 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668952417; bh=kQB1aaIWIeSbPMp+0N0RzXyORQ3TLMfwan9cE4e2Sg4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=A3scT8K6DtkVDV6lRtJE1Z1zD4tRmz3ccorrf6Ui99jHeuopoBbud2cmC3iq1s8KH qPSwyFOTjZHkABQGJoRbSo9a5HmqlAIXxwzYULwLOn2zIX4gl+XxtqT9UvKmMH2WiY iZhwBgjQkXHama3WrdWBEhTdIcA0Gd/HuuRj6QBM= From: "cvs-commit at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/29798] symtab.c doesn't compile with 32-bit GCC 12 Date: Sun, 20 Nov 2022 13:53:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 13.1 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29798 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Rainer Orth : https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3Df1a8d786c37b= be40d0bc2fec618d0e875d043811 commit f1a8d786c37bbe40d0bc2fec618d0e875d043811 Author: Rainer Orth Date: Sun Nov 20 14:52:09 2022 +0100 Fix sol-thread.c compilation on 32-bit Solaris sol-thread.c fails to compile on 32-bit Solaris: there are several instances of In file included from /vol/src/gnu/gdb/hg/master/local/gdb/../gdbsupport/common-defs.h:203, from /vol/src/gnu/gdb/hg/master/local/gdb/defs.h:28, from /vol/src/gnu/gdb/hg/master/local/gdb/sol-thread.c= :51: /vol/src/gnu/gdb/hg/master/local/gdb/sol-thread.c: In member function =C3=A2virtual void sol_thread_target::resume(ptid_t, int, gdb_signal)=C3=A2: /vol/src/gnu/gdb/hg/master/local/gdb/sol-thread.c:416:20: error: format =C3=A2%ld=C3=A2 expects argument of type =C3=A2long int=C3=A2, but argument= 2 has type =C3=A2ULONGEST=C3=A2 {aka =C3=A2long long unsigned int=C3=A2} [-Werror=3Dfo= rmat=3D] 416 | warning (_("Specified thread %ld seems to have terminated"), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~ /vol/src/gnu/gdb/hg/master/local/gdb/../gdbsupport/gdb_locale.h:28:29: note: in definition of macro =C3=A2_=C3=A2 28 | # define _(String) gettext (String) | ^~~~~~ /vol/src/gnu/gdb/hg/master/local/gdb/sol-thread.c:416:40: note: format string is defined here 416 | warning (_("Specified thread %ld seems to have terminated"), | ~~^ | | | long int | %lld Fixed by using pulongest () instead. Tested on i386-pc-solaris2.11, amd64-pc-solaris2.11, sparc-sun-solaris2.11, and sparcv9-sun-solaris2.11 (together with Simon's patch for PR build/29798). --=20 You are receiving this mail because: You are on the CC list for the bug.=