From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 2BC8D3951C6D; Wed, 22 Apr 2020 16:10:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2BC8D3951C6D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587571802; bh=fzAKbolsLJVyrUwne4AsPORkUkxhr9dv274tTa1VIfE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=RhF7z2zuwG7SqLQ15V/5JH6mpfQnWwdWlTsMPzZ4wdt2ewX5yzrwFAMFe/hoUcl+e xcYeGmpfjjEFap+q1tXWKskfshOZz6tUgiEa9aiAceGEUBFLU+basdTriHFqBEwkkH 8Kzqrv+aEjf6aoOvPifbCX2+Gbs+ohl9EUeFGlOo= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/93053] [9 Regression] libgcc build failure with old binutils on aarch64 Date: Wed, 22 Apr 2020 16:10:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 9.4 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: Wed, 22 Apr 2020 16:10:02 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D93053 --- Comment #16 from CVS Commits --- The releases/gcc-8 branch has been updated by Andre Simoes Dias Vieira : https://gcc.gnu.org/g:a69a60c4969cea06c1d44b5e3e4970595041e510 commit r8-10213-ga69a60c4969cea06c1d44b5e3e4970595041e510 Author: Andre Vieira Date: Thu Apr 16 10:16:18 2020 +0100 aarch64: Fix bootstrap with old binutils [PR93053] As reported in the PR, GCC 10 (and also 9.3.1 but not 9.3.0) fails to b= uild when using older binutils which lack LSE support, because those instructions are used in libgcc. Thanks to Kyrylo's hint, the following patches (hopefully) allow it to build even with older binutils by using .inst directive if LSE support isn't available in the assembler. 2020-04-16 Andre Vieira Backport from mainline 2020-04-15 Jakub Jelinek PR target/93053 * configure.ac (LIBGCC_CHECK_AS_LSE): Add HAVE_AS_LSE checking. * config/aarch64/lse.S: Include auto-target.h, if HAVE_AS_LSE is not defined, use just .arch armv8-a. (B, M, N, OPN): Define. (COMMENT): New .macro. (CAS, CASP, SWP, LDOP): Use .inst directive if HAVE_AS_LSE is n= ot defined. Otherwise, move the operands right after the glue? and comment out operands where the macros are used. * configure: Regenerated. * config.in: Regenerated.=