Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!usc!orion.cf.uci.edu!iglesias From: iglesias@orion.cf.uci.edu (Mike Iglesias) Newsgroups: gnu.gcc.bug Subject: Re: VMS binaries Message-ID: <2110@orion.cf.uci.edu> Date: 20 Jun 89 17:25:38 GMT References: <8906200128.AA06396@life.ai.mit.edu> Reply-To: iglesias@orion.cf.uci.edu (Mike Iglesias) Distribution: gnu Organization: University of California, Irvine Lines: 19 In article <8906200128.AA06396@life.ai.mit.edu> KEISTER@UINPLA.NPL.UIUC.EDU (Brad Keister) writes: >I've been able to retrieve the gcc-vms binaries from prep.ai.mit.edu, but >am having trouble with the executables which it generates. The simple >"Hello, world." file runs fine with VAX C, but the gcc-vms package >generates an executable which yields "access violation" error messages. >Has anyone else seen this and/or know what to do about it? We are running >VMS 5.1 here. > > [example deleted] You need to put an 'exit(1);' after the printf. I can't remember the exact specifics of the problem, but I seem to remember that gcc isn't setting up the exit status correctly. You're not really getting an error - gcc left something in R0 that made DCL think you got an ACCVIO. Mike Iglesias University of California, Irvine