https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127797
Bug ID: 127797
Summary: internal compiler error: in fold_convert_loc, at
fold-const.cc:2620
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: algol68
Assignee: algol68 at gcc dot gnu.org
Reporter: dkm at gcc dot gnu.org
Target Milestone: ---
Trying to build an arm-none-eabi triggers an ICE:
[ALL ] libtool: compile:
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/build/build-cc-gcc-final/./gcc/ga68
-B/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/build/build-cc-gcc-final/./gcc/
-B/home/marc/x-tools/arm-none-eabi/arm-none-eabi/bin/
-B/home/marc/x-tools/arm-none-eabi/arm-none-eabi/lib/arm/v5te/softfp
-B/home/marc/x-tools/arm-none-eabi/arm-none-eabi/lib/ -isystem
/home/marc/x-tools/arm-none-eabi/arm-none-eabi/include -isystem
/home/marc/x-tools/arm-none-eabi/arm-none-eabi/sys-include -marm
-march=armv5te+fp -mfloat-abi=softfp -O2 -g -pipe
-I/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/buildtools/include
-marm -march=armv5te+fp -mfloat-abi=softfp -fbuilding-libga68 -c standard.a68
-o standard.o
[ALL ] mv -f .deps/libga68_la-ga68-math.Tpo .deps/libga68_la-ga68-math.Plo
[ALL ] mv -f .deps/libga68_la-libga68.Tpo .deps/libga68_la-libga68.Plo
[ALL ] standard.a68: In function 'STANDARD_subfixed':
[ERROR] standard.a68:528:20: internal compiler error: in fold_convert_loc,
at fold-const.cc:2620
[ALL ] 528 | y /:= long long 10.0 ** before;
[ALL ] | ^
[ALL ] mv -f .deps/libga68_la-ga68-alloc.Tpo
.deps/libga68_la-ga68-alloc.Plo
[ALL ] mv -f .deps/libga68_la-ga68-standenv.Tpo
.deps/libga68_la-ga68-standenv.Plo
[ALL ] standard.a68: In function 'STANDARD_subfixed':
[ERROR] standard.a68:528:20: internal compiler error: in fold_convert_loc,
at fold-const.cc:2620
[ALL ] 528 | y /:= long long 10.0 ** before;
[ALL ] | ^
[ALL ] mv -f .deps/libga68_la-ga68-math.Tpo .deps/libga68_la-ga68-math.Plo
[ALL ] mv -f .deps/libga68_la-ga68-error.Tpo
.deps/libga68_la-ga68-error.Plo
[ALL ] mv -f .deps/libga68_la-ga68-unistr.Tpo
.deps/libga68_la-ga68-unistr.Plo
[ALL ] mv -f .deps/libga68_la-ga68-unistr.Tpo
.deps/libga68_la-ga68-unistr.Plo
[ALL ] 0x200ecbe internal_error(char const*, ...)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/diagnostic-global-context.cc:787
[ALL ] 0x675175 fancy_abort(char const*, int, char const*)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/diagnostics/context.cc:1813
[ALL ] 0x200ecbe internal_error(char const*, ...)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/diagnostic-global-context.cc:787
[ALL ] 0x675175 fancy_abort(char const*, int, char const*)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/diagnostics/context.cc:1813
[ALL ] 0x447b47 fold_convert_loc(unsigned long, tree_node*, tree_node*)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/fold-const.cc:2620
[ALL ] 0x447b47 fold_convert_loc(unsigned long, tree_node*, tree_node*)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/fold-const.cc:2620
[ALL ] 0x9e6c83 gimplify_modify_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7284
[ALL ] 0x9c467d gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20526
[ALL ] 0x9e49b7 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9e49b7 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7632
[ALL ] 0x9e4a61 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7630
[ALL ] 0x9e4a61 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7630
[ALL ] 0x9e6c83 gimplify_modify_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7284
[ALL ] 0x9c57c4 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20516
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9c4a2b gimplify_statement_list
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:2166
[ALL ] 0x9c4a2b gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ] /home/marc/pers/git/crosstool-ng/.build/arm-0x9c467d
gimplify_expr(tree_node**, gimple**, gimple**, bool (*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20526
[ALL ] none-eabi/src/gcc/gcc/gimplify.cc:20977
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8570x9e49b7
gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 7
[ALL ] 0x9e49b7 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7632
[ALL ] 0x9c82fc gimplify_bind_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:1561
[ALL ] 0x9e4a61 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7630
[ALL ] 0x9e4a61 gimplify_compound_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:7630
[ALL ] 0x9c4b30 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20727
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9c57c4 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20516
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9c4734 gimplify_and_add(tree_node*, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:558
[ALL ] 0x9c4a2b gimplify_statement_list
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:2166
[ALL ] 0x9c4734 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20878
[ALL ] 0x9c4a2b gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20977
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:8577
[ALL ] 0x9c82fc gimplify_bind_expr
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:1561
[ALL ] 0x9c4b30 gimplify_expr(tree_node**, gimple**, gimple**, bool
(*)(tree_node*), int)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:20727
[ALL ] 0x9c6ce6 gimplify_stmt(tree_node**, gimple**)
[ALL ]
/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/gcc/gimplify.cc:857/home/marc/pers/git/crosstool-n
$ /home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/src/gcc/configure
--build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu
--target=arm-none-eabi --prefix=/home/marc/x-tools/arm-none-eabi
--exec_prefix=/home/marc/x-tools/arm-none-eabi
--with-local-prefix=/home/marc/x-tools/arm-none-eabi/arm-none-eabi
--with-headers=/home/marc/x-tools/arm-none-eabi/arm-none-eabi/include
--with-newlib --enable-threads=no --disable-shared
--with-pkgversion=crosstool-NG 1.24.0.1144_f697d16 --enable-__cxa_atexit
--disable-libgomp --disable-libmudflap --disable-libmpx --disable-libssp
--disable-libquadmath --disable-libquadmath-support --disable-libstdcxx-verbose
--disable-libstdcxx
--with-gmp=/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/buildtools
--with-mpfr=/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/buildtools
--with-mpc=/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/buildtools
--with-isl=/home/marc/pers/git/crosstool-ng/.build/arm-none-eabi/buildtools
--enable-lto --enable-target-optspace --disable-plugin --disable-nls
--disable-libada --enable-multiarch --with-multilib-list=rmprofile aprofile
--disable-libatomic --enable-languages=c,ada,rust,algol68 --disable-algol68-gc
--disable-algol68-posix-prelude
(gdb) call debug_tree(orig)
<real_type 0x7ffff7a1c498 sizes-gimplified DF
size <integer_cst 0x7ffff7a02df8 type <integer_type 0x7ffff7a140a8
bitsizetype> constant 64>
unit-size <integer_cst 0x7ffff7a02e10 type <integer_type 0x7ffff7a14000
sizetype> constant 8>
align:64 warn_if_not_align:0 symtab:0 alias-set -1 canonical-type
0x7ffff7a1c498 precision:64
pointer_to_this <pointer_type 0x7ffff7a1c888>>
Failing assertion is:
2620 gcc_assert (VECTOR_TYPE_P (orig)
2621 && tree_int_cst_equal (TYPE_SIZE (type), TYPE_SIZE
(orig)));