This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gofrontend-dev] Re: Go patch committed: Fix error reporting for invalid builtin calls
- From: Michael Hudson-Doyle <michael dot hudson at canonical dot com>
- To: Ian Lance Taylor <iant at golang dot org>
- Cc: Andreas Schwab <schwab at suse dot de>, gcc-patches <gcc-patches at gcc dot gnu dot org>, "gofrontend-dev at googlegroups dot com" <gofrontend-dev at googlegroups dot com>
- Date: Tue, 4 Aug 2015 14:24:47 +1200
- Subject: Re: [gofrontend-dev] Re: Go patch committed: Fix error reporting for invalid builtin calls
- Authentication-results: sourceware.org; auth=none
- References: <CAOyqgcWiyEUxd38c+iNyQob-rxOpsqN+LORy2sgQKxd074wMtg at mail dot gmail dot com> <mvmh9og3fh2 dot fsf at hawking dot suse dot de> <CAOyqgcU1Lqn4zqcC4MwHhs5apY9rHWsO1ycQR6ZWWAPyVJCTGQ at mail dot gmail dot com>
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;
^
Am I doing something wrong?
Cheers,
mwh
On 4 August 2015 at 05:55, Ian Lance Taylor <iant@golang.org> wrote:
> On Mon, Aug 3, 2015 at 2:10 AM, Andreas Schwab <schwab@suse.de> wrote:
>
>> ../../../libgo/runtime/mprof.goc: In function 'runtime_Stack':
>> ../../../libgo/runtime/mprof.goc:408:5: error: calling '__builtin_frame_address' with a nonzero argument is unsafe [-Werror=frame-address]
>> sp = runtime_getcallersp(&b);
>
> Fixed by this patch by Chris Manghane. The call was not actually
> necessary. Bootstrapped and ran Go testsuite on
> x86_64-unknown-linux-gnu. Committed to mainline. This fixes PR
> 67101.
>
> Ian
>
> --
> You received this message because you are subscribed to the Google Groups "gofrontend-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to gofrontend-dev+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.