https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126687
Bug ID: 126687
Summary: ICE: in gimplify_expr, at gimplify.cc:21371 with
fixed-point type
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: mjires at gcc dot gnu.org
Target Milestone: ---
Compiling reduced testcase gcc.dg/fixed-point/func-vararg-mixed.c results in
ICE.
$ cat func-vararg-mixed.c
int main() {
0.9 != 0 != 0.9r;
}
$ arm-linux-gnueabi-gcc func-vararg-mixed.c
func-vararg-mixed.c: In function ‘main’:
func-vararg-mixed.c:2:6: internal compiler error: in gimplify_expr, at
gimplify.cc:21371
2 | 0.9 != 0 != 0.9r;
| ~~~~^~~~
0x231f447 internal_error(char const*, ...)
/home/mjires/git/GCC/master/gcc/diagnostic-global-context.cc:787
0x232a923 fancy_abort(char const*, int, char const*)
/home/mjires/git/GCC/master/gcc/diagnostics/context.cc:1813
0xc38133 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:21371
0xc37c76 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:21341
0xc35e5d gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:20619
0xc37fd3 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:21332
0xc37c76 gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:21341
0xc38764 gimplify_stmt(tree_node**, gimple**)
/home/mjires/git/GCC/master/gcc/gimplify.cc:8577
0xc3b2a1 gimplify_bind_expr
/home/mjires/git/GCC/master/gcc/gimplify.cc:1561
0xc362aa gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:20717
0xc38764 gimplify_stmt(tree_node**, gimple**)
/home/mjires/git/GCC/master/gcc/gimplify.cc:8577
0xc3c167 gimplify_statement_list
/home/mjires/git/GCC/master/gcc/gimplify.cc:2166
0xc36fda gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*),
int)
/home/mjires/git/GCC/master/gcc/gimplify.cc:20967
0xc38764 gimplify_stmt(tree_node**, gimple**)
/home/mjires/git/GCC/master/gcc/gimplify.cc:8577
0xc3c2f2 gimplify_body(tree_node*, bool)
/home/mjires/git/GCC/master/gcc/gimplify.cc:21823
0xc3c82a gimplify_function_tree(tree_node*)
/home/mjires/git/GCC/master/gcc/gimplify.cc:22032
0x9ece6f cgraph_node::analyze()
/home/mjires/git/GCC/master/gcc/cgraphunit.cc:691
0x9f0262 analyze_functions
/home/mjires/git/GCC/master/gcc/cgraphunit.cc:1270
0x9f152a symbol_table::finalize_compilation_unit()
/home/mjires/git/GCC/master/gcc/cgraphunit.cc:2593
/home/mjires/built/master-arm-linux-gnueabi/libexec/gcc/arm-linux-gnueabi/17.0.0/cc1
-quiet func-vararg-mixed.c -quiet -dumpdir a- -dumpbase func-vararg-mixed.c
-dumpbase-ext .c -mcpu=arm10tdmi -mtls-dialect=gnu -marm -mlibarch=armv5t
-march=armv5t -Oz -o /tmp/cc4HvuDl.s
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
$ arm-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/home/mjires/built/master-arm-linux-gnueabi/libexec/gcc/arm-linux-gnueabi/17.0.0/lto-wrapper
Target: arm-linux-gnueabi
Configured with: /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master-arm-linux-gnueabi --target=arm-linux-gnueabi
--disable-bootstrap --enable-languages=c,c++,fortran --disable-multilib
--enable-checking : (reconfigured) /home/mjires/git/GCC/master/configure
--prefix=/home/mjires/built/master-arm-linux-gnueabi --target=arm-linux-gnueabi
--disable-bootstrap --disable-multilib --enable-checking
target_alias=arm-linux-gnueabi --enable-languages=c,c++,fortran,lto --no-create
--no-recursion
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 17.0.0 20260806 (experimental) (GCC)