Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!uwm.edu!lll-winken!ubvax!igor!twinkie!drk From: drk@twinkie.Rational.COM (David Kaelbling) Newsgroups: gnu.gcc Subject: gcc-1.35 vs. Sun cc -- struct parameters? Keywords: struct,cc Message-ID: <615@igor.Rational.COM> Date: 21 Feb 90 21:43:24 GMT Sender: news@Rational.COM Distribution: gnu Lines: 14 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