From: jeff@uaboeing.ua.edu (Jeff A. Earickson)
Subject: ./genattr core dumps
Organization: GNUs Not Usenet
Distribution: gnu
Date: Tue, 29 Dec 1992 05:16:06 GMT

Dear GCC Developers,


    GCC Version: 2.3.3 (Dec 26 copy from prep.ai.mit.edu)
    Platform:  Sun 3/60, running SunOS 4.1.1
    Problem:   ./genattr core dumps when using gcc 2.2.2
               in the initial build of 2.3.3


I first did a "make distclean" and then a "configure --target=sun3-sunos4.1".


Linked `config.h' to `./config/xm-m68k.h'
Linked `tm.h' to `./config/sun3.h'
Linked `md' to `./config/m68k.md'
Linked `aux-output.c' to `./config/m68k.c'
Linked `tconfig.h' to `./config/xm-m68k.h'
Linked `hconfig.h' to `./config/xm-m68k.h'
Created `Makefile'.
Links are now set up for target m68k-sun-sunos4.1.


Then I did make LANGUAGES=c "CC=/usr/local/bin/gcc-2.2.2 -g -O"
and here is the output from make:


/usr/local/bin/gcc-2.2.2 -g -O  -DIN_GCC   -g     -I. -I. -I./config -DGCC_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/sun3-sunos4.1/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/include\" -DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/lib/g++-include\" -DLOCAL_IN
CLUDE_DIR=\"/usr/local/include\" -DCROSS_INCLUDE_DIR=\"/usr/local/lib/gcc-lib/sun3-sunos4.1/`sed -e 's/.*\"\([^ \"]*\)[ \"].*/\1/' < ./version.c`/sys-include\" -DTOOLDIR=\"/usr/local/sun3-sunos4.1/\" -c `echo ./cccp.c | sed 's,^\./,,'`
/usr/local/bin/gcc-2.2.2 -g -O  -DIN_GCC   -g     -I. -I. -I./config -c ./cexp.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config version.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config obstack.c
/usr/local/bin/gcc-2.2.2 -g -O  -DIN_GCC   -g   -o cccp cccp.o cexp.o version.o obstack.o ` case "/usr/local/bin/gcc-2.2.2 -g -O" in "cc") echo  ;; esac `  
rm -f cpp
ln cccp cpp
/usr/local/bin/gcc-2.2.2 -g -O  -DIN_GCC   -g     -I. -I. -I./config -c ./c-parse.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-lang.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-lex.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-decl.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-typeck.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-convert.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-aux-info.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-common.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config c-pragma.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config ./genattr.c
/usr/local/bin/gcc-2.2.2 -g -O -c  -DIN_GCC   -g     -I. -I. -I./config rtl.c
/usr/local/bin/gcc-2.2.2 -g -O  -DIN_GCC   -g   -o genattr genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "/usr/local/bin/gcc-2.2.2 -g -O"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` 
./genattr md > tmp-attr.h
/bin/sh: 5614 Bus error - core dumped
make: *** [stamp-attr] Error 138


When I rerun genattr by hand from within dbxtool, here is where it
dies:

(dbxtool) run md
Running: ./genattr md 
signal BUS (hardware error) in __do_global_ctors at 0x497a
__do_global_ctors+0x12:		jsr	a0@
(dbxtool) where
__do_global_ctors() at 0x497a
__main() at 0x49ad
main(argc = 2, argv = 0xdfffd7c, 0xdfffd88), line 239 in "./genattr.c"


/*------------------------------------------------------------------------*/
/* Jeff A. Earickson                         e-mail: jeff@uaboeing.ua.edu */
/* Cray/nCUBE/Sun Consultant,                  Work Phone: (205) 348-3969 */
/* Alabama Supercomputer Network                 Work Fax: (205) 348-3993 */
/* Boeing Computer Services                                               */
/* Address: PO Box 870346, University of Alabama, Tuscaloosa, AL 35487    */
/* Alabama 12-0-0, AP #2, Sugar Bowl bound, soon to be #1.  Roll Tide!!!  */
/*------------------------------------------------------------------------*/



Xref: sparky gnu.gcc.help:2793 comp.msdos.programmer:108