linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: alex@cosmo.allay.net
Cc: linuxppc-dev@lists.linuxppc.org, max@trega.com
Subject: Re: lots of questions (va_list, embedded perl, cvsd, introduction - sort of)
Date: Tue, 5 Dec 2000 18:51:11 +0100	[thread overview]
Message-ID: <00120518511100.12228@enzo.bigblue.local> (raw)
In-Reply-To: <Pine.LNX.4.10.10012051230170.22364-100000@macachu.ex-pressnet.com>


On Tuesday 05 December 2000 18:36, Alex Avriette wrote:
> And lo there was much discussion regarding:
> > > void
> > > log (const char *fmt, ...)
> >
> > This code looks OK. What environment? (gcc/glibc)
>
> from glibcbug:
>
> Host type: powerpc-redhat-linux-gnu
> System: Linux macachu 2.4.0-test11 #5 Sun Nov 26 13:51:22 EST 2000 ppc
> unknown
> Architecture: ppc
>
> Addons: crypt linuxthreads
> Build CFLAGS: -g -O2
> Build CC: gcc
> Compiler version: 2.95.2 19991024 (release/franzo)
> Kernel headers: 2.4.0-test11
> Symbol versioning: yes
> Build static: yes
> Build shared: yes
> Build pic-default: no
> Build profile: yes
> Build omitfp: no
> Build bounded: no
> Build static-nss: no
> Stdio: libio
>
> > > void vs_test ( const char *fmt, ...)
> >
> > This testcase is buggy (look at the printf!), if fixed it behaves as
> > expected. You would have seen that if you compiled with -W -Wall!
>
> whoops! (blush!) gotcha.
>
> > > void nested_test ( const char *fmt, ...)
> >
> > This testcase is bogus since you miss the required va_start/va_end pairs.
> > It misbehaves as expected.
>
> let me check with the bsd guy, but AIR, it runs without the two pairs. i
> could be wrong.

It may run on some platforms by accident, but this is simply illegal C code
if you want to process the same AP 2 times without an intervening
va_end()/va_start() pair.

> > I've tested this both with gcc-2.95.3 and a recent gcc-2.97 snapshot.
> > This looks a lot like your are still using egcs on PPC, don't do that,
> > use gcc-2.95.[23] as the current distributions do.
>
> all my experience writing c was in dos on borland c++, years ago. im
> actually not sure about egcs, except that i get the error in gdb. how can
> i be sure, and if i am, how can i switch?

rpm -q binutils egcs gcc glibc

You can get current stuff at
ftp://devel.linuxppc.org/users/fsirl/glibc-2.1/RPMS/ppc/

Franz.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

      reply	other threads:[~2000-12-05 17:51 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200012050600.AAA21723@lists.linuxppc.org>
2000-12-05  7:39 ` lots of questions (va_list, embedded perl, cvsd, introduction - sort of) Alex Avriette
2000-12-05 10:13   ` Michael Schmitz
2000-12-05 10:28   ` Michael Schmitz
2000-12-05 17:25     ` Alex Avriette
2000-12-05 18:04       ` Michael Schmitz
2000-12-05 18:20         ` Alex Avriette
2000-12-05 18:12       ` Michael Schmitz
2000-12-05 19:09         ` Michael Schmitz
2000-12-05 16:25   ` Franz Sirl
2000-12-05 17:36     ` Alex Avriette
2000-12-05 17:51       ` Franz Sirl [this message]

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=00120518511100.12228@enzo.bigblue.local \
    --to=franz.sirl-kernel@lauterbach.com \
    --cc=alex@cosmo.allay.net \
    --cc=linuxppc-dev@lists.linuxppc.org \
    --cc=max@trega.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 NNTP newsgroup(s).