🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1167

Re: stdarg/varargs and the v?printf's on HP700

#1167
From: Tim Moore
Date: Wed, 07 Oct 1992 14:13
26 lines
1450 bytes
In article <9210062259.AA01023@bunny.gte.com> steve%eowyn@gte.com (Steve Preston) writes:

   HP9000/720 HPUX 8.07 gcc 2.2.2 (configured for hppa1.1-hp-hpux)

   This is really HP's fault, I would guess.

   The GNU C compiler defines its own version of stdarg/varargs data
   structures, defining the type va_list as a structure of pointers,
   thusly:

   typedef struct
   {
...
   } va_list;

   In the HPUX headers, the v?printf's are declared to take the type
   __va_list which is typedef'ed as a pointer to double.  So any calls to
   v?printf either cause a compile error or fail badly at runtime.

varargs/stdargs have been rewritten for gcc 2.3 (coming soon) to be
compatible with HP's implementation.

--
Tim Moore                    moore@cs.utah.edu {bellcore,hplabs}!utah-cs!moore
"Wind in my hair - Shifting and drifting - Mechanical music - Adrenaline surge"
	- Rush
Technical Details
Message-ID: <MOORE.92Oct7101345@defmacro.cs.utah.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hellgate.utah.edu!moore%cs
References: moore%cs@hellgate.utah.edu (Tim Moore)

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!hellgate.utah.edu!moore%cs
From: moore%cs@hellgate.utah.edu (Tim Moore)
Subject: Re: stdarg/varargs and the v?printf's on HP700
Message-ID: <MOORE.92Oct7101345@defmacro.cs.utah.edu>
Sender: gnulists@ai.mit.edu
Organization: University of Utah CS Dept
References: moore%cs@hellgate.utah.edu (Tim Moore)
Distribution: gnu
Date: Wed, 7 Oct 1992 14:13:45 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 27