public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Steve Ellcey <sellcey@cavium.com>
To: Florian Weimer <fweimer@gapps.redhat.com>
Cc: libc-alpha <libc-alpha@sourceware.org>
Subject: Re: Testing build failure with latest GCC
Date: Thu, 25 May 2017 17:05:00 -0000	[thread overview]
Message-ID: <1495731917.18342.17.camel@cavium.com> (raw)
In-Reply-To: <CAO3sB51iTc+MQNEHdLtrcxVXsr+0hYq1VWJzg8xVYesaoaoJRw@mail.gmail.com>

On Thu, 2017-05-25 at 18:56 +0200, Florian Weimer wrote:
> On Thu, May 25, 2017 at 6:50 PM, Steve Ellcey <sellcey@cavium.com>
> wrote:
> > 
> > I am building the top-of-tree glibc with top-of-tree gcc and getting
> > these messages when running 'make check'.  Should we explicitly ignore
> > the return value of fgets in these tests or check it and set 'failed'
> > if it is not the expected value?  Or do we think GCC is at fault?  It
> > seems like a legimate warning and we do compile with -Wall -Werror.
> Any idea why it didn't warn before?

No I don't know why it didn't warn before.  I assume it is a recent GCC
change but I don't know what change.  I'll see if I can track down a
specific change that caused this to start.

> The f* stream functions are special. You can check for errors using
> the return value, or using ferror. Therefore, the attribute might not
> be correct.
> 
> Considering how difficult is to bypass warn-used attribute (a cast to
> void is not enough), I wonder if we should drop the attribute.

That is a good point, I thought a '(void)' cast could fix this but I
see that it does not.

Steve Ellcey

  reply	other threads:[~2017-05-25 17:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-25 16:50 Steve Ellcey
2017-05-25 16:56 ` Florian Weimer
2017-05-25 17:05   ` Steve Ellcey [this message]
2017-05-29 14:27     ` Cyril Hrubis
2017-05-25 17:14   ` Steve Ellcey

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=1495731917.18342.17.camel@cavium.com \
    --to=sellcey@cavium.com \
    --cc=fweimer@gapps.redhat.com \
    --cc=libc-alpha@sourceware.org \
    /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).