Article View: gnu.gcc.bug
Article #871gcc-1.36.92 on SPARC running SunOS 4.0.3
From: Stu Grossman
Date: Sun, 14 Jan 1990 20:30
Date: Sun, 14 Jan 1990 20:30
22 lines
986 bytes
986 bytes
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 <ndbm.h>
#include <sys/file.h>
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);
}
Technical Details
Message-ID:
<9001142030.AA09670@Sunburn.Stanford.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!SUNBURN.STANFORD.EDU!grossmanShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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