summaryrefslogtreecommitdiff
path: root/src/cmd
AgeCommit message (Collapse)AuthorFilesLines
2010-01-26gc: fix chan <- chan precedence.Russ Cox3-46/+47
also allow func() func(). R=ken2 CC=golang-dev http://codereview.appspot.com/194078
2010-01-25salvaging 183105 from dead clientKai Backman3-8/+9
a number of fixes for arm elf generation in 5l. -T now works as advertised, -D now works properly. R=rsc CC=golang-dev http://codereview.appspot.com/194076
2010-01-25ld: typoRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/194073
2010-01-25cc: correct handling of leading ·Russ Cox2-9/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193081 Committer: Russ Cox <rsc@golang.org>
2010-01-25eliminate package global name spaceRuss Cox3-13/+17
R=ken2 CC=golang-dev http://codereview.appspot.com/194071
2010-01-25runtime, type switch: eliminate package global name space assumptionRuss Cox5-150/+191
bonus: type switch now detects multiple uses of identical interface types. bonus: interface types are now order-independent, following the spec. R=ken2 CC=golang-dev http://codereview.appspot.com/194053
2010-01-255l, 6l, 8l: accept only one object fileRuss Cox3-14/+12
(package main; others are pulled in automatically) R=ken2 CC=golang-dev http://codereview.appspot.com/194069
2010-01-25ld: do not load the same object file multiple times.Russ Cox4-3/+27
eliminates spurious multiple initialization errors. give more information in the multiple init errors that remain. Fixes issue 87. R=r CC=golang-dev http://codereview.appspot.com/194052
2010-01-24gc: record full package paths in runtime type dataRuss Cox5-11/+57
detect compilation of special package runtime with compiler flag instead of package name. R=ken2 CC=golang-dev http://codereview.appspot.com/193080
2010-01-24gc: bug247, reported by robRuss Cox1-38/+40
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox4-54/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox36-421/+672
5g/6g/8g: add import statements to export metadata, mapping package path to package name. recognize "" as the path of the package in export metadata. use "" as the path of the package in object symbol names. 5c/6c/8c, 5a/6a/8a: rewrite leading . to "". so that ·Sin means Sin in this package. 5l/6l/8l: rewrite "" in symbol names as object files are read. gotest: handle new symbol names. gopack: handle new import lines in export metadata. Collectively, these changes eliminate the assumption of a global name space in the object file formats. Higher level pieces such as reflect and the computation of type hashes still depend on the assumption; we're not done yet. R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/186263 Committer: Russ Cox <rsc@golang.org>
2010-01-225a/6a/8a: avoid fixed-sized file name bufferDean Prichard5-3/+8
R=rsc CC=golang-dev http://codereview.appspot.com/186279 Committer: Russ Cox <rsc@golang.org>
2010-01-22gc: do not build builtin.c automatically; use golden copy instead.Russ Cox4-17/+17
R=r CC=golang-dev http://codereview.appspot.com/190104 Committer: Russ Cox <rsc@golang.org>
2010-01-22Trim space on input to make searching more robust.Christopher Wedgwood1-1/+1
R=rsc, r, gri CC=golang-dev http://codereview.appspot.com/186255 Committer: Rob Pike <r@golang.org>
2010-01-20part 2 of sudoaddable optimizationKen Thompson1-17/+42
R=rsc CC=golang-dev http://codereview.appspot.com/190088
2010-01-19cleanup toward eliminating package global name spaceRuss Cox19-192/+228
* switch to real dot (.) instead of center dot (·) everywhere in object files. before it was half and half depending on where in the name it appeared. * in 6c/6a/etc identifiers, · can still be used but turns into . immediately. * in export metadata, replace package identifiers with quoted strings (still package names, not paths). R=ken2, r CC=golang-dev http://codereview.appspot.com/190076
2010-01-19start of better addressing ofKen Thompson1-8/+32
arrays/slices in structures R=rsc CC=golang-dev http://codereview.appspot.com/190077
2010-01-19gc: const debug bool = falseRuss Cox1-1/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/186232
2010-01-19ld: unused variableRuss Cox1-2/+0
R=r CC=golang-dev http://codereview.appspot.com/186229
2010-01-18build: move GOOS, GOARCH, GOROOT lookup into central library.Russ Cox2-16/+4
bake default values in during build. R=r CC=golang-dev http://codereview.appspot.com/186173
2010-01-18gc: bug245Russ Cox2-1/+3
Fixes issue 529. R=ken2 CC=golang-dev http://codereview.appspot.com/186215
2010-01-18gc: multiple return value at top-level invoked multiple timesRuss Cox1-0/+6
Fixes issue 402. R=ken2 CC=golang-dev http://codereview.appspot.com/186214
2010-01-18gc: bug243Russ Cox1-1/+3
Fixes issue 481. R=ken2 CC=golang-dev http://codereview.appspot.com/186213
2010-01-18gc: more precise handling of import .Russ Cox3-6/+12
Fixes issue 455. R=ken2 CC=golang-dev http://codereview.appspot.com/186212
2010-01-18gc: be more specific about copy type errorsRuss Cox1-2/+9
Fixes issue 539. R=ken2 CC=golang-dev http://codereview.appspot.com/190043
2010-01-15Don't check array bounds if we have been told not to.Ian Lance Taylor2-2/+2
Fixes range.go test for 6g. R=rsc CC=golang-dev http://codereview.appspot.com/189093
2010-01-15 Steps towards tracking scopes for identifiers.Robert Griesemer9-25/+29
- Identifiers refer now to the language entity (Object) that they denote. At the moment this is at best an approximation. - Initial data structures for language entities (Objects) and expression types (Type) independent of the actual type notations. - Initial support for declaring and looking up identifiers. - Updated various dependent files and added support functions. - Extensively tested to avoid breakage. This is an AST change. R=rsc CC=golang-dev, rog http://codereview.appspot.com/189080
2010-01-13runtime: add demo running Go on raw (emulated) hwRuss Cox4-12/+31
8l: add GOOS=pchw, stop spelling out all the elf numbers. R=r CC=golang-dev http://codereview.appspot.com/186144
2010-01-13cgo: Only allow numeric / string / character type constants for referencesDevon H. O'Dell1-1/+7
to #defined things. Fixes issue 520. R=rsc, rsaarelm CC=golang-dev http://codereview.appspot.com/186138 Committer: Russ Cox <rsc@golang.org>
2010-01-13Distinguish between html generation and html quoting in godoc formatters.Robert Griesemer1-0/+9
Replacement for CL 184084; originally by Roger Peppe (rogpeppe@gmail.com). R=rsc CC=golang-dev, rog http://codereview.appspot.com/189059
2010-01-13godoc: skip template wrapping for complete HTML filesRuss Cox1-0/+22
demo at http://wreck:8080/doc/ click on go_talk-20100112.html R=gri CC=golang-dev http://codereview.appspot.com/186137
2010-01-13cgo: handle C99 bool typeDevon H. O'Dell1-1/+7
Fixes issue 307. R=rsc CC=golang-dev http://codereview.appspot.com/186073 Committer: Russ Cox <rsc@golang.org>
2010-01-13ignore $GOARCH inside the compiler and linker.Rob Pike3-5/+3
by definition, they know what they are building for. makes it easier to switch architectures when testing. % 6g x.go % 6l x.6 % 6.out "Wed Jan 13 10:57:46 EST 2010" % 8g x.go % 8l x.8 % 8.out "Wed Jan 13 10:57:46 EST 2010" % echo $GOARCH % R=rsc CC=golang-dev http://codereview.appspot.com/186116
2010-01-12Fix bug that prevented the gofmt test script being run on moreRoger Peppe1-2/+2
than one explicitly named file. R=rsc, gri CC=golang-dev http://codereview.appspot.com/186095 Committer: Robert Griesemer <gri@golang.org>
2010-01-11delete debugging printsRob Pike1-1/+0
R=rsc CC=golang-dev http://codereview.appspot.com/186079
2010-01-11delete debugging printsRob Pike1-16/+0
R=rsc CC=golang-dev http://codereview.appspot.com/186079
2010-01-11add pprof output format to prof.Rob Pike2-19/+280
amd64 linux only. R=rsc CC=golang-dev http://codereview.appspot.com/186077
2010-01-11 cgo: Make constants #define'd in C available to Go (as consts)Devon H. O'Dell4-3/+77
Fixes issue 435 R=rsc CC=golang-dev http://codereview.appspot.com/181161 Committer: Russ Cox <rsc@golang.org>
2010-01-11gc: clean opnames.hYongjian Xu1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/181186 Committer: Russ Cox <rsc@golang.org>
2010-01-11Remove -oldprinter flag from gofmt; all code isRobert Griesemer2-6/+2
now printed using the semicolon-free style. Removed NoSemis flag and mechanism dealing with optional semicolons from go/printer. Updated all go/printer output files using the semi-colon free style. Changes have no formatting impact on checked in go code under src and misc. R=rsc, r CC=golang-dev http://codereview.appspot.com/184068
2010-01-08gc: bug238Russ Cox2-1/+8
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2010-01-07gc: bug219, bug239, bug240Russ Cox1-6/+22
Fixes issue 475. R=ken2 CC=golang-dev http://codereview.appspot.com/183157
2010-01-07gc: bug241Russ Cox1-1/+3
Fixes issue 495. R=ken2 CC=golang-dev http://codereview.appspot.com/183156
2010-01-068g: float->uint64 conversion optimizationEvan Shaw1-9/+3
Using FUCOMIP instead of the FUCOMP-FSTSW-SAHF sequence gives better performance and saves code space. R=rsc CC=golang-dev http://codereview.appspot.com/183139 Committer: Russ Cox <rsc@golang.org>
2010-01-068c: only refer to extern register variables in MOVL instructionsRuss Cox2-1/+8
R=ken2 http://codereview.appspot.com/183136
2010-01-06godoc: serve index.html in place of directory listing, when presentRuss Cox1-0/+10
R=gri CC=golang-dev http://codereview.appspot.com/181155
2010-01-06cgo: Use -fno-eliminate-unused-debug-types when calling gcc to for dwarf stabs.Devon H. O'Dell1-0/+1
This keeps debug symbols in for e.g. unreferenced enums. Fixes issue 479 R=rsc CC=golang-dev, waltermundt http://codereview.appspot.com/181102 Committer: Russ Cox <rsc@golang.org>
2010-01-058a, 8l: Add FCOMI, FCOMIP, FUCOMI, FUCOMIP instructionsEvan Shaw3-1/+13
Fixes issue 447 R=rsc CC=golang-dev http://codereview.appspot.com/183047 Committer: Russ Cox <rsc@golang.org>
2010-01-04Simplified parser interface.Robert Griesemer2-4/+12
R=rsc, r CC=golang-dev, rog http://codereview.appspot.com/183116