public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164
@ 2022-05-05 11:40 asolokha at gmx dot com
  2022-05-05 12:16 ` [Bug c/105492] " rguenth at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: asolokha at gmx dot com @ 2022-05-05 11:40 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 105492
           Summary: [13 Regression] ICE in set_underlying_type, at
                    c-family/c-common.cc:8164
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
                CC: jason at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-*-linux-gnu

g++ (and gcc as well) 13.0.0 20220501 snapshot
(g:75bbc3da3e5f75f683fa33e309045c582efd20eb) ICEs when compiling
gcc/testsuite/gcc.target/powerpc/pr83660.C w/ -maltivec:

% powerpc-e300c3-linux-gnu-g++-13.0.0 -maltivec -c
gcc/testsuite/gcc.target/powerpc/pr83660.C
gcc/testsuite/gcc.target/powerpc/pr83660.C:7:73: internal compiler error: in
set_underlying_type, at c-family/c-common.cc:8164
    7 | typedef __vector unsigned int  uvec32_t 
__attribute__((__aligned__(16)));
      |                                                                        
^
0x6c4f25 set_underlying_type(tree_node*)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/c-family/c-common.cc:8164
0xa27fb3 pushdecl(tree_node*, bool)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/name-lookup.cc:3801
0x978103 start_decl(cp_declarator const*, cp_decl_specifier_seq*, int,
tree_node*, tree_node*, tree_node**)
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/decl.cc:5764
0xa74fa5 cp_parser_init_declarator
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:22695
0xa4f6a3 cp_parser_simple_declaration
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:15280
0xa808f5 cp_parser_declaration
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:14966
0xa8137a cp_parser_toplevel_declaration
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:14987
0xa8137a cp_parser_translation_unit
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:5010
0xa8137a c_parse_file()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/cp/parser.cc:48113
0xbbd5dd c_common_parse_file()
       
/var/tmp/portage/cross-powerpc-e300c3-linux-gnu/gcc-13.0.0_p20220501/work/gcc-13-20220501/gcc/c-family/c-opts.cc:1240

The failing assert was introduced in r13-57-g0aa277bf0b4b7943.

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
@ 2022-05-05 12:16 ` rguenth at gcc dot gnu.org
  2022-05-05 13:59 ` [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943 marxin at gcc dot gnu.org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-05-05 12:16 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
  2022-05-05 12:16 ` [Bug c/105492] " rguenth at gcc dot gnu.org
@ 2022-05-05 13:59 ` marxin at gcc dot gnu.org
  2022-05-05 14:24 ` jason at gcc dot gnu.org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-05-05 13:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org
   Last reconfirmed|                            |2022-05-05
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW
            Summary|[13 Regression] ICE in      |[13 Regression] ICE in
                   |set_underlying_type, at     |set_underlying_type, at
                   |c-family/c-common.cc:8164   |c-family/c-common.cc:8164
                   |                            |since
                   |                            |r13-57-g0aa277bf0b4b7943

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
  2022-05-05 12:16 ` [Bug c/105492] " rguenth at gcc dot gnu.org
  2022-05-05 13:59 ` [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943 marxin at gcc dot gnu.org
@ 2022-05-05 14:24 ` jason at gcc dot gnu.org
  2022-05-15  8:30 ` slyfox at gcc dot gnu.org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-05 14:24 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|unassigned at gcc dot gnu.org      |jason at gcc dot gnu.org
             Status|NEW                         |ASSIGNED

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-05-05 14:24 ` jason at gcc dot gnu.org
@ 2022-05-15  8:30 ` slyfox at gcc dot gnu.org
  2022-05-15 16:26 ` jason at gcc dot gnu.org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: slyfox at gcc dot gnu.org @ 2022-05-15  8:30 UTC (permalink / raw)
  To: gcc-bugs

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

Sergei Trofimovich <slyfox at gcc dot gnu.org> changed:

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

--- Comment #1 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
I similar ICE proxmark3-3.1.0 on x86_64-pc-linux-gnu as well:

$ cat a.c.c
typedef int __attribute__((aligned)) __attribute__((vector_size(8)))
bitslice_value_t;

$ /tmp/gb/gcc/xgcc -B/tmp/gb/gcc -c a.c.c |& ungcc |& unnix

a.c.c:2:1: internal compiler error: in set_underlying_type, at
c-family/c-common.cc:8164
    2 | bitslice_value_t;
      | ^~~~~~~~~~~~~~~~
0x796076 set_underlying_type(tree_node*)
        <<GCC>>/gcc/c-family/c-common.cc:8164
0x6be37a pushdecl(tree_node*)
        <<GCC>>/gcc/c/c-decl.cc:3324
0x6d4ed7 start_decl(c_declarator*, c_declspecs*, bool, tree_node*, unsigned
int*)
        <<GCC>>/gcc/c/c-decl.cc:5285
0x74ec13 c_parser_declaration_or_fndef
        <<GCC>>/gcc/c/c-parser.cc:2315
0x759215 c_parser_external_declaration
        <<GCC>>/gcc/c/c-parser.cc:1787
0x759d45 c_parser_translation_unit
        <<GCC>>/gcc/c/c-parser.cc:1660
0x759d45 c_parse_file()
        <<GCC>>/gcc/c/c-parser.cc:23384
0x7cbfe7 c_common_parse_file()
        <<GCC>>/gcc/c-family/c-opts.cc:1235

$ /tmp/gb/gcc/xgcc -B/tmp/gb/gcc -v

Reading specs from /tmp/gb/gcc/specs
COLLECT_GCC=/tmp/gb/gcc/xgcc
COLLECT_LTO_WRAPPER=/tmp/gb/gcc/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: <<GCC>>/configure --disable-multilib --disable-bootstrap
--with-native-system-header-dir=/<<NIX>>/glibc-2.34-115-dev/include
--prefix=/tmp/gb/__td__ CFLAGS='-O1 -ggdb3' CXXFLAGS='-O1 -ggdb3' LDFLAGS='-O1
-ggdb3'
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 13.0.0 20220515 (experimental) (GCC)

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-05-15  8:30 ` slyfox at gcc dot gnu.org
@ 2022-05-15 16:26 ` jason at gcc dot gnu.org
  2022-05-16 21:34 ` cvs-commit at gcc dot gnu.org
  2022-05-16 21:40 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-15 16:26 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |ice-on-valid-code, patch
           Priority|P3                          |P1

--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Patch still waiting for approval.

https://gcc.gnu.org/pipermail/gcc-patches/2022-May/594135.html

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
                   ` (4 preceding siblings ...)
  2022-05-15 16:26 ` jason at gcc dot gnu.org
@ 2022-05-16 21:34 ` cvs-commit at gcc dot gnu.org
  2022-05-16 21:40 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-05-16 21:34 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jason Merrill <jason@gcc.gnu.org>:

https://gcc.gnu.org/g:ed12749a3c9d9569a2c23df2e0db2136dcd3512d

commit r13-515-ged12749a3c9d9569a2c23df2e0db2136dcd3512d
Author: Jason Merrill <jason@redhat.com>
Date:   Thu May 5 11:03:44 2022 -0400

    attribs: fix typedefs in generic code [PR105492]

    In my patch for PR100545 I added an assert to check for broken typedefs in
    set_underlying_type, and it found one in this case:
    rs6000_handle_altivec_attribute had the same problem as
    handle_mode_attribute.  So let's move the fixup into decl_attributes.

            PR c/105492

    gcc/ChangeLog:

            * attribs.cc (decl_attributes): Fix broken typedefs here.

    gcc/c-family/ChangeLog:

            * c-attribs.cc (handle_mode_attribute): Don't fix broken typedefs
            here.

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

* [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943
  2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
                   ` (5 preceding siblings ...)
  2022-05-16 21:34 ` cvs-commit at gcc dot gnu.org
@ 2022-05-16 21:40 ` jason at gcc dot gnu.org
  6 siblings, 0 replies; 8+ messages in thread
From: jason at gcc dot gnu.org @ 2022-05-16 21:40 UTC (permalink / raw)
  To: gcc-bugs

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

Jason Merrill <jason at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|ASSIGNED                    |RESOLVED

--- Comment #4 from Jason Merrill <jason at gcc dot gnu.org> ---
Fixed.

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

end of thread, other threads:[~2022-05-16 21:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-05 11:40 [Bug c/105492] New: [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 asolokha at gmx dot com
2022-05-05 12:16 ` [Bug c/105492] " rguenth at gcc dot gnu.org
2022-05-05 13:59 ` [Bug c/105492] [13 Regression] ICE in set_underlying_type, at c-family/c-common.cc:8164 since r13-57-g0aa277bf0b4b7943 marxin at gcc dot gnu.org
2022-05-05 14:24 ` jason at gcc dot gnu.org
2022-05-15  8:30 ` slyfox at gcc dot gnu.org
2022-05-15 16:26 ` jason at gcc dot gnu.org
2022-05-16 21:34 ` cvs-commit at gcc dot gnu.org
2022-05-16 21:40 ` jason 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).