summaryrefslogtreecommitdiff
path: root/src/cmd/cgo
AgeCommit message (Collapse)AuthorFilesLines
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer5-127/+127
R=rsc, r http://go/go-review/1025029
2009-11-06- fine-tuning of one-line func heuristic (nodes.go)Robert Griesemer2-6/+2
- enabled for function declarations (not just function literals) - applied gofmt -w $GOROOT/src (look for instance at src/pkg/debug/elf/elf.go) R=r, rsc CC=go-dev http://go/go-review/1026006
2009-11-05gofmt'ed 6l 8l cgoRobert Griesemer1-25/+27
R=r http://go/go-review/1020002
2009-11-04doc doc docRuss Cox1-0/+35
R=r http://go/go-review/1016039
2009-11-02Fix cgo for GCC 4.4Adam Langley1-6/+6
Firstly, with -Werror, GCC switched to printing warnings starting with "error:". Widening the string matches solves this as the messages are otherwise unchanged. Secondly, GCC 4.4 outputs DWARF sections with with NUL bytes in all the offsets and requires the relocation section for .debug_info to be processed in order to result in valid DWARF data. Thus we add minimal handling for relocation sections, which is sufficient for our needs. BUG=1 Fixes issue 1. R=rsc, iant CC=go-dev http://go/go-review/1017003
2009-10-30fix buildRobert Griesemer1-4/+4
R=agl CC=rsc http://go/go-review/1016008
2009-10-26Hack to make cgo's generated go code compile when there are noStephen Ma1-4/+5
unsafe.Pointer references inside the C declarations. R=go-dev APPROVED=rsc DELTA=1 (1 added, 0 deleted, 0 changed) OCL=36063 CL=36063
2009-10-22- make printer interface easily extensible w/o breaking clients (in the future)Robert Griesemer1-4/+4
- replacement for p4 CL 35999 (abandoned) R=rsc http://go/go-review/1012010
2009-10-22go/printer:Robert Griesemer1-4/+4
- handle HTML tagging via (client-installable) Stylers go/doc: - basic styler support - some factoring - ready to contain the search code (but for now excluded) doc/style.css: - updated doc/go_spec.css: - cleanup: replace deprecated uses of <font> tag with <span> tag R=rsc DELTA=302 (160 added, 62 deleted, 80 changed) OCL=35973 CL=35996
2009-10-06apply gofmt to the LGTM-marked files from 34501Russ Cox4-43/+40
that have not changed since I applied gofmt. R=gri DELTA=456 (77 added, 3 deleted, 376 changed) OCL=35378 CL=35383
2009-10-038c, 8l dynamic loading support.Russ Cox4-14/+43
better mach binaries. cgo working on darwin+linux amd64+386. eliminated context switches - pi is 30x faster. add libcgo to build. on snow leopard: - non-cgo binaries work; all tests pass. - cgo binaries work on amd64 but not 386. R=r DELTA=2031 (1316 added, 626 deleted, 89 changed) OCL=35264 CL=35304
2009-09-30cgo working on linux/386Russ Cox4-12/+27
R=r DELTA=70 (47 added, 4 deleted, 19 changed) OCL=35167 CL=35171
2009-09-30cgo: works on amd64.Russ Cox6-552/+53
integrated into Makefiles (see misc/cgo/gmp/Makefile). R=r DELTA=1110 (540 added, 525 deleted, 45 changed) OCL=35153 CL=35158
2009-09-24cgo checkpoint.Russ Cox7-67/+846
can write all 3 output files and then compile them by hand. R=r DELTA=919 (841 added, 16 deleted, 62 changed) OCL=34954 CL=34973
2009-09-18cgo: can look up C identifier kind (type or value) and typeRuss Cox7-310/+638
gmp.go:197:4: type mpz_t C type mpz_t gmp.go:205:2: call mpz_init C value func(mpz_ptr) void gmp.go:206:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void gmp.go:221:2: call mpz_init C value func(mpz_ptr) void gmp.go:227:7: call size_t C type size_t gmp.go:228:2: call mpz_export C value func(*void, *size_t, int, size_t, int, size_t, mpz_srcptr) *void gmp.go:235:13: call mpz_sizeinbase C value func(mpz_srcptr, int) size_t gmp.go:241:2: call mpz_set C value func(mpz_ptr, mpz_srcptr) void gmp.go:252:3: call mpz_import C value func(mpz_ptr, size_t, int, size_t, int, size_t, *const void) void gmp.go:261:2: call mpz_set_si C value func(mpz_ptr, long int) void gmp.go:273:5: call mpz_set_str C value func(mpz_ptr, *const char, int) int gmp.go:282:9: call mpz_get_str C value func(*char, int, mpz_srcptr) *char gmp.go:287:3: call mpz_clear C value func(mpz_ptr) void gmp.go:302:2: call mpz_add C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:311:2: call mpz_sub C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:320:2: call mpz_mul C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:329:2: call mpz_tdiv_q C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:339:2: call mpz_tdiv_r C value func(mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:348:2: call mpz_mul_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:356:2: call mpz_div_2exp C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:367:3: call mpz_pow_ui C value func(mpz_ptr, mpz_srcptr, long unsigned int) void gmp.go:369:3: call mpz_powm C value func(mpz_ptr, mpz_srcptr, mpz_srcptr, mpz_srcptr) void gmp.go:378:2: call mpz_neg C value func(mpz_ptr, mpz_srcptr) void gmp.go:386:2: call mpz_abs C value func(mpz_ptr, mpz_srcptr) void gmp.go:404:9: call mpz_cmp C value func(mpz_srcptr, mpz_srcptr) int gmp.go:413:2: call mpz_tdiv_qr C value func(mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void gmp.go:426:2: call mpz_gcdext C value func(mpz_ptr, mpz_ptr, mpz_ptr, mpz_srcptr, mpz_srcptr) void R=r DELTA=938 (628 added, 308 deleted, 2 changed) OCL=34733 CL=34791
2009-09-16first step toward cgo tool.Russ Cox3-0/+746
can extract import "C" doc comment and all references to C package. ; cgo gmp.go | sort #include <gmp.h> gmp.go:197:4: mpz_t as type gmp.go:205:2: mpz_init as call gmp.go:206:2: mpz_set as call gmp.go:221:2: mpz_init as call gmp.go:227:7: size_t as call gmp.go:228:2: mpz_export as call gmp.go:235:13: mpz_sizeinbase as call gmp.go:241:2: mpz_set as call gmp.go:252:3: mpz_import as call gmp.go:261:2: mpz_set_si as call gmp.go:273:5: mpz_set_str as call gmp.go:282:9: mpz_get_str as call gmp.go:287:3: mpz_clear as call gmp.go:302:2: mpz_add as call gmp.go:311:2: mpz_sub as call gmp.go:320:2: mpz_mul as call gmp.go:329:2: mpz_tdiv_q as call gmp.go:339:2: mpz_tdiv_r as call gmp.go:348:2: mpz_mul_2exp as call gmp.go:356:2: mpz_div_2exp as call gmp.go:367:3: mpz_pow as call gmp.go:369:3: mpz_powm as call gmp.go:378:2: mpz_neg as call gmp.go:386:2: mpz_abs as call gmp.go:404:9: mpz_cmp as call gmp.go:413:2: mpz_tdiv_qr as call gmp.go:426:2: mpz_gcdext as call ; R=r DELTA=746 (746 added, 0 deleted, 0 changed) OCL=34710 CL=34714