public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "bero at lindev dot ch" <gcc-bugzilla@gcc.gnu.org> 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 [thread overview] Message-ID: <bug-105009-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105009 Bug ID: 105009 Summary: [12 Regression] Fails to build with --target=xtensa-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=xtensa-esp32-elf fails because tree_to_poly_int64, tree_to_poly_uint64, tree_to_shwi and tree_to_uhwi 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.
next reply other threads:[~2022-03-22 2:12 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-03-22 2:12 bero at lindev dot ch [this message] 2022-03-22 8:44 ` [Bug middle-end/105009] " rguenth at gcc dot gnu.org 2022-03-22 17:05 ` jakub at gcc dot gnu.org 2022-03-23 8:12 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-105009-4@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).