CVS: cvs.openbsd.org: ports

Kirill A. Korinsky <[email protected]>
Newsgroups gmane.os.openbsd.ports.cvs
Message-ID <[email protected]>
CVSROOT:	/cvs
Module name:	ports
Changes by:	[email protected]	2026/08/21 07:54:27

Modified files:
	lang/gcc/16    : Makefile 
	lang/gcc/16/patches: patch-gcc_config_sparc_sparc_cc 

Log message:
lang/gcc/16: fix ICE in gcc by compiling LLVM-22 at sparc64

Seems that sparc_legitimize_pic_address can place a LABEL_REF in
UNSPEC_MOVE_PIC and UNSPEC_MOVE_GOTDATA, while
sparc_delegitimize_address assumes that both contain a SYMBOL_REF.

So, it needs to accept LABEL_REF for the PIC cases and keep UNSPEC_TLSLE
restricted to SYMBOL_REF.

This fixes an ICE during RTL combine when compiling PIC code on sparc64.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.