diff options
| author | Keith Randall <khr@golang.org> | 2013-07-19 11:19:18 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2013-07-19 11:19:18 -0700 |
| commit | 6fc49c18540938cd4699c1eb8cb05bd00ff9f59c (patch) | |
| tree | db7220ee8c655facf9f9492e4d75137d4eb3b81b /src/pkg/runtime/funcdata.h | |
| parent | eb04df75cd87722f396fb66583279afe5abfb1ca (diff) | |
| download | go-6fc49c18540938cd4699c1eb8cb05bd00ff9f59c.tar.xz | |
runtime: cleanup: use ArgsSizeUnknown to mark all functions
whose argument size is unknown (C vararg functions, and
assembly code without an explicit specification).
We used to use 0 to mean "unknown" and 1 to mean "zero".
Now we use ArgsSizeUnknown (0x80000000) to mean "unknown".
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/11590043
Diffstat (limited to 'src/pkg/runtime/funcdata.h')
| -rw-r--r-- | src/pkg/runtime/funcdata.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pkg/runtime/funcdata.h b/src/pkg/runtime/funcdata.h index 8fcadcb611..850288bf64 100644 --- a/src/pkg/runtime/funcdata.h +++ b/src/pkg/runtime/funcdata.h @@ -11,3 +11,9 @@ // To be used in assembly. #define ARGSIZE(n) PCDATA $PCDATA_ArgSize, $n + +// ArgsSizeUnknown is set in Func.argsize to mark all functions +// whose argument size is unknown (C vararg functions, and +// assembly code without an explicit specification). +// This value is generated by the compiler, assembler, or linker. +#define ArgsSizeUnknown 0x80000000 |
