https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79754
Bug ID: 79754
Summary: ICE in type_natural_mode, at config/i386/i386.c:8760
Product: gcc
Version: 7.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
With invalid code on x86_64 GNU/Linux, down to at least 4.8 :
$ cat z1.c
_Decimal32
typedef int V __attribute__ ((vector_size(16)));
int fn1 (V a) { }
$ gcc-7-20170226 -c z1.c
z1.c:2:9: error: two or more data types in declaration specifiers
typedef int V __attribute__ ((vector_size(16)));
^~~
z1.c: In function 'fn1':
z1.c:3:5: internal compiler error: in type_natural_mode, at
config/i386/i386.c:8760
int fn1 (V a) { }
^~~
0xf194da type_natural_mode
../../gcc/config/i386/i386.c:8760
0xf3af61 ix86_function_arg_advance
../../gcc/config/i386/i386.c:9729
0x92852b gimplify_parameters()
../../gcc/function.c:4010
0x98a707 gimplify_body(tree_node*, bool)
../../gcc/gimplify.c:12384
0x98aac4 gimplify_function_tree(tree_node*)
../../gcc/gimplify.c:12546
0x7f2627 cgraph_node::analyze()
../../gcc/cgraphunit.c:657
0x7f5d93 analyze_functions
../../gcc/cgraphunit.c:1118
0x7f68da symbol_table::finalize_compilation_unit()
../../gcc/cgraphunit.c:2599