summaryrefslogtreecommitdiff
path: root/src/cmd/cc
AgeCommit message (Collapse)AuthorFilesLines
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý9-344/+427
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý12-71/+65
2010-03-26fix spelling of alignRob Pike3-7/+7
R=rsc CC=golang-dev http://codereview.appspot.com/778041
2010-03-24cc: fix typoRuss Cox1-1/+1
R=iant CC=golang-dev http://codereview.appspot.com/720041
2010-03-23Add support for #pragma dynexport.Ian Lance Taylor4-0/+51
R=rsc CC=golang-dev http://codereview.appspot.com/661043
2010-03-22Rename dynld to dynimport throughout.Ian Lance Taylor4-14/+14
Cgo users will need to rerun cgo. R=rsc CC=golang-dev http://codereview.appspot.com/692041
2010-03-04cc: disallow ... argument unless NOSPLIT is set.Russ Cox1-0/+1
check that NOSPLIT functions don't use too much stack. correct some missing NOSPLITs in the runtime library. Fixes bug reported in https://groups.google.com/group/golang-nuts/t/efff68b73941eccf R=ken2 CC=golang-dev http://codereview.appspot.com/236041
2010-02-16cc: use "cpp" anywhere in path, not "/bin/cpp"Giles Lean1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/206077 Committer: Russ Cox <rsc@golang.org>
2010-02-09bug fix in 6c/8c/5c mis-alignedKen Thompson1-16/+17
function arguments. R=rsc CC=golang-dev http://codereview.appspot.com/206054
2010-02-055a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D optionsDean Prichard3-17/+17
R=rsc CC=golang-dev http://codereview.appspot.com/198044 Committer: Russ Cox <rsc@golang.org>
2010-01-28avoid overflow of symb buffer in 5a/6a/8a/5c/6c/8cDean Prichard4-5/+42
R=rsc CC=golang-dev http://codereview.appspot.com/194099 Committer: Russ Cox <rsc@golang.org>
2010-01-25cc: correct handling of leading ·Russ Cox2-9/+11
R=ken2 CC=golang-dev http://codereview.appspot.com/193081 Committer: Russ Cox <rsc@golang.org>
2010-01-22eliminate the package global name space assumption in object filesRuss Cox2-2/+15
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 Cox2-0/+22
* 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-12-138l: add support for PE output.Hector Chu1-1/+4
R=rsc http://codereview.appspot.com/166080 Committer: Russ Cox <rsc@golang.org>
2009-11-23cmd/cc: change getquoted() to accept whitespaces.Sergio Luis O. B. Correia1-1/+1
getquoted() currently checks for whitespaces and returns nil if it finds one. this prevents us from having go in a path containing whitespaces, as the #pragma dynld directives are processed through the said function. this commit makes getquoted() accept whitespaces, and this is also needed for solving issue #115. R=rsc http://codereview.appspot.com/157066 Committer: Russ Cox <rsc@golang.org>
2009-11-23two more if(h<0) that gcc 4.3 -O2 miscompilesRuss Cox1-2/+1
R=r http://codereview.appspot.com/160044
2009-11-17cmd/cc: Fix -I switch to handle a path with blankspaces correctlySergio Luis O. B. Correia1-10/+2
Currently, -I switch can't deal with a path containing spaces. This commit simplify setinclude(), by removing the special case of a string that had spaces. After this change, setinclude() will merely add the given directories to the include path, if it does not yet exist, and this approach works. Will be needed for solving issue 115. R=agl1, rsc, iant2, r http://codereview.appspot.com/155059 Committer: Russ Cox <rsc@golang.org>
2009-11-15cc: drop redundant strcpyRuss Cox1-2/+0
Fixes issue 192. R=ken2 http://codereview.appspot.com/155047
2009-11-14cc: eliminate two fixed-size buffersRuss Cox2-25/+25
Fixes bug 168. Alternative to http://codereview.appspot.com/152143. R=ken2 http://codereview.appspot.com/155042
2009-11-12yet another attempt to avoid conflicts withRuss Cox2-1/+5
<stdio.h>, which we weren't even #including R=r http://codereview.appspot.com/154108
2009-11-12cc, ld: fix more gcc 4.3 -O2 compile bugsRuss Cox1-2/+1
same as http://codereview.appspot.com/152088 in more files. Fixes issue 83. R=r, r1 http://codereview.appspot.com/152091
2009-11-11fix BUFSIZ redeclaration warningsRuss Cox1-1/+1
R=r http://codereview.appspot.com/152085
2009-11-11cc: correct handling of allocn(0, 1, d)Russ Cox1-2/+1
Fixes issue 29. R=r http://codereview.appspot.com/152076
2009-11-11getc/ungetc in assemblers; BUFSIZ everywhere.Russ Cox1-0/+1
Fixes issue 67. R=r http://codereview.appspot.com/154068
2009-11-11avoid clash with stdio's getc, ungetc.Russ Cox1-0/+3
Fixes issue 50. R=r http://codereview.appspot.com/154064
2009-11-09tweak documentation of commandsRuss Cox1-2/+2
so that first sentence is better for cmd page. live at http://r45:3456/cmd/ R=gri, r http://go/go-review/1024034
2009-11-06with rsc: argsize rounding to 8 smashes stack data on 32bit machines.Kai Backman1-1/+5
R=rsc http://go/go-review/1024011
2009-11-03more command documentation, including nm and profRob Pike1-0/+11
R=rsc http://go/go-review/1017022
2009-10-03clean moreRuss Cox1-1/+1
R=r DELTA=40 (9 added, 3 deleted, 28 changed) OCL=35277 CL=35305
2009-09-30c compiler bug tickled byRuss Cox1-0/+8
void f(struct { int x[1]; } p) { } the "int" was getting attached to f. R=ken OCL=35145 CL=35151
2009-09-24allow runes >= 0x80 in symbols in #pragmasRuss Cox1-2/+2
R=ken OCL=34975 CL=34975
2009-08-24ffi -> dynld.Russ Cox4-55/+15
move out of export data into its own section R=r DELTA=222 (71 added, 99 deleted, 52 changed) OCL=33801 CL=33808
2009-08-24first attempt at real FFI support.Russ Cox4-17/+126
in a .6 file, an export line //ffi T localfib remotefib remote.so means the dynamic linker should initialize localfib, always a pointer, to the address of remotefib, either text (T) or data (D) after loading remote.so. the C compiler will generate an export section when given the pragmas #pragma package fib #pragma ffi T localfib remotefib remote.so needing #pragma package is a bit of a kludge and hopefully could go away later. this is just the 6 tool chain support. other architectures will happen once 6 settles down. code using this to do FFI is in a later CL. R=r DELTA=161 (141 added, 14 deleted, 6 changed) OCL=33783 CL=33795
2009-07-13fix bug in codegen when we modified move instruction insteadKai Backman1-2/+1
of text. R=rsc APPROVED=rsc DELTA=3 (1 added, 2 deleted, 0 changed) OCL=31575 CL=31575
2009-07-13compilers were inconsistent aboutRuss Cox1-7/+7
whether no register argument was REGARG == 0 or REGARG < 0. use REGARG < 0 because arm needs 0 for R0. R=ken OCL=31562 CL=31566
2009-07-07move 6c/pgen.c, 6c/pswt.c into ccRuss Cox1-0/+591
and make 5c, 8c use them. centralizes reachability analysis and switch generation. now 8c doesn't have spurious warnings in pkg/runtime. R=ken OCL=31266 CL=31266
2009-04-10bug in stack size used inKen Thompson1-550/+0
extending segmented stack R=r OCL=27319 CL=27319
2009-03-24throw away most of the compat.h compatibility layerRuss Cox3-33/+72
in favor of the lib9 compatibility layer. no need for two. now that mycreate is gone, .6 files are 0644 not 0755. TBR=r OCL=26679 CL=26679
2009-03-20update 8a, 8c, 8l to use new object format.Russ Cox3-0/+7
add "extern register" support to 8c. extern register means allocate in the FS-relative segment. make 8l generate segmented stack checks. R=ken OCL=26600 CL=26606
2009-03-20move pragtextflag into lexbodyRuss Cox1-0/+7
R=ken OCL=26581 CL=26587
2009-02-056c: byte* - byte* should be int64, not int32.Russ Cox1-1/+1
R=ken OCL=24507 CL=24507
2009-01-27pragma textflagKen Thompson4-17/+10
fixes latent bugs in go and defer R=r OCL=23613 CL=23613
2009-01-06make acid build with bison.Russ Cox1-4/+1
ask for bison explicitly in cc, gc to try to avoid problems with other yaccs that might be installed. R=r DELTA=29 (10 added, 2 deleted, 17 changed) OCL=22110 CL=22113
2009-01-05fix 6a line number bug -Russ Cox1-3/+1
was incrementing lineno twice for the \n after a // comment. R=r DELTA=3 (0 added, 2 deleted, 1 changed) OCL=21984 CL=22021
2008-11-14add cov, prof to default build; clean up compiler warningsRuss Cox1-1/+1
R=r DELTA=8 (1 added, 0 deleted, 7 changed) OCL=19245 CL=19245
2008-09-22better yacc rule in MakefileRuss Cox1-1/+1
if y.tab.c is older than y.tab.h, make interprets doing nothing as a failure, because y.tab.c hasn't been updated. so update it. R=r DELTA=4 (0 added, 0 deleted, 4 changed) OCL=15615 CL=15622
2008-09-18make Makefiles safe for parallel makeRuss Cox1-1/+4
use -j4 (4-way parallel) in make.bash. halves time for make.bash on r45 also add libregexp, acid to default build R=r DELTA=90 (39 added, 37 deleted, 14 changed) OCL=15485 CL=15487
2008-08-08Change generated acid to indent nested structures properly.Russ Cox1-14/+26
Before the change: acid: M(m0) g0 00008dd0 morearg 00000000 cret 00000000 curg 2aaaaaaab000 lastg 00000000 Gobuf sched { SP ffffe5e0 PC 7fff00001ba1 } ... acid: After the change: acid: M(m0) g0 (G)00008dd0 morearg 00000000 cret 00000000 curg (G)2aaaaaaab000 lastg (G)00000000 Gobuf sched { SP ffffe5e0 PC 00001ba1 } ... acid: R=ken DELTA=27 (14 added, 2 deleted, 11 changed) OCL=13802 CL=13998
2008-08-03Use a single Make.conf for setting CC, etc.Russ Cox1-4/+1
This makes it easy to build with other flags (like -ggdb) or other compilers (like cc64). R=r DELTA=45 (6 added, 22 deleted, 17 changed) OCL=13790 CL=13793