https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122066

            Bug ID: 122066
           Summary: [m68k] internal compiler error: in
                    print_operand_address, at config/m68k/m68k.cc:5259
           Product: gcc
           Version: 15.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: glaubitz at physik dot fu-berlin.de
                CC: schwab at gcc dot gnu.org, sjames at gcc dot gnu.org
  Target Milestone: ---
              Host: m68k-*-*

Trying to build the x265 package in Debian unstable on m68k leads to an
internal compiler error early in the build:

FAILED: encoder/CMakeFiles/encoder.dir/slicetype.cpp.o 
/usr/bin/c++ -DEXPORT_C_API=0 -DHAVE_INT_TYPES_H=1 -DHIGH_BIT_DEPTH=1 -DPIC
-DX265_DEPTH=10 -DX265_NS=x265_10bit -D__STDC_LIMIT_MACROS=1
-I/<<PKGBUILDDIR>>/source/. -I/<<PKGBUILDDIR>>/source/common
-I/<<PKGBUILDDIR>>/source/encoder -I/<<PKGBUILDDIR>>/x265-10bit -g -O2
-ffile-prefix-map=/<<PKGBUILDDIR>>=. -specs=/usr/share/dpkg/pie-compile.specs
-fstack-protector-strong -Wformat -Werror=format-security -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -D_TIME_BITS=64 -Wdate-time -D_FORTIFY_SOURCE=2
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -Wall -Wextra -Wshadow
-Wno-class-memaccess -std=gnu++98 -fPIC -fPIC -Wno-array-bounds -ffast-math
-fno-exceptions -Wno-uninitialized -Wno-strict-overflow -MD -MT
encoder/CMakeFiles/encoder.dir/slicetype.cpp.o -MF
encoder/CMakeFiles/encoder.dir/slicetype.cpp.o.d -o
encoder/CMakeFiles/encoder.dir/slicetype.cpp.o -c
/<<PKGBUILDDIR>>/source/encoder/slicetype.cpp
during RTL pass: final
/<<PKGBUILDDIR>>/source/encoder/slicetype.cpp: In member function ‘void
x265_10bit::LookaheadTLD::calcAdaptiveQuantFrame(x265_10bit::Frame*,
x265_param*)’:
/<<PKGBUILDDIR>>/source/encoder/slicetype.cpp:702:1: internal compiler error:
in print_operand_address, at config/m68k/m68k.cc:5259
  702 | }
      | ^
0x816c6d39 internal_error(char const*, ...)
        ../../src/gcc/diagnostic-global-context.cc:517
0x801ed37b fancy_abort(char const*, int, char const*)
        ../../src/gcc/diagnostic.cc:1749
0x80e424ad print_operand_address(_IO_FILE*, rtx_def*)
        ../../src/gcc/config/m68k/m68k.cc:5259
0x80690dc7 output_address(machine_mode, rtx_def*)
        ../../src/gcc/final.cc:3657
0x80e42821 print_operand(_IO_FILE*, rtx_def*, int)
        ../../src/gcc/config/m68k/m68k.cc:5054
0x80690ceb output_operand(rtx_def*, int)
        ../../src/gcc/final.cc:3641
0x80691ab5 output_asm_insn(char const*, rtx_def**)
        ../../src/gcc/final.cc:3553
0x806933b3 output_asm_insn(char const*, rtx_def**)
        ../../src/gcc/final.cc:3427
0x806933b3 final_scan_insn_1
        ../../src/gcc/final.cc:2846
0x80693861 final_scan_insn(rtx_insn*, _IO_FILE*, int, int, int*)
        ../../src/gcc/final.cc:2892
0x80693ad1 final_1
        ../../src/gcc/final.cc:1983
0x80694283 rest_of_handle_final
        ../../src/gcc/final.cc:4250
0x80694283 execute
        ../../src/gcc/final.cc:4328
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <file:///usr/share/doc/gcc-15/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccuMm0xN.out file, please attach this to
your bugreport.

The full build log is available in:
https://buildd.debian.org/status/fetch.php?pkg=x265&arch=m68k&ver=4.1-3&stamp=1758879097&raw=0

It also contains the pre-processed source which can be extracted to reproduce
the problem. The same ICE was also observed in PR target/98262, so I'm not sure
whether this is the same bug.

Reply via email to