public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100643] [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 since r11-7693-g1c7bec8bfbc5457c Date: Mon, 17 Jan 2022 14:46:15 +0000 [thread overview] Message-ID: <bug-100643-4-DOlNn2DtVl@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100643-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643 --- Comment #6 from Richard Biener <rguenth at gcc dot gnu.org> --- The C frontend accepts it when you make the outer function 'int foo(void)'. When you make the testcase int foo(void) __attribute__((target("avx"))); int foo(void) __attribute__((target("default"))); int foo(void) { return 124; } then the C++ frontend rejects it as t.c:3:5: error: missing 'target' attribute for multi-versioned 'int foo()' 3 | int foo(void) | ^~~ t.c:2:5: note: previous declaration of 'int foo()' 2 | int foo(void) __attribute__((target("default"))); | ^~~ when you make it int foo(void) { return 124; } int foo(void) __attribute__((target("avx"))); int foo(void) __attribute__((target("default"))); it is accepted.
next prev parent reply other threads:[~2022-01-17 14:46 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-05-17 19:21 [Bug c++/100643] New: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 gscfq@t-online.de 2021-05-18 6:21 ` [Bug target/100643] " rguenth at gcc dot gnu.org 2021-05-18 8:09 ` [Bug target/100643] [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 since r11-7693-g1c7bec8bfbc5457c marxin at gcc dot gnu.org 2021-06-01 13:53 ` marxin at gcc dot gnu.org 2021-07-28 7:07 ` rguenth at gcc dot gnu.org 2021-08-13 10:15 ` marxin at gcc dot gnu.org 2021-11-05 14:42 ` marxin at gcc dot gnu.org 2022-01-17 14:46 ` rguenth at gcc dot gnu.org [this message] 2022-04-21 7:49 ` rguenth at gcc dot gnu.org 2023-05-29 10:05 ` [Bug target/100643] [11/12/13/14 " jakub at gcc dot gnu.org 2024-03-11 5:17 ` pinskia at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-100643-4-DOlNn2DtVl@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).