public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/107727] New: error: multiversioning needs 'ifunc' which is not supported on this target (x86_64-w64-mingw32 target)
@ 2022-11-16 21:19 unlvsur at live dot com
  2022-11-16 21:20 ` [Bug target/107727] " unlvsur at live dot com
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: unlvsur at live dot com @ 2022-11-16 21:19 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107727
           Summary: error: multiversioning needs 'ifunc' which is not
                    supported on this target (x86_64-w64-mingw32 target)
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: unlvsur at live dot com
  Target Milestone: ---

#include<cstdio>

[[__gnu__::__target__("avx2")]]
inline void foo()
{
        puts("avx2\n");
}

[[__gnu__::__target__("default")]]
inline void foo()
{
        puts("default\n");
}

int main()
{
        foo();
}

$ clang++ -o a a.cc --target=x86_64-windows-gnu -s -flto=thin -fuse-ld=lld
$ wine a.exe
avx2


$ x86_64-w64-mingw32-g++ -o a a.cc -s -flto
a.cc: In function 'int main()':
a.cc:10:13: error: multiversioning needs 'ifunc' which is not supported on this
target
   10 | inline void foo()
      |             ^~~
a.cc:18:1: error: use of multiversioned function without a default
   18 | }
      | ^

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

end of thread, other threads:[~2022-11-16 21:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-16 21:19 [Bug target/107727] New: error: multiversioning needs 'ifunc' which is not supported on this target (x86_64-w64-mingw32 target) unlvsur at live dot com
2022-11-16 21:20 ` [Bug target/107727] " unlvsur at live dot com
2022-11-16 21:29 ` unlvsur at live dot com
2022-11-16 21:50 ` pinskia at gcc dot gnu.org
2022-11-16 21:50 ` [Bug middle-end/107727] " pinskia at gcc dot gnu.org
2022-11-16 21:51 ` pinskia 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).