https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122549
Bug ID: 122549
Summary: A second problem in sccp
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 62703
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62703&action=edit
C source code
The attached C code does this with recent gcc:
foundBugs $ ../results/bin/gcc -c -w -O1 bug1133.c
during GIMPLE pass: sccp
runData/keep/in.31278.c: In function ‘main’:
runData/keep/in.31278.c:785:5: internal compiler error: Segmentation fault
0x1f95187 internal_error
/home/dcb42/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:787
0xc6a6f9 ???
/home/dcb42/gcc/working/gcc/../../trunk/gcc/toplev.cc:323
0xd7a409 analyze_scalar_evolution_1
This is after sccp was recently fixed.
foundBugs $ ../results/bin/gcc -v
Using built-in specs.
COLLECT_GCC=../results/bin/gcc
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.20251103.asan.ubsan/libexec/gcc/x86_64-pc-linux-gnu/16.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../trunk/configure
--prefix=/home/dcb42/gcc/results.20251103.asan.ubsan --disable-bootstrap
--disable-doc --disable-multilib --with-build-config='bootstrap-asan
bootstrap-ubsan' --with-pkgversion=7a25badc5ddd95df --with-isl
--enable-checking=df,extra,fold,rtl,yes --enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.0.0 20251103 (experimental) (7a25badc5ddd95df)
foundBugs $