Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canadian build: fix mingw32 #445

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
26 changes: 26 additions & 0 deletions patches/gcc/linaro-4.9-2015.06/001-go-fix.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 151f14a124d1b1e5fb4497244a7ad4d6daa0148d Mon Sep 17 00:00:00 2001
From: Matthieu Crapet <mcrapet@gmail.com>
Date: Fri, 16 Sep 2016 11:42:06 +0200
Subject: [PATCH] go: initialize variable to avoid compiler warning

https://github.com/crosstool-ng/crosstool-ng/issues/96
---
libgo/runtime/mprof.goc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgo/runtime/mprof.goc b/libgo/runtime/mprof.goc
index 7507dfc..44d5669 100644
--- a/libgo/runtime/mprof.goc
+++ b/libgo/runtime/mprof.goc
@@ -465,7 +465,7 @@ func ThreadCreateProfile(p Slice) (n int, ok bool) {

func Stack(b Slice, all bool) (n int) {
byte *pc, *sp;
- bool enablegc;
+ bool enablegc = false;

sp = runtime_getcallersp(&b);
pc = (byte*)(uintptr)runtime_getcallerpc(&b);
--
1.9.1