Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!cs.utexas.edu!uunet!mcvax!kth!sunic!dkuug!daimi!mkemi From: mkemi@daimi.dk (Morten Kjeldsgaard) Newsgroups: gnu.gcc Subject: Problem with gcc 1.35 under vms 5.1 Summary: Cannot printf the word "defined" Keywords: gcc vms Message-ID: <2761@daimi.dk> Date: 19 Jul 89 16:33:42 GMT References: <2686@daimi.dk> Reply-To: mok@kemi.aau.dk (Morten Kjeldgaard) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 66 Hello again gcc fans! Thanks to all those who answered my question about large .EXE files! Now I have a standard .OPT file that I use for linking. It simply contains: gnu_cc:[000000]gcclib/l, sys$share:vaxcrtl/shareable and my "Hello, world" program now only takes 4 blocks. But here is another problem: I wanted to test what predefined names exists in the gcc system. I made a program containing several possiblities, gcc,gnu,vms,unix etc. But the resulting program gave me problems. I shaved the program down to the following, and compiled it with my gcc version 1.35 compiler on a microvax II, vms 5.1: define.c: main() { printf("vms defined\n"); } Here is what happens when define.exe runs: $ run define vms defined %SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=0000000C, PC=0000000C, PSL=00000004 Well, maybe the preprocessor takes "define" and does something strange, so I tested this out: main() { printf("vms define\n"); } and... $ $ run define vms define $ Nope, that wasn't it. Is it "defined" then? main () { printf("hello, world I am defined\n"); } $ run hello hello, world I am defined %SYSTEM-E-EXQUOTA, exceeded quota $ Yes, there seems to be a problem when you print out the word "defined". A compiler bug, or what? -~- Morten Kjeldgaard mok@kemi.aau.dk ~ mok@aaukibi.dk ~ ...!mcvax!dkuug!aaukibi!mok Biostructural Chemistry, Department of Chemistry, Aarhus University Langelandsgade 140, DK-8000 Aarhus C, Denmark Phone: +45 86 202711 + 6751 ~ Telex: 64767 aausci dk ~ Fax: +45 86 196199