Path: utzoo!telly!ddsw1!mcdchg!rutgers!tut.cis.ohio-state.edu!BAYES.ARC.NASA.GOV!self From: self@BAYES.ARC.NASA.GOV (Matthew Self) Newsgroups: gnu.gcc.bug Subject: gcc 1.29 gets fatal signal 11 with -g flag under SunOS 4.0 Message-ID: <8810120627.AA00898@bayes.arc.nasa.gov> Date: 12 Oct 88 06:27:33 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 542 gcc version 1.29 (with corrected patch of 11 Oct 88) gets fatal error (when debugging only) on a Sun 3 running 4.0 Specifics: gcc -v => gcc version 1.29 gcc -c -g => gcc: Program cc1 got fatal signal 11. (note that gcc -c and gcc -c -O produce working code.) config.h => config-sun4.h tm.h => tm-sun3.h md => m68k.md aux-output.c => output-m68k.c P.S. I tried installing gdb 2.8 today (same machine) with no luck. I made patches to core.c replacing references to c_fpstatus and c_fparegs with c_fpu.f_pstatus and c_fpu.f_fparegs to come into line with the new . Compilation was successful, but gdb dumps core when it tries to load symbol table info. Has anyone made this work under 4.0 yet? =========================exmaple code============================= extern struct _iobuf { int _cnt; unsigned char *_ptr; unsigned char *_base; int _bufsiz; short _flag; char _file; } _iob[]; extern struct _iobuf *fopen(); extern struct _iobuf *fdopen(); extern struct _iobuf *freopen(); extern struct _iobuf *popen(); extern struct _iobuf *tmpfile(); extern long ftell(); extern char *fgets(); extern char *gets(); extern char *ctermid(); extern char *cuserid(); extern char *tempnam(); extern char *tmpnam(); enum fp_direction_type { fp_nearest = 0, fp_tozero = 1, fp_negative = 2, fp_positive = 3 } ; enum fp_precision_type { fp_extended = 0, fp_single = 1, fp_double = 2, fp_precision_3 = 3 } ; enum fp_exception_type { fp_inexact = 0, fp_division = 1, fp_underflow = 2, fp_overflow = 3, fp_invalid = 4 } ; enum fp_class_type { fp_zero = 0, fp_subnormal = 1, fp_normal = 2, fp_infinity = 3, fp_quiet = 4, fp_signaling = 5 } ; typedef float single ; typedef unsigned extended[3] ; typedef unsigned fp_exception_field_type ; typedef int sigfpe_code_type ; typedef void (* sigfpe_handler_type)() ; extern enum fp_direction_type fp_direction ; extern enum fp_precision_type fp_precision ; extern sigfpe_handler_type ieee_handlers [5 ] ; extern fp_exception_field_type fp_accrued_exceptions ; extern sigfpe_handler_type sigfpe( ) ; typedef char decimal_string[512 ] ; typedef struct { enum fp_class_type fpclass ; int sign ; int exponent ; decimal_string ds ; int more ; int ndigits ; } decimal_record ; enum decimal_form { fixed_form, floating_form } ; typedef struct { enum fp_direction_type rd ; enum decimal_form df ; int ndigits ; } decimal_mode ; enum decimal_string_form { invalid_form, whitespace_form, fixed_int_form, fixed_intdot_form, fixed_dotfrac_form, fixed_intdotfrac_form, floating_int_form, floating_intdot_form, floating_dotfrac_form, floating_intdotfrac_form, inf_form, infinity_form, nan_form, nanstring_form } ; extern void single_to_decimal ( ) ; extern void double_to_decimal ( ) ; extern void extended_to_decimal ( ) ; extern void decimal_to_single ( ) ; extern void decimal_to_double ( ) ; extern void decimal_to_extended ( ) ; extern char *econvert( ) ; extern char *fconvert( ) ; extern char *gconvert( ) ; extern char *seconvert( ) ; extern char *sfconvert( ) ; extern char *sgconvert( ) ; extern void string_to_decimal( ) ; extern void file_to_decimal( ) ; extern void func_to_decimal( ) ; extern double atof(); extern int errno; extern double strtod (); extern int finite(); extern double fabs(), floor(), ceil(), rint(); extern double hypot(); extern double copysign(); extern double sqrt(); extern double modf(), frexp(); extern double asinh(), acosh(), atanh(); extern double erf(), erfc(); extern double exp(), expm1(), log(), log10(), log1p(), pow(); extern double lgamma(); extern double j0(), j1(), jn(), y0(), y1(), yn(); extern double sin(), cos(), tan(), asin(), acos(), atan(), atan2(); extern double sinh(), cosh(), tanh(); extern double cbrt(); enum fp_pi_type { fp_pi_infinite = 0, fp_pi_66 = 1, fp_pi_53 = 2 } ; extern enum fp_pi_type fp_pi ; extern enum fp_class_type fp_class() ; extern int ilogb(), irint(), signbit() ; extern int isinf(), isnan(), isnormal(), issubnormal(), iszero() ; extern double nextafter(), remainder() ; extern double logb(), significand(), scalb(), scalbn(); extern double min_subnormal(), max_subnormal(); extern double min_normal(), max_normal(); extern double infinity(), quiet_nan(), signaling_nan(); extern double log2(), exp10(), exp2(), aint(), anint() ; extern int nint() ; extern void sincos(); extern int ieee_flags (); extern int ieee_handler (); extern int ir_finite_(); extern int r_fabs_(), r_floor_(), r_ceil_(), r_rint_(); extern int r_hypot_(); extern int r_copysign_(); extern int r_sqrt_(); extern int r_asinh_(), r_acosh_(), r_atanh_(); extern int r_erf_(), r_erfc_(); extern int r_exp_(), r_expm1_(), r_log_(), r_log10_(), r_log1p_(); extern int r_pow_(); extern int r_lgamma_(); extern int r_j0_(), r_j1_(), r_jn_(), r_y0_(), r_y1_(), r_yn_(); extern int r_sin_(), r_cos_(), r_tan_(), r_asin_(), r_acos_(); extern int r_atan_(), r_atan2_(); extern int r_sinh_(), r_cosh_(), r_tanh_(); extern int r_cbrt_(); extern int ir_ilogb_(), ir_irint_(), ir_signbit_() ; extern int ir_isinf_(), ir_isnan_(), ir_issubnormal_(), ir_isnormal_(), ir_iszero_() ; extern enum fp_class_type ir_fp_class_(); extern int r_nextafter_(), r_remainder_() ; extern int r_log2_(), r_exp10_(), r_exp2_(), r_aint_(), r_anint_() ; extern int ir_nint_() ; extern int r_fmod_(); extern int r_logb_(), r_significand_(), r_scalb_(), r_scalbn_(); extern int r_min_subnormal_(), r_max_subnormal_(); extern int r_min_normal_(), r_max_normal_(); extern int r_infinity_(), r_quiet_nan_(), r_signaling_nan_(); extern void r_sincos_(); struct exception { int type; char *name; double arg1; double arg2; double retval; }; extern int signgam; extern double fmod(); extern int matherr(); extern double cabs(); extern double drem(); extern double gamma(); extern double ldexp(); int output= 1; int start= 0; int N= 2,M= 3,T= 10,L= 1; extern int rand(); extern void srand(); extern int atoi(); void random_states(a,pi,i,N,T) int N,T; float a[][N],pi[]; int i[]; { int t; i[0]= random_selection(pi,N); for(t= 1;t=0;t--){ int i; for(i= 0;i1) for(i= 1;i