Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SUNBURN.STANFORD.EDU!grossman From: grossman@SUNBURN.STANFORD.EDU (Stu Grossman) Newsgroups: gnu.gcc.bug Subject: gcc-1.36.92 on SPARC running SunOS 4.0.3 Message-ID: <9001142030.AA09670@Sunburn.Stanford.EDU> Date: 14 Jan 90 20:30:56 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 22 The following program demonstrates the problem that I mentioned earlier. Upon closer inspection though, it seems that the problem may actually be with struct passing, not struct returns as I had previously thought. Compiling it with/without -fpcc-struct-return makes no difference. #include #include main() { DBM *db; datum data, key; db = dbm_open("/usr/lib/aliases", O_RDONLY, 0); key.dptr = "postmaster"; key.dsize = sizeof("postmaster"); data = dbm_fetch(db, key); printf("data=%s\n", data.dptr); }