aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-make-slice.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-28compiler, runtime: copy slice code from Go 1.7 runtimeIan Lance Taylor1-99/+0
Change the compiler handle append as the gc compiler does: call a function to grow the slice, but otherwise assign the new elements directly to the final slice. For the current gccgo memory allocator the slice code has to call runtime_newarray, not mallocgc directly, so that the allocator sets the TypeInfo_Array bit in the type pointer. Rename the static function cnew to runtime_docnew, so that the stack trace ignores it when ignoring runtime functions. This was needed to fix the runtime/pprof tests on 386. Reviewed-on: https://go-review.googlesource.com/32218 From-SVN: r241667
2015-01-15libgo, compiler: Upgrade libgo to Go 1.4, except for runtime.Ian Lance Taylor1-1/+1
This upgrades all of libgo other than the runtime package to the Go 1.4 release. In Go 1.4 much of the runtime was rewritten into Go. Merging that code will take more time and will not change the API, so I'm putting it off for now. There are a few runtime changes anyhow, to accomodate other packages that rely on minor modifications to the runtime support. The compiler changes slightly to add a one-bit flag to each type descriptor kind that is stored directly in an interface, which for gccgo is currently only pointer types. Another one-bit flag (gcprog) is reserved because it is used by the gc compiler, but gccgo does not currently use it. There is another error check in the compiler since I ran across it during testing. gotools/: * Makefile.am (go_cmd_go_files): Sort entries. Add generate.go. * Makefile.in: Rebuild. From-SVN: r219627
2013-11-06libgo: Update to October 24 version of master library.Ian Lance Taylor1-8/+8
From-SVN: r204466
2013-10-11runtime: Report len out of range for large len when making slice.Ian Lance Taylor1-1/+4
From-SVN: r203401
2012-11-21libgo: Update to current version of master library.Ian Lance Taylor1-5/+18
From-SVN: r193688
2012-11-01compiler, runtime: More steps toward separating int and intgo.Ian Lance Taylor1-5/+5
From-SVN: r193059
2012-09-28runtime: Better detection of memory allocation request overflow.Ian Lance Taylor1-1/+1
From-SVN: r191841
2012-02-08compiler, runtime: Check make int64 args for overflow.Ian Lance Taylor1-0/+24
From-SVN: r183994
2011-11-30runtime: Copy runtime_panicstring from master library.Ian Lance Taylor1-2/+2
From-SVN: r181830
2011-10-26Update Go library to last weekly.Ian Lance Taylor1-0/+1
From-SVN: r180552
2011-09-20Fix calling make with slice whose element type is size zero.Ian Lance Taylor1-1/+2
From-SVN: r179019
2011-06-14Change builtin make to runtime call at lowering time.Ian Lance Taylor1-0/+57
Use kindNoPointers as 6g does. * Make-lang.in (go/expressions.o): Depend on $(GO_RUNTIME_H). From-SVN: r175020