public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
From: Chris Metcalf <cmetcalf@tilera.com>
To: Roland McGrath <roland@hack.frob.com>
Cc: <libc-alpha@sourceware.org>, <libc-ports@sourceware.org>
Subject: Re: [PATCH roland/off64_t] clean up wordsize-64 off_t functions
Date: Thu, 02 Aug 2012 18:14:00 -0000	[thread overview]
Message-ID: <501AC359.5070206@tilera.com> (raw)
In-Reply-To: <20120802172110.E4A912C0DF@topped-with-meat.com>

On 8/2/2012 1:21 PM, Roland McGrath wrote:
> If there are any linux-generic configurations where off_t matches off64_t,
> i.e. __SLONGWORD_TYPE matches __SQUAD_TYPE (tilegx64?), then that will need
> some additional attention too.  I'm not sure how best to handle that.
> It would be nice not to add another bits/typesizes.h, but it may be
> unavoidable unless every such machine predefines __LP64__ or something
> like that.  In trunk GCC it looks like that is done generically, but I
> don't know if all relevant GCC versions did that.

Yes, it's correct that tilegx64 has off_t == off64_t.

I think using "#ifdef __LP64__" in
ports/sysdeps/unix/sysv/linux/generic/bits/typesizes.h is a reasonable
approach here; it's certainly true for tile that gcc supports __LP64__ that
way, and since as you say it's generic in gcc, I think we can assume that
any new platform that incorporates support for linux-generic will also
properly support __LP64__.

Alternately, I suppose, one could #include <bits/wordsize.h> in
<bits/typesizes.h> and test __WORDSIZE == 64.  But I don't think it's
necessary.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com

  reply	other threads:[~2012-08-02 18:14 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-02 17:21 Roland McGrath
2012-08-02 18:14 ` Chris Metcalf [this message]
2012-08-02 20:23   ` Roland McGrath
2012-08-02 20:46 ` Joseph S. Myers
2012-08-02 20:54   ` Roland McGrath
2012-08-02 21:47   ` Roland McGrath
2012-08-02 21:55     ` [PATCH roland/dirent64] clean up wordsize-64 struct dirent functions Roland McGrath
2012-08-03 20:12       ` Richard Henderson
2012-08-04  8:30       ` David Miller
2012-08-04  9:23         ` Andreas Schwab
2012-08-04  9:26           ` David Miller
2012-08-04 10:37             ` David Miller
2012-08-04 16:14       ` Chris Metcalf
2012-08-03 19:58     ` [PATCH roland/off64_t] clean up wordsize-64 off_t functions Richard Henderson
2012-08-03 20:12       ` Roland McGrath

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=501AC359.5070206@tilera.com \
    --to=cmetcalf@tilera.com \
    --cc=libc-alpha@sourceware.org \
    --cc=libc-ports@sourceware.org \
    --cc=roland@hack.frob.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).