summaryrefslogtreecommitdiff
path: root/src/cmd/gc/const.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-15Imported Upstream version 1.4upstream/1.4Tianon Gravi1-2/+7
2014-06-19Imported Upstream version 1.3upstream/1.3Michael Stapelberg1-20/+72
2013-12-03Imported Upstream version 1.2upstream/1.2Michael Stapelberg1-1/+1
2013-05-14Imported Upstream version 1.1upstream/1.1Michael Stapelberg1-4/+32
2013-03-04Imported Upstream version 1.1~hg20130304upstream/1.1_hg20130304Michael Stapelberg1-82/+277
2012-04-06Imported Upstream version 1upstream/1Ondřej Surý1-14/+109
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+1299
2011-09-13Imported Upstream version 60Ondřej Surý1-1283/+0
2011-06-30Imported Upstream version 58upstream/58Ondřej Surý1-0/+4
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+1
2011-04-20Imported Upstream version 2011.03.07.1upstream/2011.03.07.1Ondřej Surý1-3/+3
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-6/+6
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-6/+16
2010-06-14gc: no more ...Russ Cox1-1/+1
various cleanup, deleting unused code R=ken2 CC=golang-dev http://codereview.appspot.com/1663041
2010-06-08gc: new typechecking rulesRuss Cox1-4/+7
* 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-03-091. decommit complex(float) conversionKen Thompson1-2/+2
2. add complex algorithm for map/chan 3. test for use of complex in array, slice, field, chan, map, field, pointer. R=rsc CC=golang-dev http://codereview.appspot.com/384041
2010-03-08gc: simplify complex typecheckRuss Cox1-0/+3
do not convert to float prematurely. R=ken2 CC=golang-dev http://codereview.appspot.com/311041
2010-02-21gc: minor const simplificationsRuss Cox1-32/+15
R=ken2 CC=golang-dev http://codereview.appspot.com/217069
2010-02-19fixed bug in mpconst float multiply by 0.Ken Thompson1-2/+21
more complex -- constants, variables and print. R=rsc CC=golang-dev http://codereview.appspot.com/217061
2010-02-18complex constant multiply and divideKen Thompson1-6/+78
R=rsc CC=golang-dev http://codereview.appspot.com/217041
2010-02-18more complex - constantsKen Thompson1-0/+20
import and export R=rsc CC=golang-dev http://codereview.appspot.com/214050
2010-02-17new types complex, complex64 and complex128Ken Thompson1-38/+173
only front-end compiler work. best to do thin in 3 steps 1. frontend 2. backend 3. lib R=rsc CC=golang-dev http://codereview.appspot.com/214042
2010-02-12gc: diagnose invalid array boundsRuss Cox1-4/+2
Fixes issue 587. R=ken2 CC=golang-dev http://codereview.appspot.com/207085
2010-02-01gc: bug246Russ Cox1-1/+10
R=ken2 CC=golang-dev http://codereview.appspot.com/198057
2010-01-24gc: bug247, reported by robRuss Cox1-38/+40
R=ken2 CC=golang-dev http://codereview.appspot.com/194051
2010-01-08gc: bug238Russ Cox1-0/+4
Fixes issue 471. R=ken2 CC=golang-dev http://codereview.appspot.com/181184
2009-11-20x[y:] for stringsRuss Cox1-1/+1
R=ken2 http://codereview.appspot.com/157114
2009-11-16gc: change "can we const evaluate this" from blacklist to whitelistRuss Cox1-6/+30
R=ken2 http://codereview.appspot.com/155074
2009-11-15gc: five bug fixes, one better error.Russ Cox1-2/+2
* 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-11-14gc: do not try to constant-evaluate (interface{})("bar")Russ Cox1-0/+1
Fixes issue 183. R=ken http://codereview.appspot.com/154139
2009-10-20address bug193 and add note to spec about it.Russ Cox1-2/+2
R=ken OCL=35920 CL=35920
2009-09-21ideal bools and related fixesRuss Cox1-8/+27
R=ken OCL=34859 CL=34865
2009-09-09error message fixesRuss Cox1-0/+2
x == nil x.go:5: cannot use nil as bool c := x.(type); x.go:88: use of .(type) outside type switch R=ken OCL=34476 CL=34476
2009-09-09defining package block names must overrideRuss Cox1-0/+4
universe block names. BUG=2097244 R=ken OCL=34295 CL=34473
2009-08-27clean up ideal handling; reject attemptsRuss Cox1-29/+11
to write type descriptors for ideal types R=ken OCL=33958 CL=33958
2009-08-24bug197Russ Cox1-0/+2
R=ken OCL=33765 CL=33765
2009-08-23half of bug193Russ Cox1-2/+12
R=ken OCL=33730 CL=33730
2009-08-21fix crash in bug194; add bug196Russ Cox1-2/+2
R=ken OCL=33694 CL=33697
2009-08-07forward declarations not necessary.Russ Cox1-0/+1
still to do: * initializer cycle detection * nicer error for type checking cycles R=ken OCL=32855 CL=32880
2009-08-04type checking of assignments, switch, if, forRuss Cox1-1/+12
R=ken OCL=32716 CL=32720
2009-08-03more 6g reorg; checkpoint.Russ Cox1-3/+5
typecheck.c is now responsible for all type checking except for assignment and function argument "..." R=ken OCL=32661 CL=32667
2009-07-30typechecking checkpoint.Russ Cox1-2/+24
started to move typechecking to another file. can build entire tree still, but lots of work is duplicated. much to clean up. R=ken OCL=32536 CL=32543
2009-07-29introduce typecheck pass before walkexpr.Russ Cox1-1/+7
not complete but compiler still works. R=ken OCL=32424 CL=32426
2009-07-27bug170; fix test for bug175Russ Cox1-1/+5
R=ken OCL=32255 CL=32255
2009-07-27print(1<<x)Russ Cox1-1/+1
R=ken OCL=32252 CL=32252
2009-07-17baby step: const decls can refer to futureRuss Cox1-21/+53
consts in the same factored block const ( X = Y; Y = 2; ) R=ken OCL=31782 CL=31782
2009-07-06shift typechecking bugsRuss Cox1-4/+11
x << "a" 1 << int(2) R=ken OCL=31244 CL=31244
2009-07-06fix bug involving typed nil constants:Russ Cox1-1/+1
interface = (*int)(nil) is not the same as interface = nil. package main func main() { var x interface{} = (*int)(nil); println(x.(*int)); } R=ken OCL=31232 CL=31232
2009-06-25better error; clean up lineno in a few placesRuss Cox1-3/+2
wreck.mtv=; cat x.go package main var x = string.Split() wreck.mtv=; 6g x.go x.go:2: type string used as expression x.go:2: undefined DOT Split on string x.go:3: illegal types for operand: AS undefined wreck.mtv=; BUG=1938751 R=ken OCL=30766 CL=30766
2009-05-29bug 156Ken Thompson1-7/+2
R=r OCL=29623 CL=29623