summaryrefslogtreecommitdiff
path: root/src/cmd/gc/dcl.c
AgeCommit message (Collapse)AuthorFilesLines
2009-03-30don't crash onRuss Cox1-0/+1
unsafe.Alignof(struct{x float}{0}.x) R=ken OCL=26911 CL=26913
2009-03-12make 6g constants behave as ken proposes. (i hope.)Russ Cox1-5/+15
various bug fixes and tests involving constants. test/const1.go is the major new test case. R=ken OCL=26216 CL=26224
2009-02-17fix unsafe.Sizeof("abc")Ken Thompson1-5/+13
R=rsc OCL=25105 CL=25105
2009-02-16embedded interface types in interfaces.Russ Cox1-3/+33
R=ken OCL=25072 CL=25072
2009-02-10Implement unsafe.Alignof.Ian Lance Taylor1-1/+18
R=ken DELTA=20 (19 added, 0 deleted, 1 changed) OCL=24719 CL=24771
2009-02-07unsafe.Sizeof and unsafe.OffsetofKen Thompson1-0/+51
R=r OCL=24639 CL=24639
2009-02-06closures - 6g supportRuss Cox1-25/+193
R=ken OCL=24501 CL=24566
2009-02-05do not generate Init proto for sys and unsafe.Russ Cox1-0/+5
R=ken OCL=24455 CL=24455
2009-01-30update compiler to new func rulesRuss Cox1-6/+6
R=ken OCL=23958 CL=23961
2009-01-29if take address of local, move to heap.Russ Cox1-1/+2
heuristic to not print bogus strings. fix one error message format. R=ken OCL=23849 CL=23851
2009-01-26bug134Russ Cox1-6/+13
R=ken OCL=23532 CL=23532
2009-01-26bug133Russ Cox1-1/+1
R=ken OCL=23528 CL=23528
2009-01-21disallow P.t for lowercase t and not our package P.Russ Cox1-1/+1
implement hiding lowercase methods m in signatures by adding in a hash of the package name to the type hash code. remove remaining checks for internally-generated _ names: they are all gone. R=ken OCL=23236 CL=23238
2009-01-20* delete exportRuss Cox1-20/+15
* rename init functions R=ken OCL=23122 CL=23126
2009-01-16disallow other package's names in method callsRuss Cox1-0/+3
R=ken OCL=22999 CL=22999
2009-01-16disallow other package's names in struct field dot.Russ Cox1-0/+2
R=ken OCL=22996 CL=22996
2009-01-15don't crash on:Russ Cox1-1/+1
package main var x int type x struct { a int } R=ken OCL=22903 CL=22903
2009-01-15remove export name-list statement.Russ Cox1-6/+3
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-17/+0
remove TPTR wrapper around TMAP, TCHAN, TSTRING. R=ken OCL=22406 CL=22409
2009-01-08second pass on interface fixes and tests.Russ Cox1-10/+8
R=ken OCL=22370 CL=22372
2009-01-08many interface bug fixes.Russ Cox1-5/+19
also, after func g() (int, int) func f(int, int) allow f(g()) and func h() (int, int) { return g() } R=ken DELTA=356 (252 added, 26 deleted, 78 changed) OCL=22319 CL=22325
2008-12-18arraysKen Thompson1-5/+0
R=r OCL=21564 CL=21564
2008-12-11restrict declarations of type map/chan/stringKen Thompson1-2/+21
(they must be pointers) R=r OCL=21009 CL=21009
2008-12-11only generate non-trivial signatures in theRuss Cox1-6/+7
file in which they occur. avoids duplicate trampoline generation across multiple files. R=ken OCL=20976 CL=20980
2008-12-102 minor bugsKen Thompson1-6/+5
R=r OCL=20906 CL=20906
2008-12-09bug126Ken Thompson1-19/+20
R=r OCL=20879 CL=20879
2008-12-05range statementKen Thompson1-1/+1
R=r OCL=20667 CL=20667
2008-12-04const/var/iota declarations as discussedKen Thompson1-0/+83
R=r OCL=20506 CL=20506
2008-11-14package-local declarations using keyword "package".Russ Cox1-8/+8
R=r DELTA=129 (81 added, 0 deleted, 48 changed) OCL=19283 CL=19291
2008-11-11width fixes.Russ Cox1-4/+18
* check for uncomputed struct offsets * distinguish function structs from ordinary structs * make sure function structs are not examined in isolation R=ken OCL=19005 CL=19005
2008-11-06change minimum sethi/ullman number to 1Russ Cox1-2/+2
to distinguish not computed (0) vs trivial (1). add missing ullmancalc on function args. R=ken OCL=18711 CL=18711
2008-11-03rename various magic names.Russ Cox1-11/+30
sigi and sigt: sys·sigi_inter -> sigi·inter sys·sigt_int -> sigt·int Package·sigt_Type -> sigt·Package.Type local type T in file x.go T_x -> T·x second one T_x_1 -> T·x·1 method names M on T T_M -> T·M correctly handle local embedded types init functions are the only place left that use underscores R=ken OCL=18377 CL=18377
2008-10-30structure field annotation stringsRuss Cox1-0/+14
R=ken OCL=18176 CL=18176
2008-10-24fix method function type compare bug (again)Russ Cox1-5/+10
R=ken OCL=17819 CL=17819
2008-10-24Automated g4 rollback of changelist 17815.Russ Cox1-5/+2
*** Reason for rollback *** now it's comparing function parameter names... *** Original change description *** fix method function type compare bug R=ken OCL=17816 CL=17816
2008-10-24fix method function type compare bugRuss Cox1-2/+5
R=ken OCL=17815 CL=17815
2008-10-22do not use fake names on anonymous function return valuesRuss Cox1-5/+1
R=ken OCL=17679 CL=17679
2008-10-21elided dotsKen Thompson1-4/+4
R=r OCL=17601 CL=17601
2008-10-21changes to imbeddedKen Thompson1-1/+17
R=r OCL=17572 CL=17572
2008-10-216g:Russ Cox1-1/+16
* 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-20fix compiler warningsRuss Cox1-1/+1
R=r DELTA=44 (10 added, 9 deleted, 25 changed) OCL=17502 CL=17502
2008-10-19unnamed substructures - not completeKen Thompson1-0/+1
R=r OCL=17437 CL=17437
2008-10-17cleanup - delete unneeded vargen++Russ Cox1-2/+0
R=ken OCL=17394 CL=17394
2008-10-16diagnose various conversion problemsRuss Cox1-0/+7
R=ken OCL=17320 CL=17320
2008-10-13stack allocation for the init functionKen Thompson1-1/+1
R=r OCL=17063 CL=17063
2008-10-07remove support for *T as an implicit declaration of TRuss Cox1-17/+3
R=ken OCL=16651 CL=16653
2008-10-07fix bug:Russ Cox1-1/+4
type T struct export type T struct { a int } was not exporting T R=ken OCL=16650 CL=16650
2008-10-06change type names to go live at the name, so thatRuss Cox1-109/+209
type T struct { next *T } and type T *struct { next T } are valid without needing forward declarations. add "type T struct" syntax for forward struct declarations. add "type T interface" syntax, but commented out (need to fix semicolons first) R=ken DELTA=452 (259 added, 115 deleted, 78 changed) OCL=16580 CL=16584
2008-10-04add method test & fix method name bugsRuss Cox1-10/+3
R=ken,r DELTA=86 (72 added, 9 deleted, 5 changed) OCL=16488 CL=16488
2008-10-03silence gcc warningsRuss Cox1-4/+1
R=ken OCL=16449 CL=16466