public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/97163] Build error with -mcpu=power9 on ppc64 Date: Mon, 05 Oct 2020 08:24:50 +0000 [thread overview] Message-ID: <bug-97163-4-VbqDhTEoon@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-97163-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97163 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-10 branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>: https://gcc.gnu.org/g:cd547f0ddcd3a54e5b73bcda5ac0f0c46808db8b commit r10-8851-gcd547f0ddcd3a54e5b73bcda5ac0f0c46808db8b Author: Jakub Jelinek <jakub@redhat.com> Date: Sat Sep 26 10:07:41 2020 +0200 powerpc, libcpp: Fix gcc build with clang on power8 [PR97163] libcpp has two specialized altivec implementations of search_line_fast, one for power8+ and the other one otherwise. Both use __attribute__((altivec(vector))) and the GCC builtins rather than altivec.h and the APIs from there, which is fine, but should be restricted to when libcpp is built with GCC, so that it can be relied on. The second elif is and thus e.g. when built with clang it isn't picked, but the first one was just guarded with and so according to the bugreporter clang fails miserably on that. The following patch fixes that by adding the same GCC_VERSION requirement as the second version. I don't know where the 4.5 in there comes from and the exact version doesn't matter that much, as long as it is above 4.2 that clang pretends to be and smaller or equal to 4.8 as the oldest gcc we support as bootstrap compiler ATM. Furthermore, the patch fixes the comment, the version it is talking about is not pre-GCC 5, but actually the GCC 5+ one. 2020-09-26 Jakub Jelinek <jakub@redhat.com> PR bootstrap/97163 * lex.c (search_line_fast): Only use _ARCH_PWR8 Altivec version for GCC >= 4.5. (cherry picked from commit d00b1b023ecfc3ddc3fe952c0063dab7529d5f7a)
next prev parent reply other threads:[~2020-10-05 8:24 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2020-09-22 11:44 [Bug libstdc++/97163] New: " pkubaj at anongoth dot pl 2020-09-22 11:45 ` [Bug libstdc++/97163] " pkubaj at anongoth dot pl 2020-09-22 13:17 ` [Bug bootstrap/97163] " jakub at gcc dot gnu.org 2020-09-22 16:48 ` segher at gcc dot gnu.org 2020-09-22 16:54 ` jakub at gcc dot gnu.org 2020-09-22 21:32 ` segher at gcc dot gnu.org 2020-09-22 21:40 ` jakub at gcc dot gnu.org 2020-09-22 23:09 ` segher at gcc dot gnu.org 2020-09-26 8:09 ` cvs-commit at gcc dot gnu.org 2020-10-05 8:24 ` cvs-commit at gcc dot gnu.org [this message] 2021-04-16 12:37 ` pkubaj at anongoth dot pl 2021-04-20 23:29 ` cvs-commit at gcc dot gnu.org 2021-04-22 16:48 ` cvs-commit at gcc dot gnu.org 2021-04-22 17:06 ` jakub at gcc dot gnu.org 2021-09-11 14:29 ` pinskia 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-97163-4-VbqDhTEoon@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).