From: Ian Lance Taylor <iant@golang.org>
To: Michael Hudson-Doyle <michael.hudson@canonical.com>
Cc: Andreas Schwab <schwab@suse.de>,
gcc-patches <gcc-patches@gcc.gnu.org>,
"gofrontend-dev@googlegroups.com"
<gofrontend-dev@googlegroups.com>
Subject: Re: [gofrontend-dev] Re: Go patch committed: Fix error reporting for invalid builtin calls
Date: Tue, 04 Aug 2015 03:39:00 -0000 [thread overview]
Message-ID: <CAOyqgcVD9nwwAbvYgpuox5Z3OrnTLo8Sa7vGBAoAwS2sCsDudQ@mail.gmail.com> (raw)
In-Reply-To: <CAJ8wqtf0tceMAttUw8neCWn1krG+GJX==G9QFw7YfA+RqEdjqQ@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 596 bytes --]
On Mon, Aug 3, 2015 at 7:24 PM, Michael Hudson-Doyle
<michael.hudson@canonical.com> wrote:
>
> Now I get
>
> ../../../gcc/libgo/runtime/mprof.goc: In function ‘runtime_Stack’:
> ../../../gcc/libgo/runtime/mprof.goc:437:19: error: ‘enablegc’ may be
> used uninitialized in this function [-Werror=maybe-uninitialized]
> mstats.enablegc = enablegc;
> ^
> ../../../gcc/libgo/runtime/mprof.goc:406:7: note: ‘enablegc’ was declared here
> bool enablegc;
I don't know why I am not seeing this, but I've committed this patch
that should fix it.
Ian
[-- Attachment #2: patch.txt --]
[-- Type: text/plain, Size: 804 bytes --]
Index: gcc/go/gofrontend/MERGE
===================================================================
--- gcc/go/gofrontend/MERGE (revision 226533)
+++ gcc/go/gofrontend/MERGE (working copy)
@@ -1,4 +1,4 @@
-a850225433a66a58613c22185c3b09626f5545eb
+bdd98c601f2c8dbd0bf821548ba09c038f7645c4
The first line of this file holds the git revision number of the last
merge done from the gofrontend repository.
Index: libgo/runtime/mprof.goc
===================================================================
--- libgo/runtime/mprof.goc (revision 226525)
+++ libgo/runtime/mprof.goc (working copy)
@@ -403,7 +403,7 @@ func ThreadCreateProfile(p Slice) (n int
func Stack(b Slice, all bool) (n int) {
byte *pc;
- bool enablegc;
+ bool enablegc = false;
pc = (byte*)(uintptr)runtime_getcallerpc(&b);
prev parent reply other threads:[~2015-08-04 3:39 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAOyqgcWiyEUxd38c+iNyQob-rxOpsqN+LORy2sgQKxd074wMtg@mail.gmail.com>
2015-08-03 9:10 ` Andreas Schwab
2015-08-03 11:15 ` Richard Biener
2015-08-03 17:55 ` Ian Lance Taylor
2015-08-04 2:24 ` [gofrontend-dev] " Michael Hudson-Doyle
2015-08-04 3:39 ` Ian Lance Taylor [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAOyqgcVD9nwwAbvYgpuox5Z3OrnTLo8Sa7vGBAoAwS2sCsDudQ@mail.gmail.com \
--to=iant@golang.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=gofrontend-dev@googlegroups.com \
--cc=michael.hudson@canonical.com \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).