public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Alan Modra <amodra@gmail.com>
To: Roland McGrath <roland@hack.frob.com>
Cc: libc-alpha@sourceware.org, bug-gnulib@gnu.org
Subject: Re: [PATCH 2/5] obstack tidy part 2
Date: Thu, 30 Oct 2014 23:54:00 -0000	[thread overview]
Message-ID: <20141030235423.GS4267@bubble.grove.modra.org> (raw)
In-Reply-To: <20141030195111.D1DC42C3B15@topped-with-meat.com>

On Thu, Oct 30, 2014 at 12:51:11PM -0700, Roland McGrath wrote:
> > a) Don't be concerned about "not polluting the namespace with stddef.h
> >    symbols" in obstack.h, since gnulib string.h includes stddef.h
> >    anyway, and it seems unlikely that anyone would care.
> 
> libc is where this sort of constraint is most likely to be important.  I
> doubt gnulib users care.  Since obstack.h is not standard, we are free to
> decide we don't care for libc either.  But it is not something to be done
> lightly.  If this change doesn't actually enable anything else you're
> doing, please leave it for later as a separate individual item.

stddef.h is needed for size_t, used in the next patch of the series.
Hmm, I see most of glibc's public headers that require size_t do so
using "#define __need_size_t".  Would the following be acceptable?

#define __need_ptrdiff_t
#define __need_size_t
#include "stddef.h"

Continuing to use PTR_INT_TYPE and inventing another for size_t rather
than using the standard types just seems so 1980 style.

> You didn't report what testing you did for the libc build, which is
> mandatory for approval.  In particular, we have 'make check-abi' to be
> concerned with, which is not something relevant to gnulib.

I built both x86_64-linux and i686-linux, and ran "make check".  The
cover letter noted that the abilist files need updating for the abi
check to pass.  Both builds showed the following diff, with the
expected obstack symbols plus another apparently due to building with
a non-standard prefix.

--- ../sysdeps/unix/sysv/linux/x86_64/64/libc.abilist	2014-07-02 13:52:44.682722675 +0930
+++ /home/alan/build/glibc/libc.symlist	2014-10-27 16:27:51.205030088 +1030
@@ -519 +519 @@ GLIBC_2.2.5
- _nl_default_dirname D 0x12
+ _nl_default_dirname D 0x1c
@@ -1856,0 +1857,8 @@ GLIBC_2.2.6
+GLIBC_2.21
+ GLIBC_2.21 A
+ _obstack_allocated_p F
+ _obstack_begin F
+ _obstack_begin_1 F
+ _obstack_free F
+ _obstack_memory_used F
+ _obstack_newchunk F

I also looked at exported obstack symbols for various other
non-standard builds, and checked that __GI__obstack_newchunk matched
the proper _obstack_newchunk (I had it wrong at one stage).

-- 
Alan Modra
Australia Development Lab, IBM

  reply	other threads:[~2014-10-30 23:54 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <cover.1414461460.git.amodra@gmail.com>
2014-10-29  3:32 ` Alan Modra
2014-10-30 19:51   ` Roland McGrath
2014-10-30 23:54     ` Alan Modra [this message]
2014-10-29  3:32 ` [PATCH 3/5] 64-bit obstack support, part 1 Alan Modra
2014-10-30 19:52   ` Roland McGrath
2014-10-31  0:38     ` Alan Modra
2014-10-29  3:32 ` [PATCH 1/5] obstack tidy " Alan Modra
2014-10-30 19:43   ` Roland McGrath
2014-10-29  3:32 ` [PATCH 4/5] 64-bit obstack support, part 2 Alan Modra
2014-10-29  3:33 ` [PATCH 5/5] 64-bit obstack support, part 3 Alan Modra
2014-10-29  3:35 ` [PATCH] 64-bit obstack support Alan Modra
2014-10-29 18:34   ` Joseph S. Myers
2014-10-30  1:53     ` Alan Modra

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=20141030235423.GS4267@bubble.grove.modra.org \
    --to=amodra@gmail.com \
    --cc=bug-gnulib@gnu.org \
    --cc=libc-alpha@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).