public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101974] New: ICE on compilable code: in from_mode_char, at attribs.h:304
@ 2021-08-19  5:52 cnsun at uwaterloo dot ca
  2021-08-19  7:35 ` [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b marxin at gcc dot gnu.org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-08-19  5:52 UTC (permalink / raw)
  To: gcc-bugs

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.

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

end of thread, other threads:[~2023-07-07 10:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-19  5:52 [Bug c/101974] New: ICE on compilable code: in from_mode_char, at attribs.h:304 cnsun at uwaterloo dot ca
2021-08-19  7:35 ` [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b marxin at gcc dot gnu.org
2021-08-19  8:00 ` rguenth at gcc dot gnu.org
2021-12-29  0:31 ` pinskia at gcc dot gnu.org
2021-12-29  0:33 ` pinskia at gcc dot gnu.org
2022-06-28 10:46 ` [Bug c/101974] [10/11/12/13 " jakub at gcc dot gnu.org
2023-07-07 10:40 ` [Bug c/101974] [11/12/13/14 " rguenth 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).