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

--- Comment #12 from Werner Zeh <werner.zeh at coreboot dot org> ---
(In reply to Uroš Bizjak from comment #11)
> (In reply to Vladimir Koković from comment #0)
> > GIT_DIR=/mnt/WD-Elements-25A1/src/gcc-mirror-git/gcc/.git git describe HEAD
> > misc/first-auto-changelog-4144-gc283a711c85
> > 
> > Build a cross compiler for MinGW(gcc 10.2.0)
> > 
> > Executing on host:
> 
> These all compile OK for me with:
> 
> Target: x86_64-w64-mingw32
> Configured with: ../git/gcc/configure --enable-languages=c,c++
> --target=x86_64-w64-mingw32 --disable-nls --enable-shared
> --enable-threads=posix
> Thread model: posix
> Supported LTO compression algorithms: zlib zstd
> gcc version 16.0.0 20251127 (experimental) [master r16-5641-g319a956cd25]
> (GCC)
> 
> Can someone please retry with latest development version?

Tested with gcc 15.2, same result (in addition, see link to gotbolt above):

.../x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc -m64 -v -save-temps
example.cc -c -o example.o
Using built-in specs.
COLLECT_GCC=.../x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
Target: x86_64-w64-mingw32
Configured with: .../test/git/gcc/configure --target=x86_64-w64-mingw32
--prefix=.../x86_64-w64-mingw32 --enable-languages=c,c++ --disable-nls
--enable-shared --enable-threads=posix --with-sysroot=.../x86_64-w64-mingw32
--with-gmp=.../x86_64-unknown-linux-gnu
--with-mpfr=.../x86_64-unknown-linux-gnu
--with-mpc=.../x86_64-unknown-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 15.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-m64' '-v' '-save-temps' '-c' '-o' 'example.o'
'-mtune=generic' '-march=x86-64'
 .../x86_64-w64-mingw32/libexec/gcc/x86_64-w64-mingw32/15.2.0/cc1plus -E -quiet
-v -D_REENTRANT example.cc -m64 -mtune=generic -march=x86-64 -fpch-preprocess
-o example.ii
ignoring nonexistent directory ".../x86_64-w64-mingw32/usr/local/include"
ignoring duplicate directory ".../x86_64-w64-mingw32/mingw/include"
#include "..." search starts here:
#include <...> search starts here:

.../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/include/c++/15.2.0

.../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/include/c++/15.2.0/x86_64-w64-mingw32

.../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/include/c++/15.2.0/backward
 .../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/include
 .../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/include-fixed

.../x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/include
End of search list.
COLLECT_GCC_OPTIONS='-m64' '-v' '-save-temps' '-c' '-o' 'example.o'
'-mtune=generic' '-march=x86-64'
 .../x86_64-w64-mingw32/libexec/gcc/x86_64-w64-mingw32/15.2.0/cc1plus
-fpreprocessed example.ii -quiet -dumpbase example.cc -dumpbase-ext .cc -m64
-mtune=generic -march=x86-64 -version -o example.s
GNU C++17 (GCC) version 15.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 8.2.0, GMP version 6.1.0, MPFR version 3.1.3,
MPC version 1.0.3, isl version none
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: 806ab5c2d823652f9567914f6e78f647
during RTL pass: pro_and_epilogue
example.cc: In function 'void h()':
example.cc:13:17: internal compiler error: in choose_baseaddr, at
config/i386/i386.cc:7447
   13 | void h() { f(); }
      |                 ^
0x220409f internal_error(char const*, ...)
        .../test/git/gcc/gcc/diagnostic-global-context.cc:517
0x7dc0a3 fancy_abort(char const*, int, char const*)
        .../test/git/gcc/gcc/diagnostic.cc:1749
0x7c7b0b choose_baseaddr
        .../test/git/gcc/gcc/config/i386/i386.cc:7447
0x13128d6 ix86_emit_save_reg_using_mov
        .../test/git/gcc/gcc/config/i386/i386.cc:7571
0x132a79e ix86_emit_save_sse_regs_using_mov
        .../test/git/gcc/gcc/config/i386/i386.cc:7660
0x132bbf0 ix86_expand_prologue()
        .../test/git/gcc/gcc/config/i386/i386.cc:9343
0x1ab29ca gen_prologue()
        .../test/git/gcc/gcc/config/i386/i386.md:20768
0x1317c18 target_gen_prologue
        .../test/git/gcc/gcc/config/i386/i386.md:28991
0xc40187 make_prologue_seq
        .../test/git/gcc/gcc/function.cc:5875
0xc40351 thread_prologue_and_epilogue_insns()
        .../test/git/gcc/gcc/function.cc:6110
0xc40992 rest_of_handle_thread_prologue_and_epilogue
        .../test/git/gcc/gcc/function.cc:6627
0xc40992 execute
        .../test/git/gcc/gcc/function.cc:6713
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.
gmake: *** [Makefile:6: example.o] Error 1

Reply via email to