Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/hack-pad/go
The Go programming language
https://github.com/hack-pad/go
Rewrite the helper "readpesym()" and the code that calls it to pass in
most of the values it nee...
Dialer.DialContext no longer performs a redundant check on the length
of the fallback slice, bec...
Updates #29770
Fixes #51872
Change-Id: Icee660c8cc6c69a79ad11e818dd8ab40a344e800
Reviewed-on: h...
After CL 24430, reflect.DeepEqual no longer returns true when comparing
a *Rat built with (*Rat)...
So that `strings.SplitN("", "T", int(144115188075855872))` does not panic.
Change-Id: Iea00417e...
cc46cac3bc59c35e22e17471d70e28fd3705d4da authored almost 3 years ago
__SIZE_TYPE__ is a GCC type which has been superseded
by size_t -define in stddef.h- since ISO C...
Adding comments to these functions help IDE tooling to display
meaningful documentation, p.e. on...
Be clear that the type of a term (not the term itself, which may
be of the form ~P) cannot be a ...
In preparation to make html/template and text/template use a
single generics package, this chang...
If a package could not be imported for whatever reason, the type checker
creates fake package wi...
For syntax errors in various (syntactic) lists, instead of reporting
a set of "expected" tokens ...
If there is a go.work file in src, "go test cmd/internal/moddeps"
and "go test cmd/go" fail. Se...
(Also rename it to no longer describe itself in terms of sleeping.)
This test previously relied...
1ac16586421070cdc76c62b5dfd5e74a4b47fca8 authored almost 3 years ago
findgoversion has some logic from before the go1 release that only
has effect when on a release ...
Updates #51759
Change-Id: Ib73fa5ec62d90c7e595150217b048158789f1afd
Reviewed-on: https://go-rev...
When parsing method declarations in an interface, the parser has
for historic reasons gracefully...
Generics have landed; we cannot revert the syntax anymore. Remove
ability to choose between non-...
- Use .go suffix for test files as go fmt doesn't descend into testdata
directories.
- Move test...
Change-Id: I29347e340725fa2892eb115b530de82969835412
Reviewed-on: https://go-review.googlesource...
Documentation around the use of types.Context is unclear about whether
contexts guarantee dedupl...
When using Go 1.4 this doesn't matter, but when using Go 1.17,
the bootstrap toolchain will comp...
The 'docker' command line tool is no longer available on my Linux laptop
due to Docker's new lic...
CL 367755 added soleComponent for handling 1-byte type interface conversion.
This implementation...
After CL 281543, checkassign do not have to check assignment in range
loop anymore, thus its fir...
RFC 1950 section 2.2 "Data format" says "CINFO (Compression info)... For
CM = 8... Values of CIN...
There are several of places that save and restore the C callee-saved registers,
the operation is...
The Addr should be zero if SHF_ALLOC is not set.
Update #51939
Change-Id: I030f6243d05efabe6b9...
63169c8bdf3e7ac5006c8976b0631b281eb49394 authored almost 3 years ago
This CL adds
- spill functions used by runtime
- ABIInternal to functions
Adding new stubs_risc...
8fefeabb358395fb3e592e9403339552880e0872 authored almost 3 years ago
Use the 1.17 compiler error message together with the receiver base type.
Also, simplify and fla...
These are the opcodes required to lower math/bits.Add64 and
math/bits.Sub64 directly into ssa fo...
If a GC related task preempts between hitting the main.main breakpoint
and stepping, the test pr...
This is the first step towards decomposing aggregate operations
which create or consume the CA b...
Use the 1.17 compiler error message.
Change-Id: Ic62de5bfc9681674069934afc590f5840729f8e2
Revie...
Use the 1.17 compiler error message, sans "array" prefix.
Change-Id: I0e70781c5ff02dca30a2004ab...
9038c244983e66294781f83e30239623a08672f5 authored almost 3 years ago
For #20322
For #51572
Change-Id: Id0b4799d097d01128e98ba4cc0092298357bca45
Reviewed-on: https:/...
net.ParseCIDR already rejects input in the form of 2001:db8::%a/32, but
netip.ParsePrefix previo...
Change-Id: I04d511ed8e3e7ca4a3267f226a0c3e248c0f84a9
50b8f490e1701773254fdbfe0e3fea00ff1f2a68 authored almost 3 years agoFixes #51920
Change-Id: I29e44a52dabee5c09e1761f9ec8fb2e8795f8901
Reviewed-on: https://go-revie...
For #51572
Change-Id: Ib27be79379c8b3f72e29365b58067d7ee1919e52
Reviewed-on: https://go-review....
Add two-operand form "op rs, rd" to
ADDW/SUBW/SLLW/SRLW/SRAW/SLLIW/SRLIW/SRAIW.
Do the followin...
94727bed02d59b6a40757ba583f61d1b03493e5d authored almost 3 years ago
This updates the cmd/compile/internal/importer to natively support the
"final" unified IR export...
The new "unix" build tag matches any Unix or Unix-like system.
This is only recognized on go:bui...
Keep returning nil for the cases where we historically returned nil,
even though this is slightl...
Fixes #51617
Change-Id: I03e9e575d9bad1481e7e4f051b50a077ba5f2fe0
Reviewed-on: https://go-revie...
Fixes #39906
Change-Id: I8fcaf4c1ccc4131d770cff08d9c80f520885a6b5
Reviewed-on: https://go-revie...
So far unified IR has been relying on the backwards-compat iexport
data to supply package finger...
At least on some platforms (e.g. PE dynamic loader) relocations
need to be sorted in address ord...
We are limited to 64 registers in the allocator today, and PPC64
has not been allocating F0,F26-...
These FP registers on PPC64 have no restrictions, they can
be used like the others. F27-F31 were...
Change-Id: Ie058c0549167b256ad943a0134907df3aca4a69f
Reviewed-on: https://go-review.googlesource...
These fields are also valid for _Star.
Change-Id: I2582000ac1737c41416e69f91404f7cac279d718
Rev...
Use bytealg.IndexByteString(str, 0) instead of looping through the
string to check for a zero by...
New tsan runtime (v3) built on llvm commit 1784fe0532a6.
The new runtime features:
- 2x smalle...
All the code in ioutil just forwards functionality to code
in either the io or os packages, per ...
CL 390474 removed last usages of ConstValue, it can now be removed, and
also Float64Val, since w...
Use the syscall method instead of repeating the type conversions for each OS.
Change-Id: I1db97...
5fcc6554d955c31e7a313ff7e1b3bc13de9d63a1 authored almost 3 years agoThis reverts commit 56400fc70675cc2f404f33e3ed13386967cfe4da.
Reason for revert: this CL requir...
ad646b33c9fd2366c91a44b262910c1064b24f11 authored almost 3 years ago
The existing implementation of the xml decoder uses the line number
only for reporting syntax er...
Change-Id: I7ccffbf96bd30f33bb42b6a2592962e2d4dda9fc
GitHub-Last-Rev: 2d6e214ac50bf505f8edf5ad8b...
Fixes #51414
Change-Id: Ia3b1674f2a902c8396fe029397536643a3bc1784
GitHub-Last-Rev: 67159648af09...
Change-Id: I32944f4ed519419e168e62f9ed6df63961839259
Reviewed-on: https://go-review.googlesource...
CL 394074 broke the noopt builder. Something about time.After's inlining
depends on the build fl...
Fixes #51963
Change-Id: Ib9e0521222e6fc41e787f3150b254e058a19addc
Reviewed-on: https://go-revie...
Same as BSFQ, if the input is known to be nonzero we don't need a CMOV
to correct for the weird ...
This CL adds regabi support needed for reflect.
Change-Id: Ib78f8c7765f03e3a7b46e8b115bf8870b80...
56400fc70675cc2f404f33e3ed13386967cfe4da authored almost 3 years ago
In CL 367756 we remove ReadFileRevs function, We simplified
the implementation of the interface ...
Fixes #51856
Change-Id: I8328d73bbb7bc166d58281180b64785a634e9bab
Reviewed-on: https://go-revie...
This reverts commit e550c3054586a224d949cc8fa030bac0887bee51.
Reason for revert: Method bound c...
3f69cc7d77fbc569824307e6dca37950003ce5a8 authored almost 3 years ago
When we have x.M(args) where x is a value of type parameter type, we
currently cast x to the bou...
Currently we do quite a dance for method expressions on generic
types. We write a new closure, a...
Add the riscv64 register ABI constants and allow regabi
value to be set for riscv64
Change-Id: ...
0652274c10f8f2a520c30bf43bb968dac91bf9f5 authored almost 3 years ago
Change-Id: I90c8e12a0be05d82bf6e147b5249859518f35c14
Reviewed-on: https://go-review.googlesource...
Historically, we sometimes recorded imports based on either package
path ("net/http") or object ...
The correct (or at least mostly commonly used) name for addresses of the
form ::ffff:192.0.2.128...
The detection of the "unknown charset" case was too tailored
to one specific address parser. Mak...
The only usage of NewClosureExpr is inside NewClosureFunc, which is its
alternative version. So ...
When run with race detector the test fails without the fix.
Fixes #51799
Change-Id: I273adb6d3...
1d19cea740a5a044848aaab3dc119f60c947be1d authored almost 3 years ago
For 1-byte type, we have a special case for converting to interface
type. But we missed an optim...
Add a new rewrite rule to merge ANDconst and UBFX into
UBFX.
Add test cases.
Change-Id: I24d64...
8ab42a945aef7c09189a60263c4450a65bc00a47 authored almost 3 years ago
If the http.Request passed to ReverseProxy.ServeHTTP has a context
with a non-nil Done channel, ...
Change-Id: I01717cc52c9728b4eaaf2c996707f59a113bff9e
Reviewed-on: https://go-review.googlesource...
This CL updates test/run.go to compile xxx.dir/x.go with a package
path of "test/x" instead of j...
Change-Id: I69e64ebf8c11145ce32aa4c11178e3a47d22fb84
Reviewed-on: https://go-review.googlesource...
Label symbols are only useful for relocations from text. No need
to do it for DWARF. And the PE ...
I was testing edge cases in gofumpt, a fork of gofmt,
and noticed that gofmt will return a bare ...
The file names reported in error messages by the compiler are
printed unchanged from the file na...
So all runtime map functions will use the same code path, make it easier
for future CL to handle...
CL 187617 removed oldescape_linkname.go, but forgot to remove this
directory too.
Change-Id: I6...
60be4ec096a180d74208230207e839bd2c8a030a authored almost 3 years ago
bug302 compiles p.go with -p=p, and then manually creates a pp.a
archive, and imports it as both...
Currently, run.go's *dir tests allow "x.go" to be imported
interchangeably as either "x" or "./x...
This CL allow the CALL ops to take variable number of arguments.
Change-Id: If84bb306c2f23a0a93...
849e42f028d20821aa68d7d37aa2e1fc3abbebe3 authored almost 3 years ago
After CL 394556, only LocalPkg is passed to AllowsGoVersion, so simplify
the code to not depend ...
SetBroken is never called and Broken always returns false.
Updates #51691
Change-Id: I7e3fd3f2...
0eb2c771248c74e462d3ed77dab23bb2de566de1 authored almost 3 years agoanyBroke now always return false, we can get rid of it.
Updates #51691
Change-Id: Idab5bc9f9f2...
2792a414c69d9e6bacee217f6beb92352fe3c2a4 authored almost 3 years agotypes2 handles those checks instead.
The only exception is noder.checkEmbed, since when types2
...
CL 388535 removed the only usage of this function.
Change-Id: Ie5a61cce75b03d83162f62989fe52388...
489e4882ef0df15f208e41915cedc1ceb2cc75fd authored almost 3 years agoAnd use base.Fatalf in code that use n.SetDiag(true) instead.
Updates #51691
Change-Id: Ib3c0b...
c10fb508946bccbd015634c0bdb1cbd18e206c8f authored almost 3 years agoAnd use base.Fatalf in code that use t.SetBroke(true) instead.
Updates #51691
Change-Id: I9f36...
515135f4c3f9c67d51d6d3d7b8fe82559ac2e9f2 authored almost 3 years ago
reportTypeLoop used to be used to report invalid recursive types in old
typechecker.
However, t...
7e0a1d340ffd71f239bddbd4686392a5a2c5906b authored almost 3 years ago
This change essentially matches the 1.17 compiler error message for
this error.
Fixes #51877.
...
f9747b7f7315fa702a39b420b63977ca90e06e94 authored almost 3 years ago