summaryrefslogtreecommitdiff
path: root/src/cmd/gc/export.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-32/+64
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-147/+198
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+428
2011-09-13Imported Upstream version 60Ondřej Surý1-428/+0
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-2/+13
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-3/+9
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-1/+2
2010-06-14gc: no more ...Russ Cox1-17/+14
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-06-12gc: less aggressive name binding, for better line numbers in errorsRuss Cox1-1/+1
Cleans up a few other corner cases too. R=ken2 CC=golang-dev http://codereview.appspot.com/1592045
2010-06-11gc: change -u to require imports to be marked safeRuss Cox1-1/+4
R=ken2 CC=golang-dev http://codereview.appspot.com/1597043
2010-06-08gc: new typechecking rulesRuss Cox1-4/+25
* Code for assignment, conversions now mirrors spec. * Changed some snprint -> smprint. * Renamed runtime functions to separate interface conversions from type assertions: convT2I, assertI2T, etc. * Correct checking of \U sequences. Fixes issue 840. Fixes issue 830. Fixes issue 778. R=ken2 CC=golang-dev http://codereview.appspot.com/1303042
2010-02-18more complex - constantsKen Thompson1-0/+3
import and export R=rsc CC=golang-dev http://codereview.appspot.com/214050
2010-01-24gc: cut some dead code, fix 6g -S outputRuss Cox1-51/+0
R=ken2 CC=golang-dev http://codereview.appspot.com/193079
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-10/+22
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-0/+2
* 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-10-15rename sys functions to runtime,Russ Cox1-2/+2
because they are in package runtime. another step to enforcing package boundaries. R=r DELTA=732 (114 added, 93 deleted, 525 changed) OCL=35811 CL=35824
2009-09-21ideal bools and related fixesRuss Cox1-1/+1
R=ken OCL=34859 CL=34865
2009-08-19try to do better line number reportingRuss Cox1-10/+3
in the presence of yacc lookahead. better but still not perfect R=ken OCL=33541 CL=33541
2009-08-12delete code for forward type declarationsRuss Cox1-6/+0
R=ken OCL=33108 CL=33113
2009-08-12whole-package compilationRuss Cox1-1/+11
R=ken OCL=33063 CL=33095
2009-08-07forward declarations not necessary.Russ Cox1-42/+6
still to do: * initializer cycle detection * nicer error for type checking cycles R=ken OCL=32855 CL=32880
2009-08-04make Syms smaller.Russ Cox1-50/+48
collapse a lot of duplication in dcl.c switch to NodeList* from Dcl* R=ken OCL=32770 CL=32770
2009-08-04delayed evaluation of var blocksRuss Cox1-0/+2
R=ken OCL=32750 CL=32753
2009-07-17baby step: const decls can refer to futureRuss Cox1-1/+1
consts in the same factored block const ( X = Y; Y = 2; ) R=ken OCL=31782 CL=31782
2009-06-29allow forward declaration of struct in another fileRuss Cox1-10/+30
(in the same package). allow forward method declaration to be satisfied by implementation in another file (in the same package). all methods must be declared in the same file as the receiver type. R=ken OCL=30864 CL=30869
2009-06-06gc: grammar cleanup:Russ Cox1-97/+79
* no longer distinguishes const, var, type, package names. * all the predefined names are not tokens anymore. R=ken OCL=29326 CL=29985
2009-05-22simplifying grammar: delete LBASETYPE and LACONST.Russ Cox1-6/+5
take 2 R=ken OCL=29304 CL=29306
2009-05-22Automated g4 rollback of changelist 29302.Russ Cox1-5/+6
*** Reason for rollback *** too many files included *** Original change description *** simplifying grammar: delete LBASETYPE and LACONST R=ken OCL=29303 CL=29303
2009-05-22simplifying grammar: delete LBASETYPE and LACONSTRuss Cox1-6/+5
R=ken OCL=29300 CL=29302
2009-05-086g:Russ Cox1-17/+3
new type equality restrictions better handling of renamed packages "sys" is no longer available to programs R=ken OCL=28553 CL=28578
2009-05-08eqtype(t1, t2, 0) => eqtype(t1, t2)Russ Cox1-2/+2
R=ken OCL=28559 CL=28562
2009-03-12make 6g constants behave as ken proposes. (i hope.)Russ Cox1-12/+6
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
2009-02-10fix export bug Rob tripped over.Russ Cox1-8/+0
the lexer is already hiding names, so this clumsy hack is no longer necessary. R=ken OCL=24783 CL=24783
2009-01-30update compiler to new func rulesRuss Cox1-7/+7
R=ken OCL=23958 CL=23961
2009-01-20* delete exportRuss Cox1-41/+16
* rename init functions R=ken OCL=23122 CL=23126
2009-01-16casify, cleanup sysRuss Cox1-1/+4
R=r OCL=22978 CL=22984
2009-01-16re-export of bools was changingRuss Cox1-3/+6
format from hex to decimal, confusing ar's strcmp-based value comparison. switched export format to "true" or "false" to keep bools separate from ints. R=ken OCL=22944 CL=22944
2009-01-15catch export on func.Russ Cox1-4/+6
print names in message. R=ken OCL=22891 CL=22891
2009-01-15add warning for export of lowercase too.Russ Cox1-1/+4
R=ken OCL=22887 CL=22887
2009-01-15remove export name-list statement.Russ Cox1-1/+32
make package local the default. warn about name case not matching export keyword. R=ken OCL=22881 CL=22886
2009-01-096g cleanup suggested by ken.Russ Cox1-1/+1
remove TPTR wrapper around TMAP, TCHAN, TSTRING. R=ken OCL=22406 CL=22409
2008-12-11only generate non-trivial signatures in theRuss Cox1-1/+1
file in which they occur. avoids duplicate trampoline generation across multiple files. R=ken OCL=20976 CL=20980
2008-12-03import/export of exact mp floating constantsKen Thompson1-1/+1
new syntax for exact mp floating constants decimal_int ( "p" | "P" ) [ "+" | "-" ] decimal_int the value is decimal1 * 2^decimal2 R=r OCL=20357 CL=20357
2008-11-14fix bugs in package localsRuss Cox1-7/+11
R=ken OCL=19299 CL=19299
2008-11-14package-local declarations using keyword "package".Russ Cox1-4/+49
R=r DELTA=129 (81 added, 0 deleted, 48 changed) OCL=19283 CL=19291
2008-10-30change from $$ to \n$$ for .6 meta section delimiterRuss Cox1-1/+1
R=r DELTA=13 (5 added, 0 deleted, 8 changed) OCL=18190 CL=18192
2008-10-21stop looking for type names beginning with _.Russ Cox1-1/+1
they're gone. R=ken OCL=17569 CL=17569
2008-10-216g:Russ Cox1-11/+25
* print int as int, not P.int * write type info for non-exported types in its own new section. ar: skip over rest of line after $$ R=ken OCL=17568 CL=17568
2008-10-206g:Russ Cox1-3/+5
make sure methods end up immediately following the struct they are methods on. ar: eliminate duplicate definitions from __.PKGDEF. check that multiple .6 do not give different defs for same exported type/var/func/const. increase ar header name size from 16 to 64 bytes R=r DELTA=379 (333 added, 18 deleted, 28 changed) OCL=17477 CL=17481
2008-10-17export prereq for interface typesRuss Cox1-0/+1
R=ken OCL=17377 CL=17377