bug-gnulib@gnu.org mirror (unofficial)
 help / color / mirror / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Sam James <sam@gentoo.org>
Cc: Peter Frazier <mrpeterfrazier@gmail.com>, bug-gnulib@gnu.org
Subject: Re: coreutils/gnulib - fts.c dangling pointers & gcc 13.1
Date: Sat, 4 Feb 2023 14:03:53 -0800	[thread overview]
Message-ID: <8e1c650a-cd3f-6f5d-ed0b-d0b7c3e55af0@cs.ucla.edu> (raw)
In-Reply-To: <3CF19D45-F152-41AF-BFA9-0FB7A4B799DB@gentoo.org>

On 2023-02-04 12:23, Sam James wrote:
> I guess it's hard for me to say given I don't know what options allowed it to be reproduced and I couldn't hit it.
> 
> I assumed it must have been -Wstrict-aliasing=2 or lower which makes it more aggressive at the risk of false positives.
> 
> But if you reproduced it, then it's useful, I suppose.

I didn't reproduce the warning, since I lack GCC "13.1". I merely looked 
at the Gnulib source and noticed a couple of places where it was not 
conforming to the C standard.  I have enough knowledge of GCC internals 
that I think I've changed the code so that it will pacify GCC "13.1".

Although the updated code still doesn't conform, it should work fine on 
real platforms. (The old code probably works too, for what it's worth.)


  reply	other threads:[~2023-02-04 22:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 20:24 coreutils/gnulib - fts.c dangling pointers & gcc 13.1 Peter Frazier
2023-02-03 22:11 ` Paul Eggert
2023-02-04 16:14   ` Sam James
2023-02-04 18:46     ` Paul Eggert
2023-02-04 19:53       ` Sam James
2023-02-04 20:20         ` Paul Eggert
2023-02-04 20:23           ` Sam James
2023-02-04 22:03             ` Paul Eggert [this message]
2023-02-04 22:10               ` Sam James

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

  List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8e1c650a-cd3f-6f5d-ed0b-d0b7c3e55af0@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=bug-gnulib@gnu.org \
    --cc=mrpeterfrazier@gmail.com \
    --cc=sam@gentoo.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).