public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: David Edelsohn <dje.gcc@gmail.com>
To: "CHIGOT, CLEMENT" <clement.chigot@atos.net>,
	Jeff Law <jeffreyalaw@gmail.com>
Cc: GCC Patches <gcc-patches@gcc.gnu.org>
Subject: Re: [PATCH] aix: handle 64bit inodes for include directories
Date: Thu, 30 Dec 2021 11:43:57 -0500	[thread overview]
Message-ID: <CAGWvny=5XgjydQni2kSugqMMC7U8LfaQeBmEuNrxTcmkf+dnEQ@mail.gmail.com> (raw)
In-Reply-To: <PA4PR02MB668641822FD7339E89B8B16DEAC49@PA4PR02MB6686.eurprd02.prod.outlook.com>

Hi, Jeff

Is the revised patch from Clement okay?

Thanks, David

On Tue, Aug 24, 2021 at 3:59 AM CHIGOT, CLEMENT <clement.chigot@atos.net> wrote:
>
> >>> So my worry here is this is really a host property -- ie, this is
> >>> behavior of where GCC runs, not the target for which GCC is generating code.
> >>>
> >>> That implies that the change in aix.h is wrong.  aix.h is for the
> >>> target, not the host -- you don't want to define something like
> >>> HOST_STAT_FOR_64BIT_INODES there.
> >>>
> >>> You'd want to be triggering this behavior via a host fragment, x-aix, or
> >>> better yet via an autoconf test.
> >> Indeed, would this version be better ? I'm not sure about the configure test.
> >> But as we are retrieving the size of dev_t and ino_t just above, I'm assuming
> >> that the one being used in stat directly. At least, that's the case on AIX, and
> >> this test is only made for AIX.
> > It's a clear improvement.  It's still checking for the aix target though:
> >
> > +# Select the right stat being able to handle 64bit inodes, if needed.
> > +if test "$enable_largefile" != no; then
> > +  case "$target" in
> > +    *-*-aix*)
> > +      if test "$ac_cv_sizeof_ino_t" == "4" -a "$ac_cv_sizeof_dev_t" ==
> > 4; then
> > +
> > +$as_echo "#define HOST_STAT_FOR_64BIT_INODES stat64x" >>confdefs.h
> > +
> > +      fi;;
> > +  esac
> > +fi
> >
> > Again, we're dealing with a host property.  You might be able to just
> > change $target above to $host.  Hmm, that makes me wonder about canadian
> > crosses where host != build.    We may need to do this for both the aix
> > host and aix build.
>
> Yes, my bad, I've updated the case. I don't know if there is a usual way
> to check both $build and $host. I've tried to avoid code duplication so
> tell me if it's okay or if you'd rather have a case for $build and one
> for $host.
>
> Thanks,
> Clément

  parent reply	other threads:[~2021-12-30 16:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-17 11:44 CHIGOT, CLEMENT
2021-05-17 19:05 ` David Edelsohn
2021-05-22 23:42   ` David Edelsohn
2021-06-23  6:53     ` CHIGOT, CLEMENT
2021-06-24 19:17       ` Jeff Law
2021-06-28  7:16         ` CHIGOT, CLEMENT
2021-08-11 11:48           ` CHIGOT, CLEMENT
2021-08-19 18:23           ` Jeff Law
2021-08-24  7:57             ` CHIGOT, CLEMENT
2021-10-12  8:35               ` CHIGOT, CLEMENT
2021-10-26 14:51                 ` CHIGOT, CLEMENT
2021-11-16  8:45                   ` CHIGOT, CLEMENT
2021-12-30 16:43               ` David Edelsohn [this message]
2021-12-30 18:27                 ` Jeff Law

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='CAGWvny=5XgjydQni2kSugqMMC7U8LfaQeBmEuNrxTcmkf+dnEQ@mail.gmail.com' \
    --to=dje.gcc@gmail.com \
    --cc=clement.chigot@atos.net \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jeffreyalaw@gmail.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).