https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120145
--- Comment #23 from Kirill A. Korinsky <kirill at korins dot ky> --- Eric, I have removed this line from patches and rebuild the same commit. It fails as well. (gdb) r Starting program: /usr/ports/pobj/gcc-8.4.0/build-sparc64/gcc/cc1plus -nostdinc -v -iprefix /usr/ports/pobj/gcc-8.4.0/build-sparc64/gcc/../lib/gcc/sparc64-unknown-openbsd/10.0.0/ -isystem /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include -isystem /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include-fixed -D__sparc_v9__ /dev/null -dumpbase null -mcpu=ultrasparc -auxbase-strip /dev/null -version -fself-test=/usr/ports/pobj/gcc-8.4.0/gcc-a8b98e2fc074dfb6c9419efbe70ce4021a04f356/gcc/testsuite/selftests -o /dev/null GNU C++14 (GCC) version 10.0.0 20190613 (experimental) (sparc64-unknown-openbsd) compiled by GNU C version 8.4.0, GMP version 6.3.0, MPFR version 4.2.2, MPC version 1.2.1, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 #include "..." search starts here: #include <...> search starts here: /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include-fixed End of search list. GNU C++14 (GCC) version 10.0.0 20190613 (experimental) (sparc64-unknown-openbsd) compiled by GNU C version 8.4.0, GMP version 6.3.0, MPFR version 4.2.2, MPC version 1.2.1, isl version none GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 options passed: -nostdinc -v -iprefix /usr/ports/pobj/gcc-8.4.0/build-sparc64/gcc/../lib/gcc/sparc64-unknown-openbsd/10.0.0/ -isystem /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include -isystem /usr/ports/pobj/gcc-8.4.0/build-sparc64/./gcc/include-fixed -D__sparc_v9__ /dev/null -mcpu=ultrasparc -auxbase-strip /dev/null -fself-test=/usr/ports/pobj/gcc-8.4.0/gcc-a8b98e2fc074dfb6c9419efbe70ce4021a04f356/gcc/testsuite/selftests options enabled: -fPIC -fPIE -faggressive-loop-optimizations -fassume-phsa -fauto-inc-dec -fcommon -fdelete-null-pointer-checks -fearly-inlining -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fexceptions -ffp-int-builtin-inexact -ffunction-cse -fgcse-lm -fgnu-runtime -fgnu-unique -fident -finline-atomics -fipa-stack-alignment -fira-hoist-pressure -fira-share-spill-slots -fivopts -fkeep-static-consts -fleading-underscore -flifetime-dse -fmath-errno -fmerge-debug-strings -fpeephole -fplt -fprefetch-loop-arrays -freg-struct-return -fsched-critical-path-heuristic -fsched-dep-count-heuristic -fsched-group-heuristic -fsched-interblock -fsched-last-insn-heuristic -fsched-rank-heuristic -fsched-spec -fsched-spec-insn-heuristic -fsched-stalled-insns-dep -fschedule-fusion -fsemantic-interposition -fshow-column -fshrink-wrap-separate -fsigned-zeros -fsplit-ivs-in-unroller -fssa-backprop -fstack-protector-strong -fstdarg-opt -fstrict-volatile-bitfields -fsync-libcalls -fsyntax-only -ftrapping-math -ftree-cselim -ftree-forwprop -ftree-loop-if-convert -ftree-loop-im -ftree-loop-ivcanon -ftree-loop-optimize -ftree-parallelize-loops= -ftree-phiprop -ftree-reassoc -ftree-scev-cprop -funit-at-a-time -fvar-tracking -fvar-tracking-assignments -fzero-initialized-in-bss -m64 -mapp-regs -mfpu -mfsmuld -mlra -mptr64 -msoft-quad-float -mstack-bias -muser-mode Compiler executable checksum: cf0f82cc7c9fcf63ecbf4337c6894523 {GC 1479k -> 1204k} {GC 1204k -> 1204k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 1205k -> 1205k} {GC 9627k -> 1218k} Program received signal SIGSEGV, Segmentation fault. 0x000000210a8f7b10 in _Z20notice_global_symbolP9tree_node+0xfffffffffd0084fc@plt () (gdb) bt #0 0x000000210a8f7b10 in _Z20notice_global_symbolP9tree_node+0xfffffffffd0084fc@plt () Backtrace stopped: previous frame identical to this frame (corrupt stack?) (gdb) disassemble Dump of assembler code for function _Z20notice_global_symbolP9tree_node+0xfffffffffd0084fc@plt: 0x000000210a8f7b00 <+0>: mov %o7, %g5 0x000000210a8f7b04 <+4>: call 0x210a8f7b0c <_Z20notice_global_symbolP9tree_node+0xfffffffffd0084fc@plt+12> 0x000000210a8f7b08 <+8>: nop 0x000000210a8f7b0c <+12>: ldx [ %o7 + 0x2c ], %g1 => 0x000000210a8f7b10 <+16>: jmpl %o7 + %g1, %g1 0x000000210a8f7b14 <+20>: mov %g5, %o7 End of assembler dump. (gdb) p/x $g1 $1 = 0xfb8ee10cffeffffc (gdb) x/x $g1 0xfb8ee10cffeffffc: Cannot access memory at address 0xfb8ee10cffeffffc (gdb) x/gx $o7 + 0x2c 0x210a8f7b30 <_z20notice_global_symbolp9tree_n...@got.plt>: 0xfb8ee10cffeffffc (gdb) p/x $o7 + 0x2c $2 = 0x210a8f7b30 (gdb)