[Bug c/101974] New: ICE on compilable code: in from_mode_char, at attribs.h:304
cnsun at uwaterloo dot ca
gcc-bugzilla@gcc.gnu.org
Thu Aug 19 05:52:38 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974
Bug ID: 101974
Summary: ICE on compilable code: in from_mode_char, at
attribs.h:304
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: cnsun at uwaterloo dot ca
Target Milestone: ---
$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210818 (experimental) [master revision
:ac65007c1:2d14d64bf2d42a87ec58dd3760be12aeaa4a4279] (GCC)
$ cat mutant.c
__attribute__((access("+nosimd"))) rdonly_v_all();
$ gcc-trunk mutant.c
mutant.c:1:36: warning: type defaults to ‘int’ in declaration of ‘rdonly_v_all’
[-Wimplicit-int]
1 | __attribute__((access("+nosimd"))) rdonly_v_all();
| ^~~~~~~~~~~~
mutant.c:1:1: internal compiler error: in from_mode_char, at attribs.h:304
1 | __attribute__((access("+nosimd"))) rdonly_v_all();
| ^~~~~~~~~~~~~
0x64da68 attr_access::from_mode_char(char)
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.h:304
0x64da68 init_attr_rdwr_indices(hash_map<rdwr_access_hash, attr_access,
simple_hashmap_traits<default_hash_traits<rdwr_access_hash>, attr_access> >*,
tree_node*)
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.c:2138
0x9f7802 append_access_attr
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-attribs.c:4472
0x9f8612 handle_access_attribute
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-attribs.c:4718
0x8efeb6 decl_attributes(tree_node**, tree_node*, int, tree_node*)
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/attribs.c:715
0x90c67e start_decl(c_declarator*, c_declspecs*, bool, tree_node*, unsigned
int*)
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-decl.c:5201
0x969715 c_parser_declaration_or_fndef
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:2306
0x973723 c_parser_external_declaration
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:1778
0x97418b c_parser_translation_unit
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:1651
0x97418b c_parse_file()
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c/c-parser.c:22302
0x9d6515 c_common_parse_file()
/tmp/tmp.A3uaEFFAHF-gcc-builder/gcc/gcc/c-family/c-opts.c:1223
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.
More information about the Gcc-bugs
mailing list