Re: [PATCH v2 07/12] parisc/percpu: Work around the lack of __SIZEOF_INT128__

From
H. Peter Anvin <hpa@zytor.com>
Date
2023-06-02 17:02:22
Also in
linux-arch, linux-doc, linux-iommu, linux-s390, lkml
Reply to
Peter Zijlstra, 2023-06-02
On June 2, 2023 7:39:12 AM PDT, Peter Zijlstra [off-list ref] wrote:
quoted hunk ↗ jump to hunk
On Thu, Jun 01, 2023 at 09:29:18AM -0400, Linus Torvalds wrote:
quoted
Right now we have that "minimum gcc version" in a somewhat annoying
place: it's in the ./scripts/min-tool-version.sh file as a shell
script.
Something like so then?

---
Subject: parisc: Raise minimal GCC version
From: Peter Zijlstra <peterz@infradead.org>
Date: Fri Jun  2 16:33:54 CEST 2023

With 64bit builds depending on __SIZEOF_INT128__ raise the parisc
minimum compiler version to gcc-11.0.0.

All other 64bit architectures provide this from GCC-5.1.0 (and
probably before), except hppa64 which only started advertising this
with GCC-11.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
---
scripts/min-tool-version.sh |    6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
--- a/scripts/min-tool-version.sh
+++ b/scripts/min-tool-version.sh
@@ -17,7 +17,11 @@ binutils)
	echo 2.25.0
	;;
gcc)
-	echo 5.1.0
+	if [ "$SRCARCH" = parisc ]; then
+		echo 11.0.0
+	else
+		echo 5.1.0
+	fi
	;;
llvm)
	if [ "$SRCARCH" = s390 ]; then
Dumb question: is this only about the cpp macro or is it about __int128 existing at all?
Thread (34 messages) 34 messages, 10 authors, last reply 2023-06-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help