libgo: don't copy semt into runtime.inc

https://gcc.gnu.org/PR81449 reports a problem with the definition semt
in runtime.inc on some systems. Since the C code in libgo/runtime
doesn't need semt, just don't copy it into runtime.inc.

Change-Id: I0e87fd737b19d8217a603e50aeac259122ed021c
Reviewed-on: https://go-review.googlesource.com/48593
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/Makefile.am b/libgo/Makefile.am
index 0f9881f..b94ac0c 100644
--- a/libgo/Makefile.am
+++ b/libgo/Makefile.am
@@ -543,6 +543,8 @@
 
 # _Complex_lock and _Reader_lock are Go translations of some AIX system
 # types and should not be exported back to C
+# semt is a Go translation of the C type sem_t; it fails to convert on
+# some systems and need not be exported back to C.
 # sigset conflicts with system type sigset on AIX, so we need to rename it
 runtime.inc: s-runtime-inc; @true
 s-runtime-inc: runtime.lo Makefile
@@ -551,7 +553,7 @@
 	for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
 	  grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
 	done
-	for TYPE in _Complex_lock _Reader_lock; do \
+	for TYPE in _Complex_lock _Reader_lock semt; do \
 	  sed -e '/struct '$${TYPE}' {/,/^}/s/^.*$$//' runtime.inc.tmp2 > runtime.inc.tmp3; \
 	  mv runtime.inc.tmp3 runtime.inc.tmp2; \
 	done
diff --git a/libgo/Makefile.in b/libgo/Makefile.in
index 2452f96..ba0a923 100644
--- a/libgo/Makefile.in
+++ b/libgo/Makefile.in
@@ -3093,6 +3093,8 @@
 
 # _Complex_lock and _Reader_lock are Go translations of some AIX system
 # types and should not be exported back to C
+# semt is a Go translation of the C type sem_t; it fails to convert on
+# some systems and need not be exported back to C.
 # sigset conflicts with system type sigset on AIX, so we need to rename it
 runtime.inc: s-runtime-inc; @true
 s-runtime-inc: runtime.lo Makefile
@@ -3101,7 +3103,7 @@
 	for pattern in '_[GP][a-z]' _Max _Lock _Sig _Trace _MHeap _Num; do \
 	  grep "#define $$pattern" runtime.inc.tmp >> runtime.inc.tmp2; \
 	done
-	for TYPE in _Complex_lock _Reader_lock; do \
+	for TYPE in _Complex_lock _Reader_lock semt; do \
 	  sed -e '/struct '$${TYPE}' {/,/^}/s/^.*$$//' runtime.inc.tmp2 > runtime.inc.tmp3; \
 	  mv runtime.inc.tmp3 runtime.inc.tmp2; \
 	done
diff --git a/libgo/configure b/libgo/configure
index 48feebd..cfdcd74 100755
--- a/libgo/configure
+++ b/libgo/configure
@@ -13773,7 +13773,7 @@
     esac
     case "${host}" in
     mips*el-*-*)
-	GOARCH="${GOARCH}le"
+        GOARCH="${GOARCH}le"
         ;;
     *)
 	GOARCH_BIGENDIAN=1