golang-1.15.git
4 years ago[PATCH] cmd/dist: increase default timeout scale for arm
Balint Reczey [Mon, 31 Aug 2020 11:14:51 +0000 (13:14 +0200)]
[PATCH] cmd/dist: increase default timeout scale for arm

Forwarded: https://github.com/golang/go/issues/43002

Most developers use (faster) amd64 machines setting the test timeouts,
but test may run on slower arm ones and also different tests may suffer
different relative slowdown on the arm CPUs.

Due to those two varying factors it is safer to allow a higher timeout
scale on arm to avoid tests timing out.

Gbp-Pq: Name 0005-cmd-dist-increase-default-timeout-scale-for-arm.patch

4 years agocmd/dist: fix build failure of misc/cgo/test on arm64
Xiangdong Ji [Wed, 5 Aug 2020 06:02:58 +0000 (06:02 +0000)]
cmd/dist: fix build failure of misc/cgo/test on arm64

Test7978 of misc/cgo/test fails in 'dist test' on arm64 if the C compiler
is of GCC-9.4 or above and its 'outline atomics' feature is enabled, since
the internal linking hasn't yet supported "__attribute__((constructor))"
and also mis-handles hidden visibility.

Two changes are made for 'misc/cgo/test' to fix the issue:
  1. passing "-tags=internal" for the internal linking PIE case.
  2. skipping Test7978 on arm64 for the internal linking cases.

This CL fixes 'dist test' failure only, user is expected to pass the option
'-mno-outline-atomics' via CGO_CFLAGS if running into the same problem when
building cgo program using internal linking.

Updates #39466
Change-Id: I2011bb051cae7c43eb0f1c78c7f4fbdb94bf78a6

Gbp-Pq: Name 0004-cmd-dist-fix-build-failure-of-misc-cgo-test-on-arm64.patch

4 years agocmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC
YunQiang Su [Tue, 9 Jun 2020 04:09:58 +0000 (04:09 +0000)]
cmd/go, cmd/cgo: pass -mfp32 and -mhard/soft-float to MIPS GCC

For mips32 currently, we are using FP32, while the gcc may be FPXX,
which may generate .MIPS.abiflags and .gnu.attributes section with
value as FPXX. So the kernel will treat the exe as FPXX, and may
choose to use FR=1 FPU mode for it.
Currently, in Go, we use 2 lwc1 to load both half of a double value
to a pair of even-odd FPR. This behavior can only work with FR=0 mode.

In FR=1 mode, all of 32 FPR are 64bit. If we lwc1 the high-half of a double
value to an odd FPR, and try to use the previous even FPR to compute, the
real high-half of even FPR will be unpredicatable.
We set -mfp32 to force the gcc generate FP32 code and section value.

More details about FP32/FPXX/FP64 are explained in:
https://web.archive.org/web/20180828210612/https://dmz-portal.mips.com/wiki/MIPS_O32_ABI_-_FR0_and_FR1_Interlinking

When GOMIPS/GOMIPS64 is set as softfloat, we should also pass
 -msoft-float to gcc.

Here we also add -mno-odd-spreg option, since Loongson's CPU cannot use
odd-number FR in FR=0 mode.

Fixes #39435

Change-Id: I54026ad416a815fe43a9261ebf6d02e5519c3930

Gbp-Pq: Name 0003-cmd-go-cmd-cgo-pass-mfp32-and-mhard-soft-float-to-MI.patch

4 years agoFix Lintian warnings about wrong interpreter path
Dr. Tobias Quathamer [Thu, 1 Aug 2019 11:50:48 +0000 (13:50 +0200)]
Fix Lintian warnings about wrong interpreter path

The command used for this change is as follows:

grep -rH "/usr/bin/env perl" * | cut -d: -f1 | xargs -n1 sed -i -e "s,/usr/bin/env perl,/usr/bin/perl,"

Gbp-Pq: Name 0002-Fix-Lintian-warnings-about-wrong-interpreter-path.patch

4 years agoDisable test for UserHomeDir.
Dr. Tobias Quathamer [Wed, 19 Dec 2018 13:25:06 +0000 (14:25 +0100)]
Disable test for UserHomeDir.

On Debian buildds, the user home dir does not exist, so this test fails.

Gbp-Pq: Name 0001-Disable-test-for-UserHomeDir.patch

4 years agogolang-1.15 (1.15.8-3) unstable; urgency=high
Michael Hudson-Doyle [Tue, 9 Feb 2021 23:58:55 +0000 (23:58 +0000)]
golang-1.15 (1.15.8-3) unstable; urgency=high

  * Re-upload with urgency=high due to impending freeze.

[dgit import unpatched golang-1.15 1.15.8-3]

4 years agoImport golang-1.15_1.15.8-3.debian.tar.xz
Michael Hudson-Doyle [Tue, 9 Feb 2021 23:58:55 +0000 (23:58 +0000)]
Import golang-1.15_1.15.8-3.debian.tar.xz

[dgit import tarball golang-1.15 1.15.8-3 golang-1.15_1.15.8-3.debian.tar.xz]

4 years agoImport golang-1.15_1.15.8.orig.tar.gz
Shengjing Zhu [Fri, 5 Feb 2021 12:51:44 +0000 (12:51 +0000)]
Import golang-1.15_1.15.8.orig.tar.gz

[dgit import orig golang-1.15_1.15.8.orig.tar.gz]