From: Adrian Bunk <bunk@stusta.de>
To: "Burton, Ross" <ross.burton@intel.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH 1/1] puzzles: fix uninitialized variable compiler error
Date: Fri, 15 Mar 2019 12:43:06 +0200 [thread overview]
Message-ID: <20190315104306.GA14180@localhost> (raw)
In-Reply-To: <CAJTo0LafGyAEuh8hbQoXNQCR5bJ9YBmMDJV-idGZ0OPMkTGQoQ@mail.gmail.com>
On Thu, Mar 14, 2019 at 07:25:16PM +0000, Burton, Ross wrote:
> Can we *please* start sending these upstream. It's not like the
> maintainer isn't responsive.
This would also help to get such patches properly reviewed.
> Ross
>
> On Thu, 14 Mar 2019 at 19:20, Joe Slater <joe.slater@windriver.com> wrote:
>...
> > +The compiler does not realize that we must go through the while()
> > +loop at least once, so we replace it with a for() loop.
>...
> > +- n = t->root;
> > +- while (n) {
> > ++ /*
> > ++ * We know t->root is not NULL. The logic
> > ++ * to break out of this is at the end of the loop.
> > ++ */
> > ++ for (n = t->root;;) {
>...
This is the second patch this week where I don't see why a "fix" should
make any difference.
The code immediately above is:
if (t->root == NULL) {
...
return orig_e;
)
The submitter did not provide information how to reproduce,
but when I try to reproduce the problem on amd64 it happens
only with -Og (due to puzzles upstream building with -Werror).
This would also explain why such patches suddenly start getting
submitted - 2 weeks ago DEBUG_OPTIMIZATION was changed from -O to -Og.
-Werror is added after the passed CFLAGS so adding -Wno-error globally
would not help here, but a non-upstreamable patch to remove the -Werror
looks more correct here as a short-term workaround.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
next prev parent reply other threads:[~2019-03-15 10:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-14 19:19 [PATCH 1/1] puzzles: fix uninitialized variable compiler error Joe Slater
2019-03-14 19:25 ` Burton, Ross
2019-03-15 10:43 ` Adrian Bunk [this message]
2019-03-15 11:50 ` Adrian Bunk
2019-03-15 12:03 ` Burton, Ross
2019-03-15 5:41 ` Khem Raj
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=20190315104306.GA14180@localhost \
--to=bunk@stusta.de \
--cc=openembedded-core@lists.openembedded.org \
--cc=ross.burton@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.