🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #509

Re: VMS 5.1/GCC 1.35 return value bug

#509
From: Michael V Snyder
Date: Tue, 01 Aug 1989 21:19
10 lines
995 bytes
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
Technical Details
Message-ID: <56577@tut.cis.ohio-state.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!msnyder
References: <8907200507.AA12935@life.ai.mit.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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 <msnyder@cis.ohio-state.edu>
Distribution: gnu
Organization: Ohio State University Computer and Information Science
Lines: 10