From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BB71D3858D1E; Fri, 2 Sep 2022 22:37:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BB71D3858D1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1662158255; bh=EUBTxQo5hNKOgCNFRxQzXE77YVdpJaJkK91kl2N1P6g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eEKPIjDOCLmwGcwivaw1c+sxBpZEHN1NbgZbGcO9We4IrgovnPkGPFXBF2BqUNzym qDr6RtvbgEvj0tNUsZbdaTZH1d4H5EHeanocZVXPgdc2oCE5TGHUXBGGLo51/BFoCf JP8uQNwLIlJgqBB2v3yMhrgjyHDQ+3pBsMbIRDTc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106818] code is genereated differently with or without 'extern' Date: Fri, 02 Sep 2022 22:37:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106818 --- Comment #7 from Andrew Pinski --- (In reply to baoshan from comment #6) > > really of unknown alignment then sharing the lui might not work. > Can you elaborate why shareing the lui might not work? Linker relaxation not coming in and relaxing it to be use gp offsets instea= d. It is one of the worst parts of the riscv toolchain ...=