From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D9343858CDA; Thu, 30 Mar 2023 20:00:57 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D9343858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1680206457; bh=+NXfYL8Xawihym582aRKSEUIR+AoscdJrIridlr7ICk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GHzFzMGRJs/+PBmWivUWjckFJjvK4tl/8yjcqNnn08ZJtDqVFF0KMN9G+KTDkTpQI DSmIAp7mqKH0mcCu/zrinLUv++Zz8X5TN0lFdTgqc1uBTVYdZM1wla3Q5HFmcZPQKo JX2Wi58kAh5lNfLYIzrbPOJCP2AIXgzi+Dar77BY= From: "burnus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109128] [Offload][OpenMP][OpenACC] Static linking with unused offload function will lead to mismatch number of offload fn/symbols Date: Thu, 30 Mar 2023 20:00:57 +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, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: burnus at gcc dot gnu.org X-Bugzilla-Status: NEW 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=3D109128 --- Comment #5 from Tobias Burnus --- New idea for the lto-plugin.c: Currently, as soon as a file pops up (as seemingly here for the common bloc= k in libone.a), the file is claimed via claim_file_handler, which collects the f= ile names. Later, in all_symbols_read_handler it is output. I wonder whether some check using get_symbols is needed to check whether there is any symbol used for t= hat file.=