From ced760b64147d6c9e41619dd1c51626ff770d9ad Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Thu, 4 Mar 2010 15:34:25 -0800 Subject: cc: disallow ... argument unless NOSPLIT is set. check that NOSPLIT functions don't use too much stack. correct some missing NOSPLITs in the runtime library. Fixes bug reported in https://groups.google.com/group/golang-nuts/t/efff68b73941eccf R=ken2 CC=golang-dev http://codereview.appspot.com/236041 --- src/pkg/runtime/hashmap.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/pkg/runtime/hashmap.c') diff --git a/src/pkg/runtime/hashmap.c b/src/pkg/runtime/hashmap.c index 848aa650c..281601fbc 100644 --- a/src/pkg/runtime/hashmap.c +++ b/src/pkg/runtime/hashmap.c @@ -758,6 +758,7 @@ mapaccess(Hmap *h, byte *ak, byte *av, bool *pres) } // mapaccess1(hmap *map[any]any, key any) (val any); +#pragma textflag 7 void ·mapaccess1(Hmap *h, ...) { @@ -785,6 +786,7 @@ void } // mapaccess2(hmap *map[any]any, key any) (val any, pres bool); +#pragma textflag 7 void ·mapaccess2(Hmap *h, ...) { @@ -844,6 +846,7 @@ mapassign(Hmap *h, byte *ak, byte *av) } // mapassign1(hmap *map[any]any, key any, val any); +#pragma textflag 7 void ·mapassign1(Hmap *h, ...) { @@ -856,6 +859,7 @@ void } // mapassign2(hmap *map[any]any, key any, val any, pres bool); +#pragma textflag 7 void ·mapassign2(Hmap *h, ...) { @@ -934,6 +938,7 @@ mapiternext(struct hash_iter *it) } // mapiter1(hiter *any) (key any); +#pragma textflag 7 void ·mapiter1(struct hash_iter *it, ...) { @@ -973,6 +978,7 @@ mapiterkey(struct hash_iter *it, void *ak) } // mapiter2(hiter *any) (key any, val any); +#pragma textflag 7 void ·mapiter2(struct hash_iter *it, ...) { -- cgit v1.2.3