public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/112321] New: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault
@ 2023-10-31 19:27 slyfox at gcc dot gnu.org
  2023-10-31 19:46 ` [Bug middle-end/112321] " pinskia at gcc dot gnu.org
  0 siblings, 1 reply; 2+ messages in thread
From: slyfox at gcc dot gnu.org @ 2023-10-31 19:27 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112321
           Summary: [14 Regression] ICE during GIMPLE pass: dse: :
                    Segmentation fault
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
          Assignee: unassigned at gcc dot gnu.org
          Reporter: slyfox at gcc dot gnu.org
  Target Milestone: ---

Noticed ICE on today's gcc-master at r14-5043-g2b19c387696b0d. There it fails
to build binutils' gold. Extracted sample:

// $ cat bug.cc

void writeval(unsigned char *, long);
unsigned do_write_count;
void do_write() {
  unsigned char *pov;
  int limit(do_write_count > 8 ? true : do_write_count);
  for (int i = 0; i < limit; ++i)
    pov += 2;
  int ext_cnt = do_write_count - 8;
  for (; 0 < ext_cnt;) {
    writeval(pov, 0);
    pov += 4;
    ext_cnt--;
  }
}

Crashing:

$ gcc/xg++ -B./gcc -g -O1 -c bug.cc -o a.o
during GIMPLE pass: dse
bug.cc: In function ‘void do_write()’:
bug.cc:3:6: internal compiler error: Segmentation fault
    3 | void do_write() {
      |      ^~~~~~~~
0x8ebef5a crash_signal
        gcc/toplev.cc:315
0x8b42800 phi_nodes_ptr(basic_block_def*)
        gcc/gimple.h:4700
0x8b42800 gsi_start_phis(basic_block_def*)
        gcc/gimple-iterator.cc:935
0x8b42800 gsi_for_stmt(gimple*)
        gcc/gimple-iterator.cc:620
0x9121a03 insert_debug_temp_for_var_def(gimple_stmt_iterator*, tree_node*)
        gcc/tree-ssa.cc:471
0x9121f2e insert_debug_temps_for_defs(gimple_stmt_iterator*)
        gcc/tree-ssa.cc:506
0x8b42690 gsi_remove(gimple_stmt_iterator*, bool)
        gcc/gimple-iterator.cc:567
0x8ffe08b execute
        gcc/tree-ssa-dse.cc:1685

$ gcc/xg++ -Bgcc -v
Reading specs from ./gcc/specs
COLLECT_GCC=./gcc/xg++
COLLECT_LTO_WRAPPER=./gcc/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 14.0.0 20231031 (experimental) (GCC)

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

* [Bug middle-end/112321] [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault
  2023-10-31 19:27 [Bug middle-end/112321] New: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault slyfox at gcc dot gnu.org
@ 2023-10-31 19:46 ` pinskia at gcc dot gnu.org
  0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-31 19:46 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 112320 ***

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

end of thread, other threads:[~2023-10-31 19:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-31 19:27 [Bug middle-end/112321] New: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault slyfox at gcc dot gnu.org
2023-10-31 19:46 ` [Bug middle-end/112321] " pinskia 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).