From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 92AF0385841A; Tue, 30 Aug 2022 18:04:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 92AF0385841A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661882660; bh=7XCeBBrAfWLep2R9DcDMgiDv/rf6Bi37zUmJedBqqeM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bjfbbjDS/FZa1qivB6GPWBjTS5WZ5Xie04+eGTih/+Fxs/q93uO880jbay5kyhHsl 74GSjUAZN6oN4L1Wf+QdpTQmuzszL4/UBRibS25eW1gPuhUwI+xuJA97dOwIMCNNWL wpOpMdK2aNQTABhtrGWZ62yKXZOU/p4QCeJI8jdg= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/106779] GCC 12.2 fails to compile in libiberty - uknown symbol PTR - requires later patch Date: Tue, 30 Aug 2022 18:04:20 +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: 12.2.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106779 --- Comment #5 from Jakub Jelinek --- include/ansidecl.h has: #if defined (__STDC__) || defined(__cplusplus) || defined (_AIX) || (defined (__mips) && defined (_SYSTYPE_SVR4)) || defined(_WIN32) ... #define PTR void * ... #else /* Not ANSI C. */ #define PTR char * ... #endif So, can you rerun the above command line with -E -dD instead of -c and -o objalloc.i instead of -o objalloc.o ?=