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

--- Comment #159 from John Paul Adrian Glaubitz <glaubitz at physik dot 
fu-berlin.de> ---
(In reply to Kazumoto Kojima from comment #157)
> Created attachment 58905 [details]
> a revised patch for c#135, c#139 and c#154

This now fails when compiling libstdc++-v3 with:

libtool: compile:  /<<PKGBUILDDIR>>/build/./gcc/xgcc -shared-libgcc
-B/<<PKGBUILDDIR>>/build/./gcc -nostdinc++
-L/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/src
-L/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/src/.libs
-L/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/libsupc++/.libs
-B/usr/sh4-linux-gnu/bin/ -B/usr/sh4-linux-gnu/lib/ -isystem
/usr/sh4-linux-gnu/include -isystem /usr/sh4-linux-gnu/sys-include -isystem
/<<PKGBUILDDIR>>/build/sys-include -fno-checking
-I/<<PKGBUILDDIR>>/src/libstdc++-v3/../libgcc
-I/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/include/sh4-linux-gnu
-I/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/include
-I/<<PKGBUILDDIR>>/src/libstdc++-v3/libsupc++ -std=gnu++98 -D_GLIBCXX_SHARED
-fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=2
-fdiagnostics-show-location=once -ffunction-sections -fdata-sections
-frandom-seed=c++locale.lo -g -O2 -D_GNU_SOURCE -fimplicit-templates -c
c++locale.cc  -fPIC -DPIC -D_GLIBCXX_SHARED -o c++locale.o
../../../../../src/libstdc++-v3/src/c++98/strstream.cc: In member function
'virtual void std::strstream::_ZTv0_n12_NSt9strstreamD1Ev()':
../../../../../src/libstdc++-v3/src/c++98/strstream.cc:417:1: error:
unrecognizable insn:
  417 | } // namespace
      | ^
(call_insn/j 6 5 7 (parallel [
            (call (mem:SI (symbol_ref:SI ("*.LTHUNK4") [flags 0x3]
<function_decl 0x2c89c680 *.LTHUNK4>) [0  S4 A32])
                (const_int 0 [0]))
            (use (reg:SI 154 fpscr0))
            (clobber (reg:SI 3 r3))
            (return)
        ])
"/<<PKGBUILDDIR>>/build/sh4-linux-gnu/libstdc++-v3/include/backward/strstream":217:13
-1
     (nil)
    (expr_list (use (reg:SI 4 r4))
        (nil)))
../../../../../src/libstdc++-v3/src/c++98/strstream.cc:417:1: internal compiler
error: in insn_min_length, at config/sh/sh.md:4190
0x17cf86f _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
        ../../src/gcc/rtl-error.cc:108
0x17cf8d9 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
        ../../src/gcc/rtl-error.cc:116
0x23ac109 insn_min_length(rtx_insn*)
        ../../src/gcc/config/sh/sh.md:4190
0x12b3d5f shorten_branches(rtx_insn*)
        ../../src/gcc/final.cc:1089
0x1d33865 sh_reorg
        ../../src/gcc/config/sh/sh.cc:6113
0x1d46f39 sh_output_mi_thunk
        ../../src/gcc/config/sh/sh.cc:10947
0x1114f9d expand_thunk(cgraph_node*, bool, bool)
        ../../src/gcc/symtab-thunks.cc:388
0x1131b1d cgraph_node::assemble_thunks_and_aliases()
        ../../src/gcc/cgraphunit.cc:1767
0x1131c0d cgraph_node::assemble_thunks_and_aliases()
        ../../src/gcc/cgraphunit.cc:1789
0x1132101 cgraph_node::expand()
        ../../src/gcc/cgraphunit.cc:1918
0x11325bf expand_all_functions
        ../../src/gcc/cgraphunit.cc:2028
0x113323f symbol_table::compile()
        ../../src/gcc/cgraphunit.cc:2404
0x11337ab symbol_table::finalize_compilation_unit()
        ../../src/gcc/cgraphunit.cc:2589
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-14/README.Bugs> for instructions.
Preprocessed source stored into /tmp/ccHVpWhQ.out file, please attach this to
your bugreport.

Will attach the preprocessed source from /tmp/ccHVpWhQ.out as well.

Reply via email to