https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117712
Bug ID: 117712 Summary: ICE when building x265: internal compiler error: in expand_fix, at optabs.cc:5936 Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: csfore at posteo dot net Target Milestone: --- Created attachment 59646 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59646&action=edit original preprocessed file Notes: * -ffast-math is required (appended by upstream) * for the non-reduced file, -std=gnu++98 is required ``` $ g++ -O2 -ffast-math analysis.cpp.ii during RTL pass: ce1 analysis.cpp.ii: In function ‘void compressInterCU_rd5_6(int)’: analysis.cpp.ii:7:1: internal compiler error: in expand_fix, at optabs.cc:5936 7 | } | ^ 0x276817f diagnostic_context::diagnostic_impl(rich_location*, diagnostic_metadata const*, diagnostic_option_id, char const*, std::__va_list*, diagnostic_t) ???:0 0x27816bf internal_error(char const*, ...) ???:0 0x7863c7 fancy_abort(char const*, int, char const*) ???:0 0x1280687 expand_fix(rtx_def*, rtx_def*, int) ???:0 0xee00bb force_operand(rtx_def*, rtx_def*) ???:0 0xedff37 force_operand(rtx_def*, rtx_def*) ???:0 0xea4517 copy_to_mode_reg(machine_mode, rtx_def*) ???:0 0x1273a5f maybe_legitimize_operands(insn_code, unsigned int, unsigned int, expand_operand*) ???:0 0x1270207 maybe_gen_insn(insn_code, unsigned int, expand_operand*) ???:0 0x1272c03 emit_conditional_move(rtx_def*, rtx_comparison, rtx_def*, rtx_def*, machine_mode, int) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.gentoo.org/> for instructions. ``` -- ``` $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/armv7a-unknown-linux-gnueabihf/15/lto-wrapper Target: armv7a-unknown-linux-gnueabihf Configured with: /var/tmp/portage/sys-devel/gcc-15.0.0_pre20241117-r2/work/gcc-15-20241117/configure --host=armv7a-unknown-linux-gnueabihf --build=armv7a-unknown-linux-gnueabihf --prefix=/usr --bindir=/usr/armv7a-unknown-linux-gnueabihf/gcc-bin/15 --includedir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/15/include --datadir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15 --mandir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/man --infodir=/usr/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/info --with-gxx-include-dir=/usr/lib/gcc/armv7a-unknown-linux-gnueabihf/15/include/g++-v15 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/armv7a-unknown-linux-gnueabihf/15/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 15.0.0_pre20241117-r2 p26' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --disable-multilib --disable-fixed-point --with-float=hard --with-arch=armv7-a --with-float=hard --with-fpu=vfpv3-d16 --enable-libgomp --disable-libssp --disable-libada --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 15.0.0 20241117 (experimental) (Gentoo 15.0.0_pre20241117-r2 p26) ``` Originally reported downstream in Gentoo at: https://bugs.gentoo.org/943738