From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4ee4751950f84e5b,start X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: Digital Unix 4.0 C compiler Date: 1997/12/08 Message-ID: <348C52FD.41C6@zk3.dec.com>#1/1 X-Deja-AN: 296360453 Organization: DEC C/C++, Digital Equipment Corporation Newsgroups: comp.unix.osf.osf1 We are able to reproduce this problem with the DEC C compiler on UNIX. We are investigating this problem now. A quick analysis of the problem suggests that the structure-return temporary isn't preserved until it is used in the enclosing function call. One possible workaround is to use "-oldc" to compile this module only. Note that -oldc will use the default C compiler from V3.2, which will not provide all of the optimizations and features of DEC C on UNIX. Another possible solution is to re-write the code to pass the structures as output arguments. If possible, this would be the better (cleaner and more efficient) fix. Let me know if you have further questions or problems. Thanks, -Jeff -- Jeff Sullivan | Digital Equipment Corp | sullivan@decc.enet.dec.com DEC C and C++ | Nashua, NH ZK3-2/2X09 | or jps@zk3.dec.com