From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7AEDD3858C51; Tue, 22 Mar 2022 02:12:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AEDD3858C51 From: "bero at lindev dot ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/105009] New: [12 Regression] Fails to build with --target=xtensa-esp32-elf Date: Tue, 22 Mar 2022 02:12:58 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: bero at lindev dot ch 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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, 22 Mar 2022 02:12:58 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105009 Bug ID: 105009 Summary: [12 Regression] Fails to build with --target=3Dxtensa-esp32-elf Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: bero at lindev dot ch Target Milestone: --- Trying to build gcc 12 (snapshot 20220313) with --target=3Dxtensa-esp32-elf= fails because tree_to_poly_int64, tree_to_poly_uint64, tree_to_shwi and tree_to_u= hwi are implemented in both gcc/tree.h and gcc/tree.cc: ../../gcc/tree.cc:3222:1: error: redefinition of a 'extern inline' function 'tree_to_poly_int64' is not supported in C++ tree_to_poly_int64 (const_tree t) ^ ../../gcc/tree.h:4691:1: note: previous definition is here tree_to_poly_int64 (const_tree t) ^ ../../gcc/tree.cc:3231:1: error: redefinition of a 'extern inline' function 'tree_to_poly_uint64' is not supported in C++ tree_to_poly_uint64 (const_tree t) ^ ../../gcc/tree.h:4698:1: note: previous definition is here tree_to_poly_uint64 (const_tree t) ^ ../../gcc/tree.cc:6350:1: error: redefinition of a 'extern inline' function 'tree_to_shwi' is not supported in C++ tree_to_shwi (const_tree t) ^ ../../gcc/tree.h:4677:1: note: previous definition is here tree_to_shwi (const_tree t) ^ ../../gcc/tree.cc:6361:1: error: redefinition of a 'extern inline' function 'tree_to_uhwi' is not supported in C++ tree_to_uhwi (const_tree t) ^ ../../gcc/tree.h:4684:1: note: previous definition is here tree_to_uhwi (const_tree t) ^ Simply commenting out/removing the extra definitions in gcc/tree.h seems to= be sufficient to fix the problem.=