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

* [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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 ` marxin at gcc dot gnu.org
  2021-08-19  8:00 ` rguenth at gcc dot gnu.org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-19  7:35 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org,
                   |                            |msebor at gcc dot gnu.org
   Last reconfirmed|                            |2021-08-19
            Summary|ICE on compilable code: in  |[10/11/12 Regression] ICE
                   |from_mode_char, at          |on compilable code: in
                   |attribs.h:304               |from_mode_char, at
                   |                            |attribs.h:304 since
                   |                            |r10-4929-g54aa6b58fe2fe73b
     Ever confirmed|0                           |1
           Keywords|                            |ice-on-invalid-code
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r10-4929-g54aa6b58fe2fe73b.

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

* [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-08-19  8:00 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |10.4
           Priority|P3                          |P2
           Keywords|ice-on-invalid-code         |ice-on-valid-code

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

* [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29  0:31 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu.org

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
This also fails with the C++ front-end:
int __attribute__((access("+nosimd"))) rdonly_v_all();

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

* [Bug c/101974] [10/11/12 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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
                   ` (2 preceding siblings ...)
  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
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-29  0:33 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
          /* This is a request to merge an internal specification for
             a function declaration involving arrays but no explicit
             attribute access.  */
          tree vblist = TREE_CHAIN (args);
          tree axstr = append_access_attr (node, attrs, NULL, str + 1,
                                           vblist);
          if (!axstr)
            return NULL_TREE;


Should the front-end do the checking to make what is after the + is valid or
should append_access_attr ?

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

* [Bug c/101974] [10/11/12/13 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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
                   ` (3 preceding siblings ...)
  2021-12-29  0:33 ` pinskia at gcc dot gnu.org
@ 2022-06-28 10:46 ` jakub at gcc dot gnu.org
  2023-07-07 10:40 ` [Bug c/101974] [11/12/13/14 " rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-06-28 10:46 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.4                        |10.5

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
GCC 10.4 is being released, retargeting bugs to GCC 10.5.

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

* [Bug c/101974] [11/12/13/14 Regression] ICE on compilable code: in from_mode_char, at attribs.h:304 since r10-4929-g54aa6b58fe2fe73b
  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
                   ` (4 preceding siblings ...)
  2022-06-28 10:46 ` [Bug c/101974] [10/11/12/13 " jakub at gcc dot gnu.org
@ 2023-07-07 10:40 ` rguenth at gcc dot gnu.org
  5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-07-07 10:40 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101974

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|10.5                        |11.5

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
GCC 10 branch is being closed.

^ 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).