summaryrefslogtreecommitdiff
path: root/src/cmd/5g/ggen.c
AgeCommit message (Collapse)AuthorFilesLines
2012-02-29Imported Upstream version 2012.02.22Ondřej Surý1-2/+2
2012-01-30Imported Upstream version 2012.01.27Ondřej Surý1-1/+0
2011-09-13Read goinstall dashboard option from debian configuration fileOndřej Surý1-1/+3
2011-08-10Imported Upstream version 2011.08.10upstream-weekly/2011.08.10Ondřej Surý1-2/+1
2011-08-03Imported Upstream version 2011.07.29upstream-weekly/2011.07.29Ondřej Surý1-12/+40
2011-06-28Imported Upstream version 2011.06.23upstream-weekly/2011.06.23Ondřej Surý1-3/+29
2011-06-03Imported Upstream version 2011.06.02upstream-weekly/2011.06.02Ondřej Surý1-107/+3
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-1/+1
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-3/+2
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-24/+63
2010-04-01runtime: turn run time errors checks into panicsRuss Cox1-64/+16
R=ken2, r CC=golang-dev http://codereview.appspot.com/871042 Committer: Russ Cox <rsc@golang.org>
2010-03-31gc: implement panic and recoverRuss Cox1-4/+9
R=ken2, r, ken3 CC=golang-dev http://codereview.appspot.com/831042
2010-03-26arm: fix buildDean Prichard1-5/+4
R=rsc CC=golang-dev http://codereview.appspot.com/800041 Committer: Russ Cox <rsc@golang.org>
2010-03-26gc: allow taking address of out parametersRuss Cox1-0/+20
Fixes issue 186. R=ken2 CC=golang-dev http://codereview.appspot.com/793041
2010-03-085g/6g/8g: fix double function call in sliceRuss Cox1-32/+24
Fixes issue 654. R=ken2 CC=golang-dev http://codereview.appspot.com/310041
2010-03-05gc: better compilation of floating point +=Russ Cox1-9/+17
R=ken2 CC=golang-dev http://codereview.appspot.com/255042
2010-01-22eliminate the package global name space assumption in object filesRuss Cox1-1/+1
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>
2009-11-20x[lo:] - gc and runtime.Russ Cox1-0/+380
* add runtime sliceslice1 for x[lo:] * remove runtime arraytoslice, rewriting &arr into arr[0:len(arr)]. * port cgen_inline into 8g, 5g. * use native memmove in maps R=ken2 http://codereview.appspot.com/157106
2009-10-27shift for non-64 bit integers.Kai Backman1-0/+89
R=rsc http://go/go-review/1015017
2009-10-26fix defer. gave up on unified code for defer and go for now.Kai Backman1-5/+49
R=rsc http://go/go-review/1014010
2009-10-23one more argsize fix. we were copying with the correctKai Backman1-1/+1
alignment but not enough (duh). R=rsc APPROVED=rsc DELTA=16 (13 added, 0 deleted, 3 changed) OCL=36020 CL=36024
2009-10-22fix off by 4 in newproc arg copying.Kai Backman1-2/+2
R=rsc APPROVED=rsc DELTA=4 (0 added, 0 deleted, 4 changed) OCL=36001 CL=36004
2009-10-16fix arm build, add 64 bit cgen_asopKai Backman1-0/+21
R=rsc APPROVED=rsc DELTA=21 (21 added, 0 deleted, 0 changed) OCL=35845 CL=35845
2009-10-02a few more code generation bugs and an interface alignment issue.Kai Backman1-2/+3
go/test: passes 74% (251/339) R=rsc APPROVED=rsc DELTA=40 (34 added, 0 deleted, 6 changed) OCL=35254 CL=35275
2009-10-01cgen_asop sudoaddableKai Backman1-22/+61
R=rsc APPROVED=rsc DELTA=14 (4 added, 0 deleted, 10 changed) OCL=35190 CL=35210
2009-09-18changed 5c calling convention to use stack exclusively for inKai Backman1-2/+2
params. a number of fixes to assembly routines that assumed R0 had the first arg. one stack offset fix, arm pushes the link register on stack top. go/test: passes 65% (235/364) tests R=rsc APPROVED=rsc DELTA=20 (11 added, 0 deleted, 9 changed) OCL=34809 CL=34812
2009-09-17fix code generation of CMP to use registers properly. also fixKai Backman1-1/+2
one case of uninitialized memory and some output. R=rsc APPROVED=rsc DELTA=73 (43 added, 1 deleted, 29 changed) OCL=34743 CL=34772
2009-09-17move static init code from 6g into gc.Russ Cox1-50/+0
hook up to 8g and 5g too. R=ken OCL=34768 CL=34768
2009-09-14make 5g, 8g build again by disabling init code.Russ Cox1-112/+1
R=ken OCL=34604 CL=34604
2009-09-08write-only variable _Russ Cox1-1/+1
R=ken OCL=34465 CL=34470
2009-08-21mostly 64 bit support.Kai Backman1-7/+18
- fixed a number of places where we tried to allocate 64bit regs. added honeypot in regalloc to catch these in the future. - implemented quad copying in sgen - cgen64.c, add, mul - clearfat done - D_REGREG output from 5g (linker already knew about them) - gmove done - optoas almost done, last bit probably not needed - D_SHIFT support in list.c R=rsc APPROVED=rsc DELTA=963 (711 added, 112 deleted, 140 changed) OCL=33619 CL=33688
2009-08-19more work on adding in pieces. fixed my bad assumptions aboutKai Backman1-184/+35
signed and unsigned integer conversions. R=rsc APPROVED=rsc DELTA=398 (40 added, 230 deleted, 128 changed) OCL=33546 CL=33569
2009-08-18pkg/sort compiling and some progress on syscall. mostlyKai Backman1-131/+89
re-enabling and massaging code. R=rsc APPROVED=rsc DELTA=2496 (1880 added, 330 deleted, 286 changed) OCL=33487 CL=33504
2009-08-18slashed warningsKai Backman1-2/+2
R=rsc APPROVED=rsc DELTA=35 (2 added, 1 deleted, 32 changed) OCL=33436 CL=33453
2009-08-18fix runtime and compile regressionKai Backman1-2/+2
R=rsc APPROVED=rsc DELTA=6 (0 added, 0 deleted, 6 changed) OCL=33434 CL=33452
2009-08-04make Syms smaller.Russ Cox1-2/+0
collapse a lot of duplication in dcl.c switch to NodeList* from Dcl* R=ken OCL=32770 CL=32770
2009-07-30fix build on amd64Russ Cox1-0/+2
R=ken OCL=32521 CL=32521
2009-07-17another step toward eliminating forward declarations.Russ Cox1-5/+5
introduce NodeList* type in compiler to replace OLIST. this clarifies where lists can and cannot occur. list append and concatenation are now cheap. the _r rules are gone from yacc. rev and unrev are gone. no more lists of lists. the representation of assignments is a bit clunkier. split into OAS (1=1) and OAS2 (2 or more on one side). delete dead chanrecv3 code. delay construction of func types. R=ken OCL=31745 CL=31762
2009-07-06cleaned up data generation in 5g, reverted 5l handling of D_ADDR.Kai Backman1-9/+9
R=rsc APPROVED=rsc DELTA=46 (0 added, 5 deleted, 41 changed) OCL=31241 CL=31243
2009-07-06agen, sgen, cgen_callret, cgen_asop, D_ADDR handling, gmoveKai Backman1-30/+33
8bit and 16bit, some optoas, replaced Addr.index with Addr.name empty function compiles, mutex compiles R=rsc APPROVED=rsc DELTA=908 (83 added, 41 deleted, 784 changed) OCL=31127 CL=31188
2009-06-26working on bgenKai Backman1-10/+0
- removed smallint optimizations - lifted raddr from 5c - add back %R, was used in gc/* causing -g to crash - changed naddr OREGISTER to emit D_REG instead of D_OREG R=rsc APPROVED=rsc DELTA=74 (38 added, 28 deleted, 8 changed) OCL=30799 CL=30822
2009-06-26more changes to make 5g code generation arm compatible.Kai Backman1-0/+1
R=rsc APPROVED=rsc DELTA=72 (12 added, 52 deleted, 8 changed) OCL=30748 CL=30793
2009-06-25fixes to 5g object file generation. arm specific regalloc.Kai Backman1-39/+5
R=rsc APPROVED=rsc DELTA=976 (164 added, 237 deleted, 575 changed) OCL=30705 CL=30743
2009-05-28Rebooted 5g effort from 6g. Tons of minor fixes and tweaks toKai Backman1-0/+873
get the code going. R=rsc APPROVED=rsc DELTA=4752 (1723 added, 948 deleted, 2081 changed) OCL=29403 CL=29530