From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA608388F041; Fri, 5 Jun 2020 14:33:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA608388F041 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1591367629; bh=NaJ6zaGt+b/HpZK5ZxSFQoyUdCXykMK1D97TTozgpBU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wGupDHEcPqofYNXIZ+G90W2Hf68lYjOrA+c+4uNeyW0ObdhH8ciAc9njpw1gXFtCP OddjRWowXAhAvR0KaMclCUwpTsZl0Z3QtSC/FpxSklItwY0k/UdcfoKR0L9TpF7/0v RnFVh4L0oWLZtf2Q2vNsg8cZBviiHnseUwhckTKA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/95551] [OpenMP, OpenACC] -fopenmp/-fopenacc also with -foffload=disable fails with: (.gnu.offload_vars+0x0): undefined reference to `A.10.2' Date: Fri, 05 Jun 2020 14:33:49 +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: 10.0 X-Bugzilla-Keywords: openacc, openmp, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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, 05 Jun 2020 14:33:49 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95551 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #3 from Jakub Jelinek --- Before IPA, we should be able to optimize away variables even if they are marked declare target to, as long as we optimize them away completely (i.e. neither the offloaded code nor host code will refer to them in any way), wh= ich suggests that perhaps we should be populating the variable and function tab= les for offloading later than we do now (basically immediately before IPA), but also once we enter something into the tables, we should mark those as being used such that e.g. IPA passes or anything later will not really optimize t= hem away.=