From: Richard Henderson <rth@cygnus.com>
To: Jason Kim <jwk2@EECS.Lehigh.EDU>
Cc: khendricks@ivey.uwo.ca,
"linuxppc-dev@lists.linuxppc.org"
<linuxppc-dev@lists.linuxppc.org>,
"gcc-patches@gcc.gnu.org" <gcc-patches@gcc.gnu.org>,
"David A. Gatwood" <dgatwood@deepspace.mklinux.org>,
Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
Subject: Re: patch for problem with va-ppc.h included with egcs and gcc-2.95.2
Date: Wed, 1 Dec 1999 23:15:52 -0800 [thread overview]
Message-ID: <19991201231552.A15266@cygnus.com> (raw)
In-Reply-To: <38460186.8CEC249C@eecs.lehigh.edu>; from Jason Kim on Thu, Dec 02, 1999 at 12:20:06AM -0500
On Thu, Dec 02, 1999 at 12:20:06AM -0500, Jason Kim wrote:
> Well, xemacs-21.1.8, Mesa-3.0, gcc-2.95.2, xscreensaver-3.21, gle-2.3 and
> ssh-2.0.13 all compile and link against the older dynamic libraries, but
> use the va_list definition from my patch. All seem to work fine.
An interesting happy accident. The PPC SVR4 ABI passes structures
by reference, which at the machine level winds up looking just like
it does when the array decomposes into a pointer.
> Anybody have any examples of where there IS va_list passage from user code to
> existing dynlib code (or vice versa)?
Of course -- vfprintf.
> If that is the case, then applying the patch en-mass
> seems harmless way for getting rid of the array based va_list once
> and for all.
Except that we're not going to do that. We'll stay with the
letter of the PPC SVR4 ABI law, thanks.
Despite what you may think, PPC is not unique in its use of an
array definition for va_list. Whatever changes that might could
be made in gcc doesn't make the code in question any more correct
pedantically, and will continue to break when you go use someone
else's compiler.
r~
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~1999-12-02 7:15 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-11-30 6:00 patch for problem with va-ppc.h included with egcs and gcc-2.95.2 Jason Kim
1999-11-30 10:58 ` Franz Sirl
1999-11-30 18:05 ` Jason Kim
1999-11-30 23:28 ` Jason Kim
1999-12-01 15:33 ` Franz Sirl
1999-12-01 19:18 ` Jason Kim
1999-12-01 19:41 ` Kevin Hendricks
1999-12-02 5:20 ` Jason Kim
1999-12-02 7:15 ` Richard Henderson [this message]
1999-12-02 7:27 ` Kevin Buettner
1999-12-02 16:15 ` Jason Kim
1999-12-01 19:43 ` David A. Gatwood
1999-12-02 2:04 ` Jason Kim
-- strict thread matches above, loose matches on Subject: below --
1999-11-29 21:03 Jason Kim
1999-11-29 22:45 ` Franz Sirl
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=19991201231552.A15266@cygnus.com \
--to=rth@cygnus.com \
--cc=Franz.Sirl-kernel@lauterbach.com \
--cc=dgatwood@deepspace.mklinux.org \
--cc=gcc-patches@gcc.gnu.org \
--cc=jwk2@EECS.Lehigh.EDU \
--cc=khendricks@ivey.uwo.ca \
--cc=linuxppc-dev@lists.linuxppc.org \
/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).