public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "ro at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/110869] New: [14 regression] ICE in decompose, at rtl.h:2297
Date: Tue, 01 Aug 2023 16:26:59 +0000	[thread overview]
Message-ID: <bug-110869-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 110869
           Summary: [14 regression] ICE in decompose, at rtl.h:2297
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
                CC: stefansf at linux dot ibm.com
  Target Milestone: ---
              Host: sparc-sun-solaris2.11
            Target: sparc-sun-solaris2.11
             Build: sparc-sun-solaris2.11

Between 20230731 (bf67bf4880ce5be0b6e48c7c35828528b7be12ed) and 20230801
(a5451b8b9f3a6ab0cb1a60bc8b0b76cca46b080f), Solaris/SPARC bootstrap broke e.g.
compiling cp/lex.cc in stage 2:

during RTL pass: combine
/vol/gcc/src/hg/master/local/gcc/cp/lex.cc: In function ‘void
cxx_dup_lang_specific_decl(tree)’:
/vol/gcc/src/hg/master/local/gcc/cp/lex.cc:1026:1: internal compiler error: in
decompose, at rtl.h:2297
 1026 | }
      | ^
0x197362f wi::int_traits<std::pair<rtx_def*, machine_mode> >::decompose(long
long*, unsigned int, std::pair<rtx_def*, machine_mode> const&)
        /vol/gcc/src/hg/master/local/gcc/rtl.h:2297
0x1a034ef wide_int_ref_storage<false,
true>::wide_int_ref_storage<std::pair<rtx_def*, machine_mode>
>(std::pair<rtx_def*, machine_mode> const&)
        /vol/gcc/src/hg/master/local/gcc/wide-int.h:1030
0x1a02513 generic_wide_int<wide_int_ref_storage<false, true>
>::generic_wide_int<std::pair<rtx_def*, machine_mode> >(std::pair<rtx_def*,
machine_mode> const&)
        /vol/gcc/src/hg/master/local/gcc/wide-int.h:788
0x2151017 simplify_const_unary_operation(rtx_code, machine_mode, rtx_def*,
machine_mode)
        /vol/gcc/src/hg/master/local/gcc/simplify-rtx.cc:2131
0x214a35f simplify_context::simplify_unary_operation(rtx_code, machine_mode,
rtx_def*, machine_mode)
        /vol/gcc/src/hg/master/local/gcc/simplify-rtx.cc:889
0x2147e0f simplify_context::simplify_gen_unary(rtx_code, machine_mode,
rtx_def*, machine_mode)
        /vol/gcc/src/hg/master/local/gcc/simplify-rtx.cc:360
0x17e5317 simplify_gen_unary(rtx_code, machine_mode, rtx_def*, machine_mode)
        /vol/gcc/src/hg/master/local/gcc/rtl.h:3520
0x300c3f3 simplify_comparison
        /vol/gcc/src/hg/master/local/gcc/combine.cc:13125
0x2ff04cf simplify_set
        /vol/gcc/src/hg/master/local/gcc/combine.cc:6848
0x2fed9b3 combine_simplify_rtx
        /vol/gcc/src/hg/master/local/gcc/combine.cc:6353
0x2fea537 subst
        /vol/gcc/src/hg/master/local/gcc/combine.cc:5609
0x2fe0b3b try_combine
        /vol/gcc/src/hg/master/local/gcc/combine.cc:3339
0x2fd8a57 combine_instructions
        /vol/gcc/src/hg/master/local/gcc/combine.cc:1285
0x30130a3 rest_of_handle_combine
        /vol/gcc/src/hg/master/local/gcc/combine.cc:15059
0x30131c7 execute
        /vol/gcc/src/hg/master/local/gcc/combine.cc:15103

I've not yet identified the culprit patch, but this one seems plausible:

commit 7cdd0860949c6c3232e6cff1d7ca37bb5234074c
Author: Stefan Schulze Frielinghaus <stefansf@linux.ibm.com>
Date:   Mon Jul 31 16:35:33 2023 +0200

    combine: Narrow comparison of memory and constant

             reply	other threads:[~2023-08-01 16:26 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-01 16:26 ro at gcc dot gnu.org [this message]
2023-08-01 16:27 ` [Bug middle-end/110869] " ro at gcc dot gnu.org
2023-08-01 18:20 ` pinskia at gcc dot gnu.org
2023-08-01 19:58 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-02  7:40 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-02  9:05 ` stefansf at linux dot ibm.com
2023-08-02  9:17 ` ro at gcc dot gnu.org
2023-08-02  9:50 ` ebotcazou at gcc dot gnu.org
2023-08-02 14:05 ` stefansf at linux dot ibm.com
2023-08-02 19:44 ` cvs-commit at gcc dot gnu.org
2023-08-04  7:53 ` ro at gcc dot gnu.org
2023-08-04  7:53 ` ro at gcc dot gnu.org
2023-08-04  8:38 ` stefansf at linux dot ibm.com
2023-08-04  8:40 ` stefansf at linux dot ibm.com
2023-08-04  8:51 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-04  9:42 ` stefansf at linux dot ibm.com
2023-08-04 14:16 ` stefansf at linux dot ibm.com
2023-08-04 14:18 ` stefansf at linux dot ibm.com
2023-08-07 12:29 ` ro at CeBiTec dot Uni-Bielefeld.DE
2023-08-07 13:41 ` stefansf at linux dot ibm.com
2023-08-08  6:54 ` cvs-commit at gcc dot gnu.org
2023-10-02  5:23 ` xry111 at gcc dot gnu.org
2023-10-02  5:24 ` xry111 at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-110869-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).