aboutsummaryrefslogtreecommitdiff
path: root/libgo/runtime/go-append.c
AgeCommit message (Collapse)AuthorFilesLines
2016-10-28compiler, runtime: copy slice code from Go 1.7 runtimeIan Lance Taylor1-74/+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
2014-06-06libgo: Merge to master revision 19184.Ian Lance Taylor1-1/+4
The next revision, 19185, renames several runtime files, and will be handled in a separate change. From-SVN: r211328
2013-10-02runtime: Fix append of slice with elements of zero size.Ian Lance Taylor1-6/+6
From-SVN: r203140
2012-11-01compiler, runtime: More steps toward separating int and intgo.Ian Lance Taylor1-2/+2
From-SVN: r193059
2012-09-28runtime: Better detection of memory allocation request overflow.Ian Lance Taylor1-0/+3
From-SVN: r191841
2011-11-30runtime: Copy runtime_panicstring from master library.Ian Lance Taylor1-1/+1
From-SVN: r181830
2011-10-26Update Go library to last weekly.Ian Lance Taylor1-0/+1
From-SVN: r180552
2011-04-18libgo: Fix append declaration.Ian Lance Taylor1-1/+1
From Rainer Orth. From-SVN: r172659
2011-04-13Unify handling of runtime support functions.Ian Lance Taylor1-5/+5
This introduces the new approach, and rewrites the lowering code which uses runtime functions. The code which calls runtime functions at GENERIC conversion time is not yet rewritten. From-SVN: r172396
2010-12-17Avoid always splitting the stack when calling append and copy.Ian Lance Taylor1-19/+24
From-SVN: r167970
2010-12-03Add Go frontend, libgo library, and Go testsuite.Ian Lance Taylor1-0/+62
gcc/: * gcc.c (default_compilers): Add entry for ".go". * common.opt: Add -static-libgo as a driver option. * doc/install.texi (Configuration): Mention libgo as an option for --enable-shared. Mention go as an option for --enable-languages. * doc/invoke.texi (Overall Options): Mention .go as a file name suffix. Mention go as a -x option. * doc/frontends.texi (G++ and GCC): Mention Go as a supported language. * doc/sourcebuild.texi (Top Level): Mention libgo. * doc/standards.texi (Standards): Add section on Go language. Move references for other languages into their own section. * doc/contrib.texi (Contributors): Mention that I contributed the Go frontend. gcc/testsuite/: * lib/go.exp: New file. * lib/go-dg.exp: New file. * lib/go-torture.exp: New file. * lib/target-supports.exp (check_compile): Match // Go. From-SVN: r167407