From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A6C523851C01; Tue, 26 Jan 2021 15:38:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6C523851C01 From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/98839] [11 regression] compilation failure for dwarf2asm.c Date: Tue, 26 Jan 2021 15:38:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Jan 2021 15:38:36 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98839 --- Comment #2 from Jakub Jelinek --- That is because most targets define POINTER_SIZE as (condition ? 64 : 32) or constant while rs6000 as a variable holding it, therefore whether it chooses unsigned or signed type for it then matters in these cases. Does: 2021-01-26 Jakub Jelinek PR bootstrap/98839 * dwarf2asm.c (dw2_assemble_integer): Cast DWARF2_ADDR_SIZE to int in comparison. --- gcc/dwarf2asm.c.jj 2021-01-26 09:20:19.242499512 +0100 +++ gcc/dwarf2asm.c 2021-01-26 16:33:20.320710684 +0100 @@ -46,7 +46,7 @@ along with GCC; see the file COPYING3. void dw2_assemble_integer (int size, rtx x) { - if (size =3D=3D 2 * DWARF2_ADDR_SIZE && !CONST_SCALAR_INT_P (x)) + if (size =3D=3D 2 * (int) DWARF2_ADDR_SIZE && !CONST_SCALAR_INT_P (x)) { /* On 32-bit targets with -gdwarf64, DImode values with relocations usually result in assembler errors. Assume fix this?=