public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/100643] New: [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809
@ 2021-05-17 19:21 gscfq@t-online.de
2021-05-18 6:21 ` [Bug target/100643] " rguenth at gcc dot gnu.org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: gscfq@t-online.de @ 2021-05-17 19:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Bug ID: 100643
Summary: [11/12 Regression] ICE in
ix86_mangle_function_version_assembler_name, at
config/i386/i386-features.c:2809
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20210314 and 20210328 :
$ cat z1.cc
int foo()
{
int foo() __attribute__((target("avx")));
int foo() __attribute__((target("default")));
}
$ g++-12-20210516 -c z1.cc
z1.cc: In function 'int foo()':
z1.cc:3:10: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
3 | int foo() __attribute__((target("avx")));
| ^~
z1.cc:3:10: note: remove parentheses to default-initialize a variable
3 | int foo() __attribute__((target("avx")));
| ^~
| --
z1.cc:3:10: note: or replace parentheses with braces to value-initialize a
variable
z1.cc:4:10: warning: empty parentheses were disambiguated as a function
declaration [-Wvexing-parse]
4 | int foo() __attribute__((target("default")));
| ^~
z1.cc:4:10: note: remove parentheses to default-initialize a variable
4 | int foo() __attribute__((target("default")));
| ^~
| --
z1.cc:4:10: note: or replace parentheses with braces to value-initialize a
variable
z1.cc:5:1: warning: no return statement in function returning non-void
[-Wreturn-type]
5 | }
| ^
z1.cc: At global scope:
z1.cc:5:1: internal compiler error: in
ix86_mangle_function_version_assembler_name, at
config/i386/i386-features.c:2809
0x107d5bb ix86_mangle_function_version_assembler_name
../../gcc/config/i386/i386-features.c:2809
0x107d5bb ix86_mangle_decl_assembler_name(tree_node*, tree_node*)
../../gcc/config/i386/i386-features.c:2839
0x719887 get_mangled_id
../../gcc/cp/mangle.c:4041
0x719887 mangle_decl(tree_node*)
../../gcc/cp/mangle.c:4078
0xf57cc2 decl_assembler_name(tree_node*)
../../gcc/tree.c:708
0xf9a8be notice_global_symbol(tree_node*)
../../gcc/varasm.c:1801
0x91d505 cgraph_node::finalize_function(tree_node*, bool)
../../gcc/cgraphunit.c:453
0x7ed17f expand_or_defer_fn(tree_node*)
../../gcc/cp/semantics.c:4682
0x7a1c59 cp_parser_function_definition_after_declarator
../../gcc/cp/parser.c:30121
0x7a2afc cp_parser_function_definition_from_specifiers_and_declarator
../../gcc/cp/parser.c:30024
0x7a2afc cp_parser_init_declarator
../../gcc/cp/parser.c:21677
0x782f5a cp_parser_simple_declaration
../../gcc/cp/parser.c:14464
0x7a7395 cp_parser_declaration
../../gcc/cp/parser.c:14161
0x7a68cb cp_parser_translation_unit
../../gcc/cp/parser.c:4942
0x7a68cb c_parse_file()
../../gcc/cp/parser.c:45393
0x8753f2 c_common_parse_file()
../../gcc/c-family/c-opts.c:1218
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/100643] [11/12 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809
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 ` 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
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-18 6:21 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.2
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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 ` marxin at gcc dot gnu.org
2021-06-01 13:53 ` marxin at gcc dot gnu.org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-05-18 8:09 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[11/12 Regression] ICE in |[11/12 Regression] ICE in
|ix86_mangle_function_versio |ix86_mangle_function_versio
|n_assembler_name, at |n_assembler_name, at
|config/i386/i386-features.c |config/i386/i386-features.c
|:2809 |:2809 since
| |r11-7693-g1c7bec8bfbc5457c
CC| |marxin at gcc dot gnu.org
Assignee|unassigned at gcc dot gnu.org |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with my r11-7693-g1c7bec8bfbc5457c.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-01 13:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
Ever confirmed|0 |1
Last reconfirmed| |2021-06-01
CC| |jason at gcc dot gnu.org
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Slightly clean up test-case:
$ cat pr100643.c
int foo()
{
int foo(void) __attribute__((target("avx")));
int foo(void) __attribute__((target("default")));
return 123;
}
$ g++ pr100643.c -c
pr100643.c:7:1: internal compiler error: in
ix86_mangle_function_version_assembler_name, at
config/i386/i386-features.c:2809
7 | }
| ^
0x8b6dba ix86_mangle_function_version_assembler_name
/home/marxin/Programming/gcc/gcc/config/i386/i386-features.c:2809
0x8b6dba ix86_mangle_decl_assembler_name(tree_node*, tree_node*)
/home/marxin/Programming/gcc/gcc/config/i386/i386-features.c:2839
0xa671bf get_mangled_id
/home/marxin/Programming/gcc/gcc/cp/mangle.c:4041
0xa671bf mangle_decl(tree_node*)
/home/marxin/Programming/gcc/gcc/cp/mangle.c:4078
0x147028c decl_assembler_name(tree_node*)
/home/marxin/Programming/gcc/gcc/tree.c:711
0x14ca040 notice_global_symbol(tree_node*)
/home/marxin/Programming/gcc/gcc/varasm.c:1801
0xd18798 cgraph_node::finalize_function(tree_node*, bool)
/home/marxin/Programming/gcc/gcc/cgraphunit.c:453
0xb9241e expand_or_defer_fn(tree_node*)
/home/marxin/Programming/gcc/gcc/cp/semantics.c:4681
0xb0b138 cp_parser_function_definition_after_declarator
/home/marxin/Programming/gcc/gcc/cp/parser.c:30157
0xb0c59d cp_parser_function_definition_from_specifiers_and_declarator
/home/marxin/Programming/gcc/gcc/cp/parser.c:30060
0xb0c59d cp_parser_init_declarator
/home/marxin/Programming/gcc/gcc/cp/parser.c:21706
0xae711c cp_parser_simple_declaration
/home/marxin/Programming/gcc/gcc/cp/parser.c:14487
0xb15be4 cp_parser_declaration
/home/marxin/Programming/gcc/gcc/cp/parser.c:14184
0xb1675c cp_parser_toplevel_declaration
/home/marxin/Programming/gcc/gcc/cp/parser.c:14213
0xb1675c cp_parser_translation_unit
/home/marxin/Programming/gcc/gcc/cp/parser.c:4942
0xb1675c c_parse_file()
/home/marxin/Programming/gcc/gcc/cp/parser.c:45508
0xc4b2d9 c_common_parse_file()
/home/marxin/Programming/gcc/gcc/c-family/c-opts.c:1219
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Where we ICE because the top-level function definition has
DECL_FUNCTION_VERSIONED (decl) set, but it does not contain "target" attribute.
@Jason: Is it really a valid test-case?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (2 preceding siblings ...)
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
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-07-28 7:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.2 |11.3
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.2 is being released, retargeting bugs to GCC 11.3
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (3 preceding siblings ...)
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
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-13 10:15 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
--- Comment #4 from Martin Liška <marxin at gcc dot gnu.org> ---
@Jason: Can you please take a look?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (4 preceding siblings ...)
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
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-11-05 14:42 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|marxin at gcc dot gnu.org |unassigned at gcc dot gnu.org
--- Comment #5 from Martin Liška <marxin at gcc dot gnu.org> ---
@Jason: May I please ping this?
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (5 preceding siblings ...)
2021-11-05 14:42 ` marxin at gcc dot gnu.org
@ 2022-01-17 14:46 ` rguenth at gcc dot gnu.org
2022-04-21 7:49 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-01-17 14:46 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [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
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
` (6 preceding siblings ...)
2022-01-17 14:46 ` rguenth at gcc dot gnu.org
@ 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
9 siblings, 0 replies; 11+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-04-21 7:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.3 |11.4
--- Comment #7 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 11.3 is being released, retargeting bugs to GCC 11.4.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/100643] [11/12/13/14 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 since r11-7693-g1c7bec8bfbc5457c
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
` (7 preceding siblings ...)
2022-04-21 7:49 ` rguenth at gcc dot gnu.org
@ 2023-05-29 10:05 ` jakub at gcc dot gnu.org
2024-03-11 5:17 ` pinskia at gcc dot gnu.org
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu.org @ 2023-05-29 10:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|11.4 |11.5
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 11.4 is being released, retargeting bugs to GCC 11.5.
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug target/100643] [11/12/13/14 Regression] ICE in ix86_mangle_function_version_assembler_name, at config/i386/i386-features.c:2809 since r11-7693-g1c7bec8bfbc5457c
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
` (8 preceding siblings ...)
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
9 siblings, 0 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-11 5:17 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100643
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |RESOLVED
Resolution|--- |DUPLICATE
--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup in the end.
*** This bug has been marked as a duplicate of bug 104669 ***
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-03-11 5:17 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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
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).