https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125606
Bug ID: 125606
Summary: gimplification failed: with -O1
Product: gcc
Version: 16.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
Created attachment 64627
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=64627&action=edit
F90 source code
The attached F90 code, from the Fujitsu compiler
test suite on github, does this with recent gfortran trunk:
fujitsu $ ~/gcc/results/bin/gfortran -c -w -O1
/home/dcb42/fujitsu/trunk/Fortran/1205/1205_0220.f90
gimplification failed:
(void (*<T6f>) (void)) _255 <nop_expr 0x7f9131ef07e0
type <pointer_type 0x7f9132024930
type <function_type 0x7f9132024888 type <void_type 0x7f9132017f18 void>
QI
size <integer_cst 0x7f9132002eb8 constant 8>
unit-size <integer_cst 0x7f9132002ed0 constant 1>
align:8 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7
f9132024888
arg-types <tree_list 0x7f9132016cf8 value <void_type 0x7f9132017f18
void>>
pointer_to_this <pointer_type 0x7f9132024930>>
sizes-gimplified unsigned DI
size <integer_cst 0x7f9132002dc8 constant 64>
unit-size <integer_cst 0x7f9132002de0 constant 8>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7f91
32024930
pointer_to_this <pointer_type 0x7f9131e2df18>>
The problem first occurs sometime between gfortran 15.2 and 16.1.0
fujitsu $ /home/dcb42/gcc/results.16.1.0/bin/gfortran -v
Using built-in specs.
COLLECT_GCC=/home/dcb42/gcc/results.16.1.0/bin/gfortran
COLLECT_LTO_WRAPPER=/home/dcb42/gcc/results.16.1.0/libexec/gcc/x86_64-pc-linux-gnu/16.1.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: ../gcc-16.1.0/configure
--prefix=/home/dcb42/gcc/results.16.1.0 --disable-bootstrap --disable-doc
--disable-multilib --with-pkgversion=16.1.0 --enable-checking=yes
--enable-languages=c,c++,fortran
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 16.1.0 (16.1.0)
fujitsu $