🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #52592

Re: Problems with Xview library call

#52592
From: Dan Harling
Date: Thu, 25 Jun 1992 19:27
39 lines
2254 bytes
> Date: Thu, 25 Jun 92 13:36:49 -0400
> From: rms@gnu.ai.mit.edu (Richard Stallman)
> To: harling@roadrunner.pictel.com
> Cc: help-gcc@prep.ai.mit.edu, robert.uomini@corp.sun.com,
>         harling@roadrunner.pictel.com
> Subject: Problems with Xview library call
> 
> This is the documented difference in calling conventions.  It's
> described in the GCC manual, which also says what to do about it.

Thanks, I just found the section.  To wit:

	On the Sparc, GNU CC uses an incompatible calling convention
	for structures.  It passes them by including their contents in
	the argument list, whereas the standard compiler passes them
	effectively by reference.

	This really ought to be fixed, but such calling conventions are
	not yet supported in GNU CC, so it isn't straightforward to fix
	it.  GNU CC version 2 will use a compatible calling
	convention.

	The convention for structure returning is also incompatible,
	and '-fpcc-struct-return' does not help.


> I'm surprised that -fpcc-struct-return doesn't fix the problem.
> Can you send me a self-contained test program to reproduce a problem?

I'll try to put one together and send it out to you. The "library" will
have to be compiled with 'cc' , and the "program" with 'gcc', of
course...

Thanks to everyone who offered assistance.  I guess I'll just keep
compiling that file with 'cc' until we get version 2 here.
____________________________________________________________________________
Daniel A. Harling                        (harling@pictel.com)
PictureTel Corp.             Opinions expressed are not necessarily those of
Peabody, MA  01960                 PictureTel, but they ought to be!
Technical Details
Message-ID: <9206251927.AA06798@roadrunner.pictel.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!roadrunner.pictel.com!harling

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,f008f4115c16a3e9
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1992-06-25 07:11:46 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!roadrunner.pictel.com!harling
From: harling@roadrunner.pictel.com (Dan Harling)
Subject: Re: Problems with Xview library call
Message-ID: <9206251927.AA06798@roadrunner.pictel.com>
Sender: daemon@cis.ohio-state.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Thu, 25 Jun 1992 19:27:49 GMT
Lines: 39