Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!msnyder From: msnyder@tut.cis.ohio-state.edu (Michael V Snyder) Newsgroups: gnu.gcc.bug Subject: Re: VMS 5.1/GCC 1.35 return value bug Message-ID: <56577@tut.cis.ohio-state.edu> Date: 1 Aug 89 21:19:08 GMT References: <8907200507.AA12935@life.ai.mit.edu> Reply-To: Michael V Snyder Distribution: gnu Organization: Ohio State University Computer and Information Science Lines: 10 Brian and other VMS-using friends: Instead of trying to make the compiler recognise main() as a special case, would it not be easier to make EVERY function return a 1 in R0 in case an explicit return is not performed? I don't think this behavior should cause problems, as the behavior under these circumstances is undefined. Any program that depends on a function returning the value of it's last expression, say, probably shouldn't. Michael Snyder msnyder@csi.compuserve.com