summaryrefslogtreecommitdiff
path: root/libgo
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-31 21:47:30 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2011-10-31 21:47:30 +0000
commit8e7354920a885b6c12db10e7770bfaa0c021b7e1 (patch)
treeb3b3ea6e82672a6e811ed88806b56ca15b662df2 /libgo
parent5f813a0af4a051421df8f04e86b7b00dc44bf203 (diff)
downloadgcc-8e7354920a885b6c12db10e7770bfaa0c021b7e1.tar.gz
syscall: Remove a couple more 3-parameter match's in mksyscall.awk.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180712 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo')
-rw-r--r--libgo/go/syscall/mksyscall.awk4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/syscall/mksyscall.awk b/libgo/go/syscall/mksyscall.awk
index 4ceb80c56a5..1b612f3fb99 100644
--- a/libgo/go/syscall/mksyscall.awk
+++ b/libgo/go/syscall/mksyscall.awk
@@ -170,7 +170,7 @@ BEGIN {
printf("\t}\n")
++carg
- if (match(cargs[carg], "^([^ ]*) ([^ ]*)$", cparam) == 0) {
+ if (split(cargs[carg], cparam) != 2) {
print loc, "bad C parameter:", cargs[carg] | "cat 1>&2"
status = 1
next
@@ -207,7 +207,7 @@ BEGIN {
}
usedr = 0
for (goresult = 1; goresults[goresult] != ""; goresult++) {
- if (match(goresults[goresult], "^([^ ]*) ([^ ]*)$", goparam) == 0) {
+ if (split(goresults[goresult], goparam) != 2) {
print loc, "bad result:", goresults[goresult] | "cat 1>&2"
status = 1
next