From: Tom Tromey <tom@tromey.com>
To: Simon Marchi <simon.marchi@polymtl.ca>
Cc: asmwarrior <asmwarrior@gmail.com>, GDB Development <gdb@sourceware.org>
Subject: Re: gcc warning with "some variable may be used uninitialized in this function [-Wmaybe-uninitialized]" when building under msys
Date: Thu, 04 Oct 2018 12:41:00 -0000 [thread overview]
Message-ID: <87woqxj34a.fsf@tromey.com> (raw)
In-Reply-To: <9aa0ec3d6356d1e0c746697161918576@polymtl.ca> (Simon Marchi's message of "Thu, 04 Oct 2018 08:00:54 -0400")
>>>>> "Simon" == Simon Marchi <simon.marchi@polymtl.ca> writes:
Simon> I also see this from time to time. I think it is a false positive,
Simon> but I may be wrong. Do you see a code path that could actually be
Simon> problematic?
I think this is just that gcc doesn't know how to deal with
gdb::optional, and we aren't willing to add an initializer that would
slow down the generated code. IIUC this is a problem with std::optional
as well.
Tom
prev parent reply other threads:[~2018-10-04 12:41 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-04 6:28 asmwarrior
2018-10-04 12:01 ` Simon Marchi
2018-10-04 12:40 ` Pedro Alves
2018-10-05 5:08 ` Tom Tromey
2018-10-09 10:34 ` Pedro Alves
2018-10-09 19:34 ` Tom Tromey
2018-10-09 19:54 ` Pedro Alves
2018-10-09 20:01 ` Pedro Alves
2018-10-09 20:04 ` Tom Tromey
2018-10-04 12:41 ` Tom Tromey [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=87woqxj34a.fsf@tromey.com \
--to=tom@tromey.com \
--cc=asmwarrior@gmail.com \
--cc=gdb@sourceware.org \
--cc=simon.marchi@polymtl.ca \
/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