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

Werner Zeh <werner.zeh at coreboot dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |werner.zeh at coreboot dot org

--- Comment #6 from Werner Zeh <werner.zeh at coreboot dot org> ---
Created attachment 62928
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62928&action=edit
Preprocessed sourcefile to reproduce internal bug

Preprocessed sourcefile which can be used to reproduce the internal gcc bug.
The compile call details are as follows:

.../mingw/gcc-12.2.0/linux/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=.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/bin/x86_64-w64-mingw32-gcc
Target: x86_64-w64-mingw32
Configured with: ../gcc-12.2.0/configure --target=x86_64-w64-mingw32
--prefix=.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32 --enable-languages=c,c++
--disable-nls --enable-shared --enable-threads=posix
--with-sysroot=.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32
--with-gmp=.../native/gcc-12.2.0/linux/x86_64-unknown-linux-gnu
--with-mpfr=.../native/gcc-12.2.0/linux/x86_64-unknown-linux-gnu
--with-mpc=.../native/gcc-12.2.0/linux/x86_64-unknown-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.2.0 (GCC) 
COLLECT_GCC_OPTIONS='-m64' '-v' '-save-temps' '-c' '-o' 'example.o'
'-mtune=generic' '-march=x86-64'

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/libexec/gcc/x86_64-w64-mingw32/12.2.0/cc1plus
-E -quiet -v -D_REENTRANT example.cc -m64 -mtune=generic -march=x86-64
-fpch-preprocess -o example.ii
ignoring nonexistent directory
".../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/usr/local/include"
ignoring duplicate directory
".../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/mingw/include"
#include "..." search starts here:
#include <...> search starts here:

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/include/c++/12.2.0

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/include/c++/12.2.0/x86_64-w64-mingw32

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/include/c++/12.2.0/backward

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.2.0/include

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.2.0/include-fixed

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/lib/gcc/x86_64-w64-mingw32/12.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'

.../mingw/gcc-12.2.0/linux/x86_64-w64-mingw32/libexec/gcc/x86_64-w64-mingw32/12.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 12.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 12.2.0, GMP version 6.1.0, MPFR version
3.1.3, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
GNU C++17 (GCC) version 12.2.0 (x86_64-w64-mingw32)
        compiled by GNU C version 12.2.0, GMP version 6.1.0, MPFR version
3.1.3, MPC version 1.0.3, isl version isl-0.18-GMP

GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
Compiler executable checksum: b4040c9c365826d577cc901bd6500597
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:7080
   13 | void h() { f(); }
      |                 ^
0x712daf choose_baseaddr
        ../../gcc-12.2.0/gcc/config/i386/i386.cc:7080
0x10e1736 ix86_emit_save_reg_using_mov
        ../../gcc-12.2.0/gcc/config/i386/i386.cc:7124
0x10ee63a ix86_emit_save_sse_regs_using_mov
        ../../gcc-12.2.0/gcc/config/i386/i386.cc:7213
0x10efaf0 ix86_expand_prologue()
        ../../gcc-12.2.0/gcc/config/i386/i386.cc:8889
0x156d7fa gen_prologue()
        ../../gcc-12.2.0/gcc/config/i386/i386.md:15525
0x10e1e65 target_gen_prologue
        ../../gcc-12.2.0/gcc/config/i386/i386.md:22860
0xb2c937 make_prologue_seq
        ../../gcc-12.2.0/gcc/function.cc:5823
0xb2caf1 thread_prologue_and_epilogue_insns()
        ../../gcc-12.2.0/gcc/function.cc:6055
0xb2d0a2 rest_of_handle_thread_prologue_and_epilogue
        ../../gcc-12.2.0/gcc/function.cc:6546
0xb2d0a2 execute
        ../../gcc-12.2.0/gcc/function.cc:6622
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:4: example.o] Error 1

Reply via email to