From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D2D3388C020; Tue, 22 Sep 2020 16:48:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D2D3388C020 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1600793285; bh=Es576vAB5nF3EqWIAxONpioGhATAeiKXdS1FJ8pltms=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Q8isdFvuexeU9L1efWuSfRMqw/a7lQ5wrWbYOdAkJD+IKGhH8WBXgArcZ3xmLy1hD oUajVfdY0OEKsmR8xR5aO3nJXG1gYMbH2TxH0YfUnEZmd6o+TH8/nZvcv4QY/laBdd XOGg96868JDNEhrNhpoV0kWxKmJ/PkCTwxd8cGgg= From: "segher at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/97163] Build error with -mcpu=power9 on ppc64 Date: Tue, 22 Sep 2020 16:48:05 +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: 10.2.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: segher 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 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 Sep 2020 16:48:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97163 --- Comment #3 from Segher Boessenkool --- (In reply to Jakub Jelinek from comment #2) > Guess we need something like: > -#elif defined(_ARCH_PWR8) && defined(__ALTIVEC__) > +#elif (GCC_VERSION >=3D 4005) && defined(_ARCH_PWR8) && defined(__ALTIVE= C__) > in libcpp/lex.c if clang doesn't support the altivec attribute and the > builtins. But it should! What is actually going wrong here? The compiler should not declare it supports what is tested for by __ALTIVEC__ if it doesn't.=