- 14 Mar, 2015 8 commits
-
-
Joel Sing authored
DragonFlyBSD dropped support for i386 in 4.0 and there is no longer a dragonfly/386 - as such, remove the Go port. Fixes #8951 Fixes #7580 Fixes #7421 Change-Id: I69022ab2262132e8f97153f14dc8c37c98527008 Reviewed-on: https://go-review.googlesource.com/7543Reviewed-by: Ian Lance Taylor <iant@golang.org> Reviewed-by: Dave Cheney <dave@cheney.net> Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Joel Sing <jsing@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
-
Josh Bleecher Snyder authored
Change-Id: I91f9b5280e08e005f5a891aaa249267c211d814b Reviewed-on: https://go-review.googlesource.com/7592Reviewed-by: Minux Ma <minux@golang.org>
-
Ian Lance Taylor authored
Fixes #10118. Change-Id: I4a2e6748db609c6eed1d68c824b81c59bd7b875c Reviewed-on: https://go-review.googlesource.com/7590Reviewed-by: Minux Ma <minux@golang.org>
-
Ian Lance Taylor authored
Change-Id: Ieb13359c5bbe26bbf7baaaa8eb63d5e90bdefdd8 Reviewed-on: https://go-review.googlesource.com/7591Reviewed-by: Minux Ma <minux@golang.org>
-
Michael Hudson-Doyle authored
Just little bits and pieces I noticed were unused in passing, and some more found with https://github.com/opennota/check. Change-Id: I199fecdbf8dc2ff9076cf4ea81395275c7f171c3 Reviewed-on: https://go-review.googlesource.com/7033Reviewed-by: Minux Ma <minux@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matthew Dempsky authored
Change-Id: I3096a7497955bc475739739ee23be387e9162867 Reviewed-on: https://go-review.googlesource.com/7210 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Robert Griesemer authored
Float.Cmp used to return a value < 0, 0, or > 0 depending on how arguments x, y compared against each other. With the possibility of NaNs, the result was changed into an Accuracy (to include Undef). Consequently, Float.Cmp results could still be compared for (in-) equality with 0, but comparing if < 0 or > 0 would provide the wrong answer w/o any obvious notice by the compiler. This change wraps Float.Cmp results into a struct and accessors are used to access the desired result. This prevents incorrect use. Change-Id: I34e6a6c1859251ec99b5cf953e82542025ace56f Reviewed-on: https://go-review.googlesource.com/7526Reviewed-by: Rob Pike <r@golang.org>
-
Mikio Hara authored
Fixes #10068. Change-Id: I1f12225ee16b0090b87403931c0bc0157f068309 Reviewed-on: https://go-review.googlesource.com/6555Reviewed-by: Minux Ma <minux@golang.org>
-
- 13 Mar, 2015 9 commits
-
-
Matthew Dempsky authored
namebuf was a global char buffer in the C version of gc, which was useful for providing common storage for constructing symbol and file names. However, now that it's just a global Go string and the string data is dynamically allocated anyway, it doesn't serve any purpose except to force extra write barriers everytime it's assigned to. Also, introduce Lookupf(fmt, args...) as shorthand for Lookup(fmt.Sprintf(fmt, args...)), which was a very common pattern for using namebuf. Passes "go build -toolexec 'toolstash -cmp' -a std". Notably, this CL shrinks 6g's text section by ~15kB: $ size toolstash/6g tool/linux_amd64/6g text data bss dec hex filename 4600805 605968 342988 5549761 54aec1 toolstash/6g 4585547 605968 342956 5534471 547307 tool/linux_amd64/6g Change-Id: I98abb44fc7f43a2e2e48425cc9f215cd0be37442 Reviewed-on: https://go-review.googlesource.com/7080Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Dave Cheney authored
Update cmd/7g to match the other compilers. Fixes build break in rev 6582d1cf. Change-Id: I449613cf348254e9de6cc7a6b7737e43ea7d10fe Reviewed-on: https://go-review.googlesource.com/7580Reviewed-by: Dave Cheney <dave@cheney.net>
-
Michael Hudson-Doyle authored
The argument is never consulted apart from passing it to recursive calls. So delete it. Change-Id: Ia15eefb6385b3c99ea4def88f564f4e5a94c68ab Reviewed-on: https://go-review.googlesource.com/7032Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Ian Lance Taylor authored
Change-Id: I9ea6d4d8a9c1c63de36f2f3871dd5ac9201c0aac Reviewed-on: https://go-review.googlesource.com/7523Reviewed-by: Minux Ma <minux@golang.org>
-
Robert Griesemer authored
Change-Id: Ib42f75c03573cec16801b79a6eb9b1b542028f4f Reviewed-on: https://go-review.googlesource.com/7524Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Change-Id: If335d45ea1ab6c8aeeb47515f97680e2c1d651f3 Reviewed-on: https://go-review.googlesource.com/7522Reviewed-by: Alan Donovan <adonovan@google.com>
-
Nigel Tao authored
Fixes #10154 Change-Id: Ibb8ea9bcf512e7639c57a6f17afbe4495fa329cd Reviewed-on: https://go-review.googlesource.com/7494Reviewed-by: Minux Ma <minux@golang.org>
-
Joel Sing authored
The kern.rthreads sysctl has not existed for a long time - there is no way to disable rthreads and __tfork no longer returns ENOTSUP. Change-Id: Ia50ff01ac86ea83358e72b8f45f7818aaec1e4b1 Reviewed-on: https://go-review.googlesource.com/7490Reviewed-by: Minux Ma <minux@golang.org>
-
Joel Sing authored
Change-Id: If58ea50fbf321ae943d0890a40e0552e7bc19709 Reviewed-on: https://go-review.googlesource.com/2080Reviewed-by: Minux Ma <minux@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
-
- 12 Mar, 2015 18 commits
-
-
Andrew Gerrand authored
Change-Id: I9f5ca101e0d2fe71cb1ca810cfeeb82c12f5f8e7 Reviewed-on: https://go-review.googlesource.com/7491Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Andrew Gerrand authored
Change-Id: I0a8b972c33e80c750ff1d63717177a5a3294a112 Reviewed-on: https://go-review.googlesource.com/7445Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Geert-Johan Riemer <gjr19912@gmail.com> Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Robert Griesemer authored
Also: - Implemented NewFloat convenience factory function (analogous to NewInt and NewRat). - Implemented convenience accessors for Accuracy values returned from Float.Cmp. - Added test and example. Change-Id: I985bb4f86e6def222d4b2505417250d29a39c60e Reviewed-on: https://go-review.googlesource.com/6970Reviewed-by: Alan Donovan <adonovan@google.com>
-
Russ Cox authored
Four spaces is what works well for both 4- and 8-space tab stops. Screen with fixed-width font and 4-space tab stops: http://imgur.com/lps5Lbb Change-Id: I7d2b813d674c3e0a68f79d63bc5d5ec5bd4f87bb Reviewed-on: https://go-review.googlesource.com/7503Reviewed-by: Rob Pike <r@golang.org>
-
Robert Griesemer authored
This is a fairly significant _internal_ representation change. Instead of encoding 0, finite, infinite, and NaN values with special mantissa and exponent values, a new (1 byte) 'form' field is used (without making the Float struct bigger). The form field permits simpler and faster case distinctions. As a side benefit, for zero and non-finite floats, fewer fields need to be set. Also, the exponent range is not the full int32 range (in the old format, infExp and nanExp were used to represent Inf and NaN values and tests for those values sometimes didn't test for the empty mantissa, so the range was reduced by 2 values). The correspondence between the old and new fields is as follows. Old representation: x neg mant exp --------------------------------------------------------------- +/-0 sign empty 0 0 < |x| < +Inf sign mantissa exponent +/-Inf sign empty infExp NaN false empty nanExp New representation (- stands for ignored fields): x neg mant exp form --------------------------------------------------------------- +/-0 sign - - zero 0 < |x| < +Inf sign mantissa exponent finite +/-Inf sign - - inf NaN - - - nan Client should not be affected by this change. Change-Id: I7e355894d602ceb23f9ec01da755fe6e0386b101 Reviewed-on: https://go-review.googlesource.com/6870Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Change-Id: If38f45acffd352ed95f32f3a36edd91a1fb33d0c Reviewed-on: https://go-review.googlesource.com/6850Reviewed-by: Alan Donovan <adonovan@google.com>
-
Robert Griesemer authored
Change-Id: I6caa6bdcf6643ce3015244397a752bd133f3d00c Reviewed-on: https://go-review.googlesource.com/6840Reviewed-by: Alan Donovan <adonovan@google.com>
-
Rob Pike authored
Change-Id: Ic78deaf91b437016b0a064c1f9ef49c9c29f4c32 Reviewed-on: https://go-review.googlesource.com/7510Reviewed-by: Rob Pike <r@golang.org>
-
Rob Pike authored
Make PrintDefaults print an easier-to-read format, and allow the user to control it a bit by putting a hint into the usage string. Here is the new doc comment for PrintDefaults, which does the work: PrintDefaults prints, to standard error unless configured otherwise, a usage message showing the default settings of all defined command-line flags. For an integer valued flag x, the default output has the form -x int usage-message-for-x (default 7) The usage message will appear on a separate line except for single- letter boolean flags. Boolean flags omit the type, since they can be used without an actual value, and the parenthetical default is omitted if the default is the zero value for the type. The type, here int, can be replaced by a string of the user's choosing by placing in the usage string for the flag a back-quoted name; the first such item in the message is taken to be a parameter name to show in the message and the back quotes are stripped from the message when displayed. For instance, given flag.String("I", "", "search `directory` for include files") the output will be -I directory search directory for include files. Given A = flag.Bool("A", false, "for bootstrapping, allow 'any' type") B = flag.Bool("Alongflagname", false, "disable bounds checking") C = flag.Bool("C", true, "a boolean defaulting to true") D = flag.String("D", "", "set relative `path` for local imports") F = flag.Float64("F", 2.7, "a non-zero float") G = flag.Float64("G", 0, "a float that defaults to zero") N = flag.Int("N", 27, "a non-zero int") Z = flag.Int("Z", 0, "an int that defaults to zero") T = flag.Duration("deltaT", 0, "a duration") the old output was -A=false: for bootstrapping, allow 'any' type -Alongflagname=false: disable bounds checking -C=true: a boolean defaulting to true -D="": set relative `path` for local imports -F=2.7: a non-zero float -G=0: a float that defaults to zero -N=27: a non-zero int -Z=0: an int that defaults to zero -deltaT=0: a duration and the new output is -A for bootstrapping, allow 'any' type -Alongflagname disable bounds checking -C a boolean defaulting to true (default true) -D path set relative path for local imports -F float a non-zero float (default 2.7) -G float a float that defaults to zero -N int a non-zero int (default 27) -Z int an int that defaults to zero -deltaT duration a duration Change-Id: I54ab3cd5610d551422b004d95ab78305e06a395d Reviewed-on: https://go-review.googlesource.com/7330Reviewed-by: Andrew Gerrand <adg@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
-
Rob Pike authored
The old, per-architecture operand printers didn't lock down the format of the constant in the MRC and MCR instructions (a value that could be presented more helpfully - maybe how the input looks? - but that is an issue for another day). But there is a portable standard printer now so we can enable tests for these instructions. Change-Id: I437a3b112ce63f4d6e1fe3450fc21d8c3372602f Reviewed-on: https://go-review.googlesource.com/7420Reviewed-by: Russ Cox <rsc@golang.org>
-
Shenghou Ma authored
Change-Id: I4bc08a7085b45be3d2755a1986cf5b8c82fa165d Reviewed-on: https://go-review.googlesource.com/7500Reviewed-by: Minux Ma <minux@golang.org>
-
Michael Vetter authored
When printing the type of the function there was no newline printed in case of unexpected type. Change-Id: I5946413f0864f712a1b955f488b436793018e0e0 Reviewed-on: https://go-review.googlesource.com/7480Reviewed-by: Minux Ma <minux@golang.org>
-
Michael Hudson-Doyle authored
Just a trivial thing I noticed in passing. Change-Id: I875069ceffd623f9e430d07feb5042ab9e69917e Reviewed-on: https://go-review.googlesource.com/7472Reviewed-by: Rob Pike <r@golang.org>
-
Michael Hudson-Doyle authored
Somehow, terribly embarrassingly, I lost part of the "re-enable -shared on amd64" patch when rebasing before it got submitted. This restores it and also fixes the addend to be the necessary -4. Now updated so that Git will not put the new case into the wrong switch. Change-Id: I1d628232771a6d6ce6d085adf379f94a377822c5 Reviewed-on: https://go-review.googlesource.com/7126 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matt Joiner authored
This allows /debug/pprof/ and descendents to be used through http.StripPrefix and other path rewriting handlers. Change-Id: I53673876c107bbfaf430123ead78e6524b42ac21 Reviewed-on: https://go-review.googlesource.com/7351Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Geert-Johan Riemer authored
When appending zip data to existing data such as a binary file the zip headers must use the correct offset. NewWriterWithOptions allows creating a Writer that uses the provided offset in the zip headers. Fixes #8669 Change-Id: I6ec64f1e816cc57b6fc8bb9e8a0918e586fc56b0 Reviewed-on: https://go-review.googlesource.com/2978Reviewed-by: Andrew Gerrand <adg@golang.org>
-
Shenghou Ma authored
Fixes #10135. Change-Id: Ic4c5ab15bcb7b9c3fcc685a788d3b59c60c26e1e Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/7400Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Shenghou Ma authored
This will make the intention clearer. This is migrated from pre-c2go CL 4930. Change-Id: I9103126a05323daedd729a43b94b2be8cd7408c9 Signed-off-by: Shenghou Ma <minux@golang.org> Reviewed-on: https://go-review.googlesource.com/7410Reviewed-by: Austin Clements <austin@google.com>
-
- 11 Mar, 2015 5 commits
-
-
Austin Clements authored
Many headers in DWARF sections have a "unit length" that can be either 4 bytes or 12 bytes and indicates both the length of the unit and whether the unit is in 32-bit or 64-bit format. Currently, we implement unit length parsing in four different places. Add a "unitLength" method to buf that parses a unit length and use it in these four places. Change-Id: I7950b91caaa92aa5e19aa63debc8ae46178ecc4d Reviewed-on: https://go-review.googlesource.com/7281Reviewed-by: Nigel Tao <nigeltao@golang.org> Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Matthew Dempsky authored
The conversion of this logic from C introduced a few subtle behavior changes. E.g., assigning "name := data[p0:]" and then "name = name[:p1-p0]" actually caused name to span the vast majority of the package data, as at the time of the second statement p0 points just after the package name and p1 points to the end of the package data. Similarly, the logic for advancing past the newline at the end of the package line changed slightly: for a "package foo safe" line, the new code would only advance up to the newline, but not past. (Albeit, in practice this doesn't matter: newlines in package data are harmless.) Lastly, "data[p0]" was incorrectly written as "data[0]" a few times. Change-Id: I49017e16ba33a627f773532b418cbf85a84f2b4b Reviewed-on: https://go-review.googlesource.com/7000Reviewed-by: Ian Lance Taylor <iant@golang.org>
-
Hyang-Ah (Hana) Kim authored
The slash is replaced with os.PathSeparator before returning. Split, SplitList are the exceptions; comments for them mention this. Fixes golang/go#10122. Change-Id: I66dbee8d09f378582e046be8df309a3930151820 Reviewed-on: https://go-review.googlesource.com/7310Reviewed-by: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Rob Pike <r@golang.org>
-
Keith Randall authored
Everything has moved to Go, but comments still refer to .c/.h files. Fix all of those up, at least for these three directories. Fixes #10138 Change-Id: Ie5efe89b247841e0b3f82aac5256b2c606ef67dc Reviewed-on: https://go-review.googlesource.com/7431Reviewed-by: Russ Cox <rsc@golang.org>
-
Rob Pike authored
Add cmd/internal/obj/stringer.go to do the generation and update the architecture packages to use it to maintain the Anames tables. Change-Id: I9c6d4def1bf21624668396d70c17973d0db11fbc Reviewed-on: https://go-review.googlesource.com/7430Reviewed-by: Russ Cox <rsc@golang.org>
-