summaryrefslogtreecommitdiff
path: root/src/cmd/gc/obj.c
AgeCommit message (Collapse)AuthorFilesLines
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg1-169/+112
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg1-3/+3
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg1-0/+14
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-4/+10
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-12/+39
2011-09-19Imported Upstream version 60.1upstream/60.1Ondřej Surý1-9/+1
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+301
2011-09-13Imported Upstream version 60Ondřej Surý1-292/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-0/+1
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-0/+54
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-1/+1
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-26/+81
2010-06-14gc: no more ...Russ Cox1-4/+6
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-04-11gc: distinguish fatal compiler bug from error+exitRuss Cox1-2/+5
R=ken2 CC=golang-dev http://codereview.appspot.com/902044
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-5/+3
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-19cleanup toward eliminating package global name spaceRuss Cox1-4/+6
* 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
2009-11-15gc: five bug fixes, one better error.Russ Cox1-2/+10
* check for struct literal assignment to private fields. * record, fix crash involving parallel map assignment. * avoid infinite recursion in exportassignok. * make floating point bounds check precise. * avoid crash on invalid receiver. * add context to error about implicit assignment. Fixes issue 86. Fixes issue 88. Fixes issue 158. Fixes issue 174. Fixes issue 201. Fixes issue 204. R=ken2 http://codereview.appspot.com/154144
2009-08-136g/6l: add go type information to symbol table.Russ Cox1-0/+2
archive size +70% binary size +30% old wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt} -rwxr-xr-x 1 rsc eng 1487922 Aug 13 13:21 /Users/rsc/bin/godoc -rwxr-xr-x 1 rsc eng 995995 Aug 13 13:21 /Users/rsc/bin/gofmt wreck.mtv=; du -sh $GOROOT/pkg/ 9.5M /home/rsc/go/pkg/ wreck.mtv=; new wreck.mtv=; ls -l /Users/rsc/bin/{godoc,gofmt} -rwxr-xr-x 1 rsc eng 2014390 Aug 13 14:25 /Users/rsc/bin/godoc -rwxr-xr-x 1 rsc eng 1268705 Aug 13 14:25 /Users/rsc/bin/gofmt wreck.mtv=; du -sh $GOROOT/pkg 16M /home/rsc/go/pkg wreck.mtv=; R=ken OCL=33217 CL=33220
2009-08-04make Syms smaller.Russ Cox1-13/+9
collapse a lot of duplication in dcl.c switch to NodeList* from Dcl* R=ken OCL=32770 CL=32770
2009-07-076g, 8g: generate data structures for new reflect interface (CL 31107)Russ Cox1-412/+1
R=ken OCL=31122 CL=31278
2009-07-06various 6g cleanup:Russ Cox1-2/+32
* give genwrapper and genembedtramp the same signature. * move duint8, duint16, duint32, duint64, duintptr into gc. * tidy genwrapper. * bug involving struct field symbols in signature list. (hash-order dependent so hard to trigger) * new Type print format %#-T like %#T but omits names on function arguments. R=ken OCL=31237 CL=31237
2009-06-06gc: grammar cleanup:Russ Cox1-5/+8
* no longer distinguishes const, var, type, package names. * all the predefined names are not tokens anymore. R=ken OCL=29326 CL=29985
2009-06-04more 8g progress.Russ Cox1-1/+1
likely to go back to registers for most temporaries. most tests in lib pass. these fail: datafmt fmt go/scanner log reflect strconv template R=ken OCL=29896 CL=29898
2009-05-08eqtype(t1, t2, 0) => eqtype(t1, t2)Russ Cox1-1/+1
R=ken OCL=28559 CL=28562
2009-05-07if a struct s contains an anonymous interface valueRuss Cox1-2/+2
with method m, s.m() is ok and m now shows up in s's method set for interface runtime. see http://cl/28419-p2 for new test interface10.go. R=ken OCL=28420 CL=28423
2009-05-066g: new interface rules (code got simpler!)Russ Cox1-43/+38
R=ken OCL=28374 CL=28378
2009-05-066g: generate string data as individual symbols,Russ Cox1-37/+1
so that 6l can discard strings used by dead code. also, for short strings, generate DUPOK global symbols so that references to, say, "%s: %s" in multiple files result in only a single symbol. R=ken OCL=28361 CL=28361
2009-04-13fix stringrange testRuss Cox1-1/+0
R=ken OCL=27353 CL=27353
2009-04-09change representation of stringsKen Thompson1-6/+11
R=r OCL=27293 CL=27293
2009-04-02type n t;Russ Cox1-0/+1
was copying a bit too much about t into n, like whether the signature was queued to be printed. (bug reported by anton) was also editing t, meaning you could do type T int; func (p int) Meth() { } both fixed. R=ken OCL=27052 CL=27052
2009-03-30move portable object routines (especiallyRuss Cox1-0/+585
signature generation) into gc. R=ken OCL=26933 CL=26933