From: James Greenhalgh <james.greenhalgh@arm.com>
To: Alan Modra <amodra@gmail.com>
Cc: Siva Chandra <sivachandra@google.com>,
Ulrich Weigand <uweigand@de.ibm.com>,
gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [PATCH] PR c++/17494 - Fix evaluation of method calls under EVAL_SKIP
Date: Wed, 05 Nov 2014 11:00:00 -0000 [thread overview]
Message-ID: <20141105110026.GA31231@arm.com> (raw)
In-Reply-To: <20141105002415.GG20070@bubble.grove.modra.org>
On Wed, Nov 05, 2014 at 12:24:16AM +0000, Alan Modra wrote:
> On Mon, Nov 03, 2014 at 06:08:15PM -0800, Siva Chandra wrote:
> > >> PR c++/17494
> > >> * eval.c (evaluate_subexp_standard): Evaluate the "object" and
> > >> the method args also under EVAL_SKIP when evaluating method
> > >> calls under EVAL_SKIP.
> >
> > Thanks for the review. Pushed: e0f52461c2467b6610391681fa27cd9b3c5def57
>
> After this patch, when using gcc-4.9.1 and gcc-5.0 (20140911) I see
> what looks to me to be nonsense errors (ie. I'd suspect a compiler
> bug). Does anyone else see the same? Nothing special in configure
> options, x86_64-linux.
For what it is worth, I'm seeing the same with my GCC 4.9.1 (x84_64-linux),
again nothing special in the configure options for GCC:
../gcc-4.9.1/configure --enable-checking=release --with-cpu=native
Thanks,
James
> /src/binutils-gdb/gdb/eval.c: In function âevaluate_subexp_standardâ:
> /src/binutils-gdb/gdb/eval.c:745:16: error: âretâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> struct value *ret = NULL;
> ^
> In file included from /src/binutils-gdb/gdb/common/common-defs.h:49:0,
> from /src/binutils-gdb/gdb/defs.h:28,
> from /src/binutils-gdb/gdb/eval.c:20:
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: error: âbufâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: note: âbufâ was declared here
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/eval.c:747:2: note: in expansion of macro âTRY_CATCHâ
> TRY_CATCH (ex, RETURN_MASK_ERROR)
> ^
> /src/binutils-gdb/gdb/eval.c:1429:19: error: âvalueâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> struct value *value = NULL;
> ^
> In file included from /src/binutils-gdb/gdb/common/common-defs.h:49:0,
> from /src/binutils-gdb/gdb/defs.h:28,
> from /src/binutils-gdb/gdb/eval.c:20:
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: error: âbufâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: note: âbufâ was declared here
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/eval.c:1430:5: note: in expansion of macro âTRY_CATCHâ
> TRY_CATCH (except, RETURN_MASK_ERROR)
> ^
> /src/binutils-gdb/gdb/eval.c:1846:18: error: âvalueâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> struct value *value = NULL;
> ^
> In file included from /src/binutils-gdb/gdb/common/common-defs.h:49:0,
> from /src/binutils-gdb/gdb/defs.h:28,
> from /src/binutils-gdb/gdb/eval.c:20:
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: error: âbufâ may be used uninitialized in this function [-Werror=maybe-uninitialized]
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/common/common-exceptions.h:148:20: note: âbufâ was declared here
> SIGJMP_BUF *buf = \
> ^
> /src/binutils-gdb/gdb/eval.c:1847:4: note: in expansion of macro âTRY_CATCHâ
> TRY_CATCH (except, RETURN_MASK_ERROR)
> ^
> cc1: all warnings being treated as errors
>
>
> --
> Alan Modra
> Australia Development Lab, IBM
>
next prev parent reply other threads:[~2014-11-05 11:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 19:11 Siva Chandra
2014-10-27 17:22 ` Siva Chandra
2014-11-03 14:35 ` Siva Chandra
2014-11-03 15:08 ` Ulrich Weigand
2014-11-04 2:08 ` Siva Chandra
2014-11-05 0:24 ` Alan Modra
2014-11-05 0:33 ` Siva Chandra
2014-11-05 11:00 ` James Greenhalgh [this message]
2014-11-05 12:54 ` Alan Modra
2014-11-10 14:24 ` [push] Work around GCC bug 63748 (Re: [PATCH] PR c++/17494 - Fix evaluation of method calls under EVAL_SKIP) Ulrich Weigand
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=20141105110026.GA31231@arm.com \
--to=james.greenhalgh@arm.com \
--cc=amodra@gmail.com \
--cc=gdb-patches@sourceware.org \
--cc=sivachandra@google.com \
--cc=uweigand@de.ibm.com \
/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