public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101261] New: clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition
@ 2021-06-29 17:02 johnnybit at gmail dot com
  2021-06-29 17:13 ` [Bug middle-end/101261] " pinskia at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: johnnybit at gmail dot com @ 2021-06-29 17:02 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101261

            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 
`-march=native -O3 -fno-semantic-interposition -flto=3 -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 «target_clones» attribute
cannot be created
 1015 | void dt_ioppr_transform_image_colorspace(struct dt_iop_module_t *self,
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 file
project compiles and runs ok)

for details please check https://github.com/darktable-org/darktable/issues/9303

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-08-16 11:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-29 17:02 [Bug c/101261] New: clones for target_clones attribute cannot be created when compilling with -fno-semantic-interposition johnnybit at gmail dot com
2021-06-29 17:13 ` [Bug middle-end/101261] " pinskia at gcc dot gnu.org
2021-06-30  4:38 ` marxin at gcc dot gnu.org
2021-08-13  8:24 ` marxin at gcc dot gnu.org
2021-08-13  8:36 ` marxin at gcc dot gnu.org
2021-08-13  9:01 ` marxin at gcc dot gnu.org
2021-08-13 13:44 ` [Bug ipa/101261] " cvs-commit at gcc dot gnu.org
2021-08-13 13:45 ` marxin at gcc dot gnu.org
2021-08-16 11:14 ` cvs-commit at gcc dot gnu.org
2021-08-16 11:16 ` marxin at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).