summaryrefslogtreecommitdiff
path: root/src/lib9
Commit message (Collapse)AuthorAgeFilesLines
* lib9: format %#04x, 0 as 0x0000 not 000000.Russ Cox2014-07-231-6/+0
| | | | | | | | | | This matches Go's fmt.Printf instead of ANSI C's dumb rules. It makes the -S output from C liblink match Go's liblink. LGTM=minux R=minux CC=golang-codereviews https://codereview.appspot.com/112600043
* lib9: restore argv0 initialization code.Shenghou Ma2014-04-211-1/+1
| | | | | | | | | `GOARCH=arm go tool 6c` used to give "<prog>: cannot use 6c with GOARCH=arm" LGTM=r R=golang-codereviews, r CC=golang-codereviews https://codereview.appspot.com/89330043
* lib9/utf: bring C environment up to Unicode 6.3.0Rob Pike2014-02-253-5/+4
| | | | | | | LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/68820043
* lib9: fix Solaris buildDavid du Colombier2014-02-131-1/+0
| | | | | | | | | | | | In file included from src/lib9/utf/utfecpy.c:17:0: src/lib9/utf/utfdef.h:28:0: error: "nil" redefined [-Werror] In file included from src/lib9/utf/utfrrune.c:17:0: src/lib9/utf/utfdef.h:28:0: error: "nil" redefined [-Werror] LGTM=bradfitz R=golang-codereviews, bradfitz CC=golang-codereviews https://codereview.appspot.com/63410043
* lib9: enable on Plan 9David du Colombier2014-02-1334-0/+64
| | | | | | | | | This change depends on CL 57170052. LGTM=rsc R=rsc, bradfitz CC=golang-codereviews https://codereview.appspot.com/60840049
* lib9: fix inconsistencies and warnings on Plan 9David du Colombier2014-02-1310-13/+47
| | | | | | | | | | | | | warning: src/lib9/fmt/dorfmt.c:64 unreachable code RETURN warning: src/lib9/fmt/fltfmt.c:184 set and not used: p warning: src/lib9/utf/utflen.c:35 unreachable code RETURN warning: src/lib9/utf/utfrrune.c:45 unreachable code RETURN warning: src/lib9/utf/utfrune.c:44 unreachable code RETURN LGTM=rsc R=rsc, iant, gobot CC=golang-codereviews https://codereview.appspot.com/57170052
* lib9, libmach, cmd/dist, go/build: add support for GOOS=solarisAram H?v?rneanu2014-01-072-2/+2
| | | | | | | | | | | | | | This change adds solaris to the list of supported operating systems and allows cmd/dist to be built on Solaris. This CL has to come first because we want the tools to ignore solaris-specific files until the whole port is integrated. R=golang-codereviews, jsing, rsc, minux.ma CC=golang-codereviews https://codereview.appspot.com/35900045 Committer: Joel Sing <jsing@google.com>
* all: compiler/bootstrap for dragonfly/amd64Joel Sing2013-08-242-2/+2
| | | | | | | | Add dragonfly/amd64 support to the Go compiler, bootstrap and GOOS list. R=devon.odell, bradfitz CC=golang-dev https://codereview.appspot.com/12796050
* libmach,lib9: override unused parameter warnings (fixes windows build)Alex Brainman2013-07-203-0/+6
| | | | | | R=golang-dev, dave CC=golang-dev https://codereview.appspot.com/11620044
* lib9: restore printing of signed integersRuss Cox2013-06-301-3/+3
| | | | | | | | | | | | A casualty of https://codereview.appspot.com/10195044. If x is an 32-bit int and u is a 64-bit ulong, u = (uint)x // converts to uint before extension, so zero fills u = (ulong)x // sign-extends TBR=iant, r CC=golang-dev https://codereview.appspot.com/10814043
* lib9: avoid all -Wconversion warningsIan Lance Taylor2013-06-2533-161/+165
| | | | | | | | | | | Built after adding -Wconversion to the list of compiler arguments used when building. I believe these are all OK assuming we will not change the API. There is no effort to detect overflow due to very long strings. R=golang-dev, dave, rsc, r CC=golang-dev https://codereview.appspot.com/10195044
* lib9/utf: remove unneccesary includesAnthony Martin2013-05-317-10/+1
| | | | | | R=golang-dev, r, bradfitz CC=golang-dev https://codereview.appspot.com/8651043
* lib9: add newline to exec error messageIan Lance Taylor2013-04-092-2/+2
| | | | | | R=golang-dev, bradfitz, r CC=golang-dev https://codereview.appspot.com/8573043
* lib9: handle empty TMPDIR more gracefully.Albert Strasheim2013-04-071-1/+1
| | | | | | | | | | | Before, an empty TMPDIR would lead to: cannot create <nil>/go.o: No such file or directory R=golang-dev, iant, dave, bradfitz CC=golang-dev https://codereview.appspot.com/8355045 Committer: Brad Fitzpatrick <bradfitz@golang.org>
* lib9/utf: Remove superfluous header inclusion.Lucio De Re2013-03-311-2/+0
| | | | | | | | | | <stdint.h> does not seem to be needed. R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/8178044 Committer: Brad Fitzpatrick <bradfitz@golang.org>
* cmd/dist, cmd/ld: GO_EXTLINK_ENABLED=0 defaults to -linkmode=internalIan Lance Taylor2013-03-291-0/+6
| | | | | | | | | | | | Change build system to set GO_EXTLINK_ENABLED=0 by default for OS X 10.6, since the system linker has a bug and can not handle the object files generated by 6l. Fixes issue 5130. R=golang-dev, r CC=golang-dev https://codereview.appspot.com/8183043
* lib9, cmd/dist, cmd/ld: Plan 9: fix buildAkshat Kumar2013-03-112-4/+4
| | | | | | | | | | | | | | | | | lib9: fix runcmd, removeall, and tempdir functions cmd/dist: Include run_plan9.c and tempdir_plan9.c from lib9 for build, and in general consider file names containing "plan9" for building. cmd/ld: provide function args for the new functions from lib9. R=rsc, rminnich, ality, bradfitz CC=golang-dev https://codereview.appspot.com/7666043 Committer: Russ Cox <rsc@golang.org>
* lib9: fix windows build (don't use runesmprint)Russ Cox2013-03-071-10/+8
| | | | | | TBR=golang-dev CC=golang-dev https://codereview.appspot.com/7575046
* lib9: add mktempdir, removeall, runprogRuss Cox2013-03-067-0/+390
| | | | | | R=golang-dev, bradfitz CC=golang-dev https://codereview.appspot.com/7523043
* all: clean up C function prototypesAnthony Martin2013-02-263-6/+13
| | | | | | R=minux.ma, rsc, akumar, bradfitz CC=golang-dev https://codereview.appspot.com/7313070
* lib9: fix build for windowsShenghou Ma2013-02-061-1/+2
| | | | | | R=golang-dev, rsc CC=golang-dev https://codereview.appspot.com/7311044
* lib9/main.c: don't show the crash dialog on windowsShenghou Ma2013-02-031-0/+17
| | | | | | | | Fixes issue 3202. (Or rather, work around issue 3202) R=alex.brainman, rsc CC=golang-dev https://codereview.appspot.com/7202053
* lib9: declare __fixargv0 before use in flag.cAkshat Kumar2013-01-222-36/+8
| | | | | | | | | | | | | The Plan 9 compilers complain about not having type information for the function, which sets off type signature problems during the linking stage. R=rsc, ality, iant CC=golang-dev https://codereview.appspot.com/7058054 Committer: Russ Cox <rsc@golang.org>
* cmd/5l, cmd/6l, cmd/8l, cmd/cc, cmd/gc: new flag parsingRuss Cox2013-01-061-0/+300
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds a flag parser that matches the semantics of Go's package flag. It also changes the linkers and compilers to use the new flag parser. Command lines that used to work, like 8c -FVw 6c -Dfoo 5g -I/foo/bar now need to be split into separate arguments: 8c -F -V -w 6c -D foo 5g -I /foo/bar The new spacing will work with both old and new tools. The new parser also allows = for arguments, as in 6c -D=foo 5g -I=/foo/bar but that syntax will not work with the old tools. In addition to matching standard Go binary flag parsing, the new flag parser generates more detailed usage messages and opens the door to long flag names. The recently added gc flag -= has been renamed -complete. R=remyoudompheng, daniel.morsing, minux.ma, iant CC=golang-dev https://codereview.appspot.com/7035043
* cmd/dist, cmd/8g: implement GO386=387/sse to choose FPU flavour.R?my Oudompheng2013-01-021-0/+6
| | | | | | | | | | | | | | | A new environment variable GO386 is introduced to choose between code generation targeting 387 or SSE2. No auto-detection is performed and the setting defaults to 387 to preserve previous behaviour. The patch is a reorganization of CL6549052 by rsc. Fixes issue 3912. R=minux.ma, rsc CC=golang-dev https://codereview.appspot.com/6962043
* lib9: remove unreferenced externs and getuser()Carl Mastrangelo2012-11-081-43/+0
| | | | | | | | R=golang-dev, dave, rsc CC=golang-dev http://codereview.appspot.com/6820115 Committer: Russ Cox <rsc@golang.org>
* src/lib9/utf: update to Unicode 6.2.0Rob Pike2012-10-313-27/+101
| | | | | | | | Fixes issue 2874. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6820068
* lib9, cmd/dist, cmd/5l: embed GOARM into cmd/5l and auto detect GOARMShenghou Ma2012-10-221-0/+6
| | | | | | R=rsc, dave CC=golang-dev http://codereview.appspot.com/6638043
* lib9/fmt: do not put a main symbol into lib9.aRuss Cox2012-09-241-0/+2
| | | | | | | | Fixes issue 4143. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/6541064
* cmd/gc: string conversion for surrogatesRob Pike2012-08-301-5/+13
| | | | | | | | | This is required by the spec to produce the replacement char. The fix lies in lib9's rune code. R=golang-dev, nigeltao, rsc CC=golang-dev http://codereview.appspot.com/6443109
* lib9: fix memory leak in p9getwd()Shenghou Ma2012-06-051-2/+1
| | | | | | | | | although the comment says it uses libc's getenv, without NOPLAN9DEFINES it actually uses p9getenv which strdups. R=golang-dev, dave, rsc CC=golang-dev http://codereview.appspot.com/6285046
* lib9: fix warning under clang 3.1Dave Cheney2012-04-181-2/+2
| | | | | | | | Fixes issue 3534. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/6035054
* all: remove some references to Make.inc etc.Rob Pike2012-03-071-8/+6
| | | | | | | | There are a few more but these are the easiest ones. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5756067
* build: delete make paraphernaliaRuss Cox2012-02-061-119/+2
| | | | | | | | | | As a convenience to people working on the tools, leave Makefiles that invoke the go dist tool appropriately. They are not used during the build. R=golang-dev, bradfitz, n13m3y3r, gustavo CC=golang-dev http://codereview.appspot.com/5636050
* lib9/utf: make safe for automatic buildRuss Cox2012-02-035-2903/+3
| | | | | | | | | | Add // +build ignore to mkrunetype.c, rename runetypebody to be .h since it is #included, delete old runetypebody tables. R=golang-dev, bradfitz CC=golang-dev http://codereview.appspot.com/5627043
* lib9: make safe for automatic buildsRuss Cox2012-02-019-77/+11
| | | | | | R=golang-dev, adg, bradfitz CC=golang-dev http://codereview.appspot.com/5615046
* build: move the "-c" flag into HOST_CFLAGSAnthony Martin2012-01-311-3/+3
| | | | | | | | | On Plan 9 this flag is used to discover constant expressions in "if" statements. R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/5601060
* lib9: fix windows buildRuss Cox2011-11-071-1/+1
| | | | | | R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5362045
* lib9: add ctimeRuss Cox2011-11-072-0/+29
| | | | | | | | ctime differs across Unix vs Plan 9 so add to portability library R=golang-dev, r CC=golang-dev http://codereview.appspot.com/5363043
* gc: changes to export format in preparation for inlining.Luuk van Dijk2011-10-082-33/+21
| | | | | | | | | string literals used as package qualifiers are now prefixed with '@' which obviates the need for the extra ':' before tags. R=rsc, gri, lvd CC=golang-dev http://codereview.appspot.com/5129057
* build: fix unused parametersRuss Cox2011-08-251-0/+1
| | | | | | | | | Found with gcc 4.6 -Wunused -Wextra but should be applicable to Plan 9 too. R=ken2 CC=golang-dev http://codereview.appspot.com/4958044
* build: fixes for mingw-w64Wei Guangjing2011-07-251-1/+1
| | | | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/4742042 Committer: Russ Cox <rsc@golang.org>
* lib9: use $PWD in getwdRuss Cox2011-07-221-0/+21
| | | | | | | | | | | | This makes the full file paths recorded by 6g prefer $PWD over the actual directory name (relevant when $PWD gets to the current directory via symlinks). It's what everyone else does, and what people expect. R=iant, r, mattn.jp CC=golang-dev http://codereview.appspot.com/4824041
* lib9: stop build if ../version.bash failsAlex Brainman2011-07-011-1/+2
| | | | | | | | R=golang-dev, m, rsc CC=golang-dev http://codereview.appspot.com/4639091 Committer: Russ Cox <rsc@golang.org>
* lib9/create.c: delete unused variableRob Pike2011-04-131-2/+1
| | | | | | | | fixes build with GCC4.6 R=adg CC=golang-dev http://codereview.appspot.com/4396048
* lib9, libmach: Change GOOS references to GOHOSTOSEvan Shaw2011-03-151-1/+1
| | | | | | | | | | This makes it possible to build Windows binaries on non-Windows OSes. R=golang-dev, rsc1, rsc CC=golang-dev http://codereview.appspot.com/4271046 Committer: Russ Cox <rsc@golang.org>
* lib9: update to Unicode 6.0.0Russ Cox2011-01-315-56/+1588
| | | | | | R=r CC=golang-dev http://codereview.appspot.com/4121042
* libutf: update to Unicode 5.2.0 to match pkg/unicodeAnthony Martin2010-11-012-7/+1561
| | | | | | | | R=rsc, r, PeterGo, r2 CC=golang-dev http://codereview.appspot.com/2753045 Committer: Russ Cox <rsc@golang.org>
* mkrunetype: install a Makefile and tweak it slightly so it can be built.Rob Pike2010-10-312-11/+24
| | | | | | R=rsc CC=golang-dev http://codereview.appspot.com/2813041
* build: test for _WIN32, not _MINGW32Joe Poirier2010-09-083-4/+4
| | | | | | | | | | | | | | | | | | | Use OS rather than compiler specific flag the same way that __FreeBSD__, __APPLE__, __OpenBSD__, and __linux__ are used. _WIN32 is defined by GCC (and others) on windows for Win32 and Win64 applications. _WIN32 is set by default for several other windows based compilers: DMC, MSVC, Intel, Watcom, LCC. Although the change is for consistency, it allows the Go tools to be compiled with non-Mingw GCC distributions and non-GCC compilers that support the GCC extensions. R=rsc, brainman, vcc CC=golang-dev http://codereview.appspot.com/2168043 Committer: Russ Cox <rsc@golang.org>