public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Alistair Francis <alistair23@gmail.com>
To: Joseph Myers <joseph@codesourcery.com>
Cc: "H.J. Lu" <hjl.tools@gmail.com>,
	"Maciej W. Rozycki" <macro@wdc.com>,
	 Alistair Francis <alistair.francis@wdc.com>,
	GNU C Library <libc-alpha@sourceware.org>
Subject: Re: Problem with RISC-V
Date: Tue, 8 Sep 2020 12:47:24 -0700	[thread overview]
Message-ID: <CAKmqyKOMktvSC__zPJwSi2_r=TVgL1QyvnxG7WN2nYz5K7iDxQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.21.2009081629310.8874@digraph.polyomino.org.uk>

On Tue, Sep 8, 2020 at 9:39 AM Joseph Myers <joseph@codesourcery.com> wrote:
>
> On Tue, 8 Sep 2020, H.J. Lu via Libc-alpha wrote:
>
> > > Also, that particular binutils commit doesn't actually seem to fix things
> > > - there is still
> > >
> > > Extra PLT reference: libc.so: memset

You are right, the failure is still there. I'm sure I tested this and
it didn't fail.

> >
> > Is this related?
> >
> > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67220
>
> I don't see why it would be.
>
> All the references to the PLT entry for memset are from libgcc soft-fp
> code for TFmode.  This isn't a matter of visibility attributes not being
> acted on, libgcc.a can't use such visibility for memset because the same
> libgcc.a gets used outside of libc as well.
>
> I'm not sure it actually makes much sense for GCC to be generating memset
> calls for whatever memory clearing takes place inside soft-fp (soft-fp
> never calls memset explicitly from the C sources; libgcc.a for RV64
> doesn't have any such memset references, for example; any clearing should
> be of small aligned pieces of memory that would make more sense to clear
> inline).  So there may be an issue with questionable GCC code generation
> choices for RV32 that should be investigated.  But when libgcc functions
> reference libc functions, those generally need to be listed in
> localplt.data for that glibc configuration (with a '?' to make the
> reference optional, see e.g. the
> sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/localplt.data entries for

I sent a patch to do exactly that, but it was never accepted. Should I
look at merging it?


> abort and memset - in this case, the RV32 failures don't appear with GCC
> 9, which both means the '?' is required to avoid making the tests fail
> there, and suggest there may be a GCC regression).

Yep, it does look like a GCC regression between 9 and 10. I'm bisecting now.

Alistair

>
> --
> Joseph S. Myers
> joseph@codesourcery.com

  reply	other threads:[~2020-09-08 19:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-07 13:11 Lukasz Majewski
2020-09-07 13:29 ` Adhemerval Zanella
2020-09-07 15:22 ` Alistair Francis
2020-09-07 16:52   ` Joseph Myers
2020-09-08 15:57     ` Joseph Myers
2020-09-08 16:02       ` H.J. Lu
2020-09-08 16:39         ` Joseph Myers
2020-09-08 19:47           ` Alistair Francis [this message]
2020-09-08 20:25             ` Joseph Myers
2020-09-12 21:49               ` Alistair Francis

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='CAKmqyKOMktvSC__zPJwSi2_r=TVgL1QyvnxG7WN2nYz5K7iDxQ@mail.gmail.com' \
    --to=alistair23@gmail.com \
    --cc=alistair.francis@wdc.com \
    --cc=hjl.tools@gmail.com \
    --cc=joseph@codesourcery.com \
    --cc=libc-alpha@sourceware.org \
    --cc=macro@wdc.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).