From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AF8813858295; Tue, 30 Jan 2024 13:57:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF8813858295 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1706623036; bh=XCrd0UZWU45zWZXYeyQlzImsMfcBlAa9O4PalBRXiOU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=REzTdOn/5VkGEUjoGgSdFwyb6XRLM7UooRd0LP7pKxyTp54wAl8QOK0nmOVl/QT7T las4P+RjkemcyUECaN2rdo5O9Tp4Ey4yJlQoIRwOVWdSUfaol+6Ry7+TO1ZNZyJuXz O2f9Sv9LnMag7NDSQQl7sjCBvM+Dgnm/o3JQiB+4= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug preprocessor/105608] [11/12/13/14 Regression] ICE: in linemap_add with a really long defined macro on the command line r11-338-g2a0225e47868fbfc Date: Tue, 30 Jan 2024 13:57:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: preprocessor X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: patch X-Bugzilla-Severity: normal X-Bugzilla-Who: ro at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105608 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ro at gcc dot gnu.org --- Comment #10 from Rainer Orth --- Something very weird is going on here: the new g++.dg/pch/line-map-3.C test FAILs on i386-pc-solaris2.11 only: XPASS: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH (test for bogus message= s, line 2) +XPASS: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH at line 17 (test for b= ogus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -O2 -I. -Dwith_PCH (test for excess errors) +XPASS: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH (test for bogus messages, line 2) +XPASS: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH at line 17 (test for bogus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -O2 -g -I. -Dwith_PCH (test for excess erro= rs) +XPASS: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH (test for bogus message= s, line 2) +XPASS: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH at line 17 (test for bo= gus messages, line 2) +FAIL: g++.dg/pch/line-map-3.C -g -I. -Dwith_PCH (test for excess errors) both 32 and 64-bit. The excess error is Excess errors: /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/pch/line-map-3.C:3:9: err= or: macro "UNUSED_MACRO" is not used [-Werror=3Dunused-macros] /vol/gcc/src/hg/master/local/gcc/testsuite/g++.dg/pch/line-map-3.C:3:9: err= or: macro "with_PCH" is not used [-Werror=3Dunused-macros] When checking sparc-sun-solaris2.11 for comparison, the output is different: ./line-map-3.H:2: error: macro "UNUSED_MACRO" is not used [-Werror=3Dunused-macros] ./line-map-3.H:2: error: macro "with_PCH" is not used [-Werror=3Dunused-mac= ros] This is totally strange since the setup of both systems is identical; they'= re even building from a shared source tree.=