From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8939F385BF85; Tue, 29 Jun 2021 17:02:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8939F385BF85 From: "johnnybit at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/101261] New: clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition Date: Tue, 29 Jun 2021 17:02:50 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: johnnybit at gmail dot com 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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: Tue, 29 Jun 2021 17:02:50 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D101261 Bug ID: 101261 Summary: clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: johnnybit at gmail dot com Target Milestone: --- darktable's user reported problem building darktable with "optimized" flags= and I could confirm the error is present on GCC 10.3.0 When compilling whole darktable with CFLAGS set to=20 `-march=3Dnative -O3 -fno-semantic-interposition -flto=3D3 -fno-plt -fgraphite-identity -floop-nest-optimize -fuse-linker-plugin -pipe -Wl,-O1 -Wl,--as-needed` the compiler errors with: src/common/iop_profile.c:1015:6: error: clones for =C2=ABtarget_clones=C2= =BB attribute cannot be created 1015 | void dt_ioppr_transform_image_colorspace(struct dt_iop_module_t *se= lf, const float *const image_in, | ^ I've managed to narrow it down and it was enough to just set the -fno-semantic-interposition flag to make darktable compillation error out on the same point. I haven't been able to create minimum reproducer for this problem (single f= ile project compiles and runs ok) for details please check https://github.com/darktable-org/darktable/issues/= 9303=