From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 88F4E385DC0F; Tue, 14 Apr 2020 19:41:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88F4E385DC0F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1586893279; bh=IWDmd8tdRVUQdHHwDYBHAQR8+tSpPDwvC74NtwJdj9U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=FqDga2lhG56MqrGnE1QF61Nu7iSmG7z6hohwDz8hnVDOMxkuxFL2AjcVeKFt7Nx8e OGKk6jHe2IqwU+uCJ1X+JhdPCk4AkLwYq91JlcmXMcGwXGG7f1PR7fdWwZHSq47Bcw Am/a5PTcvTRdAfBjIUOdQnrIZX9/+zIFXFS4XcNQ= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94542] test gcc/testsuite/gcc.dg/tls/pr24428-2.c generates incorrect code on ppc64le with -mpcrel -mcpu=future -O2 Date: Tue, 14 Apr 2020 19:41:19 +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: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: acsawdey 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, 14 Apr 2020 19:41:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94542 --- Comment #1 from CVS Commits --- The master branch has been updated by Aaron Sawdey : https://gcc.gnu.org/g:aba6453890ce1754b7d1c01a67612766690ff15e commit r10-7722-gaba6453890ce1754b7d1c01a67612766690ff15e Author: Aaron Sawdey Date: Tue Apr 14 14:38:47 2020 -0500 Fix for PR/94542, do not make TLS refs PC-relative For rs6000 target, it is not valid to make PC-relative references to TLS symbols. So addr_to_insn_form() needs to check if things are TLS before returning PC-rel forms. 2020-04-14 Aaron Sawdey PR target/94542 * config/rs6000/rs6000.c (address_to_insn_form): Do not attempt= to use PC-relative addressing for TLS references.=