public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Mark Mitchell <mmitchell@usa.net>
To: Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Cc: law@cygnus.com, egcs@cygnus.com
Subject: Re: libio bugs
Date: Wed, 11 Feb 1998 11:23:00 -0000	[thread overview]
Message-ID: <199802111121.LAA12511@quickstep.stanford.edu> (raw)
In-Reply-To: <vyzoh0e30hr.fsf@issan.informatik.uni-dortmund.de>

    Mark Mitchell <mmitchell@usa.net> writes:

    |>>>>>> "Andreas" == Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> writes:

    |> uses of them in libio.  Is that OK?  Are there problems with
    |> link-compatibility, i.e., does naming the fields in struct printf_info
    |> make sure that they are initialized in some order different than the
    |> order that would be specified by the usual initialization syntax?  (I
    |> note that the current initialization order is exactly the same as that
    |> in GLIBC 2.)

    The current development version of glibc 2 adds another bitfield before
    the last field in struct printf_info, it now looks like this (is_char is
    new):

Well, my patch is in.  So, somebody needs to modify the two uses of
printf_info in iostream.cc to initialize the is_char flag
appropriately, for those versions of glibc for which it should be
initialized.  Andreas, are you willing to do this?  You've probably
got a better understanding of how to test for the right versions of
glibc and so forth.

    struct printf_info
    {
      int prec;			/* Precision.  */
      int width;			/* Width.  */
      wchar_t spec;			/* Format letter.  */
      unsigned int is_long_double:1;/* L flag.  */
      unsigned int is_short:1;	/* h flag.  */
      unsigned int is_long:1;	/* l flag.  */
      unsigned int alt:1;		/* # flag.  */
      unsigned int space:1;		/* Space flag.  */
      unsigned int left:1;		/* - flag.  */
      unsigned int showsign:1;	/* + flag.  */
      unsigned int group:1;		/* ' flag.  */
      unsigned int extra:1;		/* For special use.  */
      unsigned int is_char:1;	/* hh flag.  */
      wchar_t pad;			/* Padding character.  */
    };

-- 
Mark Mitchell		mmitchell@usa.net
Stanford University	http://www.stanford.edu


  reply	other threads:[~1998-02-11 11:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-01 12:44 Jeffrey A Law
1998-02-01 22:52 ` Mark Mitchell
1998-02-02  2:38   ` Andreas Schwab
1998-02-02 11:43     ` Mark Mitchell
1998-02-04  2:16       ` Andreas Schwab
1998-02-10 14:45         ` Mark Mitchell
1998-02-11  4:23           ` Andreas Schwab
1998-02-11 11:23             ` Mark Mitchell [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-01-21  9:54 Andreas Schwab
1998-01-23 21:26 ` H.J. Lu

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=199802111121.LAA12511@quickstep.stanford.edu \
    --to=mmitchell@usa.net \
    --cc=egcs@cygnus.com \
    --cc=law@cygnus.com \
    --cc=schwab@issan.informatik.uni-dortmund.de \
    /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).