diff options
author | Russ Cox <rsc@golang.org> | 2010-03-04 15:34:25 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-03-04 15:34:25 -0800 |
commit | ced760b64147d6c9e41619dd1c51626ff770d9ad (patch) | |
tree | 727ed97d2f2b8ca6628785f51b8bd79220ceeb8d /src/pkg/runtime/print.c | |
parent | fbed511d5c2a061457f2a652ce75baba05bd035e (diff) | |
download | golang-ced760b64147d6c9e41619dd1c51626ff770d9ad.tar.gz |
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
Diffstat (limited to 'src/pkg/runtime/print.c')
-rw-r--r-- | src/pkg/runtime/print.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/print.c b/src/pkg/runtime/print.c index d721f3953..92f49fba9 100644 --- a/src/pkg/runtime/print.c +++ b/src/pkg/runtime/print.c @@ -157,6 +157,7 @@ vprintf(int8 *s, byte *arg) // unlock(&debuglock); } +#pragma textflag 7 void ·printf(String s, ...) { |