From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3C027389367D; Thu, 30 Apr 2020 07:47:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C027389367D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1588232836; bh=g8pKRjtzNhYIXgd1wZ2dZXRFFDByTmmpfhCwuGX66/Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WPoP0sZylZsZIKidUYdyo7o7agO8EvDMyxTaZHfCJzJ0RFQWtpDJT/b8X2vzSUdqp q3ixYL2VWnU6EPyY+GyzmKpKYWI2yBmcHt8U81od0Pql9MQpSj8bahbEhWS5fyqHvl ix6cgzA2S1Gjjhbe9+mHfyhX2p2m2tejNY1kdEUY= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/94848] [Offloading][LTO] error due to only partially eliminated var / -ftree-pre causes link errors | libgomp.fortran/use_device_ptr-optional-3.f90 failures Date: Thu, 30 Apr 2020 07:47:16 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus 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: Thu, 30 Apr 2020 07:47:16 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94848 --- Comment #2 from Tobias Burnus --- Also possibly related (static local device variable) are the fixed PRs, which might give a hint how to solve it (although, those look more like a b= and aid): * PR85063 =E2=80=93 local variable for switch statement; solution: "Mark CSWTCH.x variable with attribute omp declare target for offloading functions." * PR84592 =E2=86=92 see previous PR above =E2=86=92 PR 90779 - comment 10 has: "Add "omp declare target" attributes to static block scope variables inside of target region or target functions."=