From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5594F3857006; Thu, 11 May 2023 21:52:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5594F3857006 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683841974; bh=SmQBxkwvJSIb4M88fTYvr4a7JJIBtN0cV5mM+opIJQM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=x2z7n0vK+qA9CzaeIo+jc1rL6QXvGHu3p+Jb4Z4AxJQgYm7OVxCxOdwSV9pDZvCnh nvLEilovqj0J6DSa3ODVWBOlKyYdA01PlrDJrqsVISgeYVLM9VWj4+qaMb/piZB7V6 VWAir0a+7M6oT0g+Yd3GuzeoLg3FtRkgUOWklJ8s= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109819] [OpenMP][OpenACC] -fno-lto effectively disables offloading Date: Thu, 11 May 2023 21:52:54 +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: 13.0 X-Bugzilla-Keywords: openacc, openmp 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D109819 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Well, we have to ensure that with -fno-lto linking, even if some or all compilation units were compiled with -flto we don't actually use the (non-offloading) LTO sections for the linking. All we want is if there are any offloading LTO sections to use them regardl= ess of whether -flto was used or not (and let mkoffload decide whether to actua= lly compile it and for which offloading targets).=