Xref: utzoo comp.unix.sysv386:3601 comp.sources.bugs:2772 Path: utzoo!utgpu!watserv1!watmath!att!tut.cis.ohio-state.edu!cs.utexas.edu!usc!csun!kithrup!sef From: sef@kithrup.COM (Sean Eric Fagan) Newsgroups: comp.unix.sysv386,comp.sources.bugs Subject: Re: Fix for GCC/G++ 1.37 -fpcc-struct-return under SCO UNIX Message-ID: <1991Jan03.030357.26486@kithrup.COM> Date: 3 Jan 91 03:03:57 GMT References: <278233F9.F7F@tct.uucp> Organization: Kithrup Enterprises, Ltd. Lines: 14 In article <278233F9.F7F@tct.uucp> chip@tct.uucp (Chip Salzenberg) writes: >At least under SCO UNIX, the system C compiler doesn't work that way. Which C compiler? msc and rcc both handle such functions differently. For a function called test, taking three parameters (int, char, int), and returning a structure, msc passed in 16 bytes, and got rid of 16 bytes after the call; rcc passed in 16 bytes, but only got rid of 12 bytes afterwards. *sigh* -- Sean Eric Fagan | "I made the universe, but please don't blame me for it; sef@kithrup.COM | I had a bellyache at the time." -----------------+ -- The Turtle (Stephen King, _It_) Any opinions expressed are my own, and generally unpopular with others.