CSERH000@KSUVXA.KENT-STATE.EDU ("Leo Holmberg 672-7971", 216) (10/26/89)
Greetings: I don't know if you are accepting bug reports from VMS systems are not..if you are, I think I have one that is probably pretty easy. If I output the string 'A string', I get an ugly looking message about an access violation, after the program has executed. However, if I append a leading blank (i.e. the string is now ' A string') I don't get the violation. The following is a copy of the log file that tries to show what happens. I've added a '<--' to what I've entered. I am linking with an .OPT file, i.e. vaxlib is a logical which points to GNUC.OPT. The contents of GNUC.OPT are... sys$share:vaxcrtl/share However, I get the same problem no matter how I link. This is a VMS 5.0-2 system, GNUC C Version 1.36. Any suggestions? $ type test1.c <-- main() { printf("A string"); } $ gcc/verbose test1 <-- $ gcc_cpp TEST1.C GCC_000043DB.CPP $ Status=$status $ gcc_cc1 GCC_000043DB.CPP -dumpbase TEST1.C -opt -mgnu -mvaxc-alignment -o GCC_000043DB.S main time in parse: 0.100000 time in integration: 0.000000 time in jump: 0.010000 time in cse: 0.030000 time in loop: 0.000000 time in flow: 0.030000 time in combine: 0.010000 time in local-alloc: 0.030000 time in global-alloc: 0.040000 time in dbranch: 0.000000 time in final: 0.030000 time in varconst: 0.000000 time in symout: 0.000000 time in dump: 0.000000 $ Status=$status $ gcc_as GCC_000043DB.S -o TEST1.OBJ $ Status=$status $ link test1,vaxlib/options <-- A string %SYSTEM-W-ACCVIO, access violation, reason mask=00, virtual address=00000008, PC=00000008, PSL=00000004 $ type test1.c <-- (I've added a space to the string) main() { printf(" A string"); } $ gcc/verbose test1 $ gcc_cpp TEST1.C GCC_000043DB.CPP $ Status=$status $ gcc_cc1 GCC_000043DB.CPP -dumpbase TEST1.C -opt -mgnu -mvaxc-alignment -o GCC_000043DB.S main time in parse: 0.110000 time in integration: 0.000000 time in jump: 0.000000 time in cse: 0.020000 time in loop: 0.010000 time in flow: 0.020000 time in combine: 0.000000 time in local-alloc: 0.010000 time in global-alloc: 0.040000 time in dbranch: 0.000000 time in final: 0.050000 time in varconst: 0.000000 time in symout: 0.000000 time in dump: 0.000000 $ Status=$status $ gcc_as GCC_000043DB.S -o TEST1.OBJ $ Status=$status $ link test1,vaxlib/options $ run test1 A string $ show logical gnu* LNM$PROCESS_TABLE) (LNM$JOB_80414300) (LNM$GROUP_000001) (LNM$SYSTEM_TABLE) "GNU_CC" = "SYS$SYSDEVICE:[GCC.]" "GNU_CC_INCLUDE" = "SYS$SYSDEVICE:[GCC.INCLUDE.]" "GNU_CC_VERSION" = "1.36" $