$NetBSD: patch-gcc_config_nvptx_gen-opt.sh,v 1.1 2024/04/26 13:05:01 micha Exp $

Fix nonportable syntax in "[" command.
<https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105831>

--- gcc/config/nvptx/gen-opt.sh.orig	2022-05-06 07:30:57.000000000 +0000
+++ gcc/config/nvptx/gen-opt.sh
@@ -56,7 +56,7 @@ EnumValue
 Enum(ptx_isa) String(sm_$sm) Value(PTX_ISA_SM$sm)
 EOF
 
-    if [ "$sm" == "$last" ]; then
+    if [ "$sm" = "$last" ]; then
 	# Don't end with trailing empty line.
 	continue
     fi
