Path: utzoo!telly!ddsw1!lll-winken!killer!texbell!bigtex!natinst!cs.utexas.edu!tut.cis.ohio-state.edu!UUNET.UU.NET!munnari!augean.oz.au!mpope From: munnari!augean.oz.au!mpope@UUNET.UU.NET (Michael T Pope) Newsgroups: gnu.gcc.bug Subject: (none) Message-ID: <8811071547.AA01815@uunet.UU.NET> Date: 8 Nov 88 04:08:59 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 52 I am having trouble with GCC, in compiling G++. The machine is a 4.3BSD Vax 11/780. tm.h, md, etc are linked to the vax equivalents. GCC was compiled with -g -O -munix. 41 Augean> cd /usr/local/gnu/g++ 42 Augean> cat version.c char *version_string = "1.25.0"; 43 Augean> gcc -v gcc version 1.27 44 Augean> gcc -c -g typecheck.c 45 Augean> gcc -c -g -O typecheck.c gcc: Program cc1 got fatal signal 4. 46 Augean> !! gcc -c -g -O typecheck.c Stopped 47 Augean> ps uxww | grep cc1 mpope 2447 4.0 0.5 24 10 pa S 0:00 grep cc1 mpope 2431 1.2 20.2 673 587 pa T 0:08 cc1 /tmp/cc002429.cpp -quiet -dumpbase typecheck.c -g -O -o /tmp/cc002429.s 48 Augean> gdb /usr/local/lib/gcc-cc1 GDB 2.7, Copyright (C) 1988 Free Software Foundation, Inc. There is ABSOLUTELY NO WARRANTY for GDB; type "info warranty" for details. GDB is free software and you are welcome to distribute copies of it under certain conditions; type "info copying" to see the conditions. Reading symbol data from /usr/local/lib/gcc-cc1...done. Type "help" for a list of commands. gdb> run /tmp/cc002429.cpp -quiet -dumpbase typecheck.c -g -O -o /tmp/cc002429.s Starting program: /usr/local/lib/gcc-cc1 /tmp/cc002429.cpp -quiet -dumpbase typecheck.c -g -O -o /tmp/cc002429.s Program received signal 4, Illegal instruction 0x48108 in kill (2455, 4) gdb> where #0 0x48108 in kill (2455, 4) #1 0x47c71 in abort () #2 0x3cef3 in reload_as_needed (first=(struct rtx_def *) 0x5ba18, live_known=1) (reload1.c line 1339) #3 0x3c549 in reload (first=(struct rtx_def *) 0x5ba18, global=1, dumpfile=(struct _iobuf *) 0x0) (reload1.c line 768) #4 0x3810c in global_alloc (file=(struct _iobuf *) 0x0) (global-alloc.c line 315) #5 0x1a14 in rest_of_compilation (decl=(tree) 0x89458) (toplev.c line 1255) #6 0xdf72 in finish_function () (c-decl.c line 3272) #7 0x323b in yyparse () (c-parse.y line 244) #8 0xe69 in compile_file (name=(char *) 0x7fffe95b "/tmp/cc002429.cpp") (toplev.c line 833) #9 0x249b in main (argc=9, argv=(char **) 0x7fffe8c0, envp=(char **) 0x7fffe8e8) (toplev.c line 1552) gdb> quit The program is running. Quit anyway? (y or n) y Other information: The crash appears occur after recognising the end of the function "build_component_ref". If one disables the suppiled "assert.h", and fixes a swallowed semicolon problem, cc -O -c succeeds. Hope this isnt wasting your time. Thankyou for GDB BTW. Mike Pope