[gnu.gcc] gcc-1.35 vs. Sun cc -- struct parameters?

drk@twinkie.Rational.COM (David Kaelbling) (02/22/90)

Experimentation leads me to believe that gcc-1.35 and Sun cc (as
distributed in SunOS 4.0.3 for a Sun-3/80) pass structure parameters
differently.  I suspect that Sun decided to always pass structures by
reference or some such silliness -- anyway the two don't mix.  I've
tried using -fpcc-struct-return (the recommended fix for struct
function results) to no avail.  Is there some magic way to make
gcc-compiled code compatible with cc-compiled code?

	Thanks.
--
David Kaelbling                                       (408) 496-3600
c/o Rational; 3320 Scott Boulevard; Santa Clara, CA       95054-3197
Email: drk@Rational.COM, or uucp {uunet,ubvax,amdcad,aeras}!igor!drk