[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-bugs
Subject: [Bug middle-end/112321] New: [14 Regression] ICE during GIMPLE pass: dse: : Segmentation fault
From: "slyfox at gcc dot gnu.org via Gcc-bugs" <gcc-bugs () gcc ! gnu ! org>
Date: 2023-10-31 19:27:07
Message-ID: bug-112321-4 () http ! gcc ! gnu ! org/bugzilla/
[Download RAW message or body]
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)=
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic