From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1696246-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 790851581F3
	for <garchives@archives.gentoo.org>; Sun,  1 Dec 2024 23:05:44 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id AF230E07D9;
	Sun,  1 Dec 2024 23:05:43 +0000 (UTC)
Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 6AE49E07D9
	for <gentoo-commits@lists.gentoo.org>; Sun,  1 Dec 2024 23:05:41 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D955133BF29
	for <gentoo-commits@lists.gentoo.org>; Sun,  1 Dec 2024 23:05:40 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 4024015E1
	for <gentoo-commits@lists.gentoo.org>; Sun,  1 Dec 2024 23:05:39 +0000 (UTC)
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org>
Message-ID: <1733094290.9e258378b3b596b14130a8538fc37193e3abd5e1.sam@gentoo>
Subject: [gentoo-commits] proj/crossdev:master commit in: /
X-VCS-Repository: proj/crossdev
X-VCS-Files: crossdev
X-VCS-Directories: /
X-VCS-Committer: sam
X-VCS-Committer-Name: Sam James
X-VCS-Revision: 9e258378b3b596b14130a8538fc37193e3abd5e1
X-VCS-Branch: master
Date: Sun,  1 Dec 2024 23:05:39 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 462a0f26-8249-4259-a132-354646bbee19
X-Archives-Hash: 2bf6efd84901fb29dba46360b6455805

commit:     9e258378b3b596b14130a8538fc37193e3abd5e1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Dec  1 23:04:50 2024 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Dec  1 23:04:50 2024 +0000
URL:        https://gitweb.gentoo.org/proj/crossdev.git/commit/?id=9e258378

crossdev: nvptx: disable irrelevant languages and force necessary ones on

Link: https://gcc.gnu.org/legacy-ml/gcc/2018-03/msg00122.html
Bug: https://bugs.gentoo.org/945296
Signed-off-by: Sam James <sam <AT> gentoo.org>

 crossdev | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/crossdev b/crossdev
index 887cf7a..f8f11d5 100755
--- a/crossdev
+++ b/crossdev
@@ -299,6 +299,7 @@ parse_target() {
 			WITH_DEF_HEADERS="no"
 			;;
 
+		# Offload targets
 		nvptx*)
 			KPKG="[none]"
 			BPKG="nvptx-tools"
@@ -308,11 +309,14 @@ parse_target() {
 			# They also often want Fortran.
 			STAGE_DEFAULT=${STAGE_C_CPP}
 			GUSE+=" cxx openmp fortran"
+			GFORCE+=" cxx openmp fortran"
+			# https://gcc.gnu.org/legacy-ml/gcc/2018-03/msg00122.html
+			GMASK+=" ada d go graphite modula2 rust"
 
-			# TODO: deduplicate this with newlib block below
 			GMASK+=" default-stack-clash-protection hardened ssp"
 			GUSE+=" -hardened" #687598, needs -fstack-check=specific support
 			GUSE+=" -default-stack-clash-protection -ssp" # SSP isn't supported for freestanding anyway
+
 			MULTILIB_USE="yes" #407275
 			WITH_DEF_HEADERS="no"
 			;;