From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 21DDF3857C59; Fri, 14 Aug 2020 12:38:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 21DDF3857C59 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1597408699; bh=8FHHSGp5+S/BJw49/bYCAyBi0tzPnVLGEX5r71LVM/M=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Dlx0rPK+zbXi6pMSIM3VMAF3xIaL2Hkqn6ZgGCxzKQJTmz92EcwwIqqoxoXx1Pvg1 +bHa3m5JPwgPPiVs94nssX9FwUMerrEqnTajHwHgJ1wZ7otPWxX62cYFPr1V21TqmB dqvtTvj4KVguGB60eA3dweeduqOQry2779+WPZ8U= From: "ro at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/96607] GCC feeds SPARC/Solaris linker with unrecognized TLS sequences Date: Fri, 14 Aug 2020 12:38: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.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ro 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: cc 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: Fri, 14 Aug 2020 12:38:19 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D96607 Rainer Orth changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ebotcazou at gcc dot gnu.o= rg, | |ro at gcc dot gnu.org --- Comment #1 from Rainer Orth --- To add some background: I've been experiencing ca. 250 test failures in the LLVM testsuite when building for sparcv9-sun-solaris2.11. As a workaround, I've posted [cmake] Don't build with -O3 -fPIC on Solaris/sparcv9 https://reviews.llvm.org/D85630 based on the observation that the SEGVs vanish if LLVM is compiled with -O -fPIC only instead of the default -O3 -fPIC. I've been using the following slightly reduced example (attached): * tqt.cpp is reduced from LLVM's llvm/unittests/Support/TaskQueueTest.cpp. * ThreadPool.cpp is LLVM 10.0.0 llvm/lib/Support/ThreadPool.cpp. They can be compiled and linked with the included tqt.sh; however that reli= es on LLVM 10 bundled with Solaris 11.4 for LLVM headers, libLLVMSupport and libLLVMDemangle. I haven't tried to produce a further reduced example yet.=