🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1382

gcc 2.3.1/i386-isc bug report

#1382
From: Jon Fields
Date: Fri, 13 Nov 1992 03:21
130 lines
5420 bytes
GCC 2.3.1/i386-isc BUG REPORT

My Name and Address Is:

Internet: jdf@fields.cin.oh.us             Jonathan D. Fields     
    UUCP: ...!uunet!fields!jdf             5080 Kugler Mill Road
   Voice: 513-891-5081 (6-10 PM EST)       Cincinnati, Ohio 45236, USA

My System Is A:

	33 Mhz 386, no FP co-processor, running
	Interactive Systems UNIX System V/386
	Release 3.2, Version 2.2.1.

The Compiler I am Trying to Build Is:

	gcc 2.3.1, obtained by applying patches gotten from UUNET to
	2.2.2 source.

The Configuration I am Using Is:

	configure i386-isc


The Problems I am Experiencing Are:

	- enquire, compiled by stage1 GCC compiler, aborts (see copy of
	  float.h below). The signal was an arithmetic exception.

	- Stage2 gcc (that which was compiled by the stage1 GCC) aborts
	  when attempting to compile enquire.c 

	- After fudging a float.h, to get past previous problem, the stage2
	  GCC aborts with internal error trying to compile tree.c. The signal
	  was an arithmetic exception.
	
	- Stage2 aborts with an internal error trying to compile fold-const.c
	  The signal was an arithmetic exception.
	
	- I haven't tried anything beyond this. Stack traces follow.

	- A minor problem, but the patches that I received from UUNET
	  failed on the INSTALL file.  I am relatively sure that my
	  2.2.2 INSTALL is valid, but not 100% sure.  Ignore this comment
	  if you have not seen any other complaints to this affect.

I built gcc 2.2.2 with no problems (except for some warnings in
float.h from enquire) and have used both the C compiler and the
C++ compiler quite extensively.

If there is any more information that you need, please let me know
and I'll send it to you.  Unfortunately, I cannot offer any Internet
or dialup access to this system at this time.

Thanks!

*******************************************************************************
Stack trace from stage1-gcc-compiled enquire:

Starting program: /usr2/tmp/gcc-2.3.1/enquire -f

Program received signal 8, Arithmetic exception
0x2e04 in fDiff (a=-2, b=0.375) at enquire.c:2117
2117	Number Diff ARGS2(Number, a, Number, b){Number r; Store(a-b, &r); return (r); }
(gdb) where
#0  0x2e04 in fDiff (a=-2, b=0.375) at enquire.c:2117
#1  0x4291 in fprop (bits_per_byte=8) at enquire.c:2327
#2  0x84f in main (argc=2, argv=0x7ffffcec) at enquire.c:730

*******************************************************************************

Command attempting to compile enquire.c with stage2 GCC:

	./xgcc -B./  -DIN_GCC -D_POSIX_SOURCE  -g     -DNO_MEM -DNO_STDDEF -DNO_LONG_DOUBLE_IO -O0 -I. -c ./enquire.c
./xgcc: Internal compiler error: program cc1 got fatal signal 6
*** Error code 1

*******************************************************************************

Command attempting to compile tree.c with stage2 GCC:

	stage2/xgcc -Bstage2/ -c  -DIN_GCC -D_POSIX_SOURCE  -g     -I. -I. -I./config tree.c
stage2/xgcc: Internal compiler error: program cc1 got fatal signal 6

Stack trace of stage2/cc1:

run /usr/tmp/cca00183.i -quiet -dumpbase tree.c -g -o tree.s

Program received signal 8, Arithmetic exception
where

0x2e2e0 in real_twop (expr=0x4125a4) at tree.c:1384
1384	  return (TREE_CODE (expr) == REAL_CST
#0  0x2e2e0 in real_twop (expr=0x4125a4) at tree.c:1384
#1  0x3afaa in fold (expr=0x4125d0) at fold-const.c:3480
#2  0x1d264 in build_binary_op (code=MULT_EXPR, orig_op0=0x413360, 
    orig_op1=0x4125a4, convert_p=1) at c-typeck.c:2759
#3  0x1f258 in build_modify_expr (lhs=0x413360, modifycode=MULT_EXPR, 
    rhs=0x4125a4) at c-typeck.c:3852
#4  0x6a03 in yyparse () at c-parse.c:445
#5  0x2818f in compile_file (name=0x7ffffd3f "/usr/tmp/cca00183.i")
    at toplev.c:1804
#6  0x2aa6f in main (argc=8, argv=0x7ffffc9c, envp=0x7ffffcc0) at toplev.c:3283

*******************************************************************************

Command attempting to compile fold-const.c with stage2 GCC:

	stage2/xgcc -Bstage2/ -c  -DIN_GCC -D_POSIX_SOURCE  -g     -I. -I. -I./config fold-const.c


Stack trace of stage2/cc1:

run /usr/tmp/cca00310.i -quiet -dumpbase fold-const.c -g -o fold-const.s
Program received signal 8, Arithmetic exception

where

0x1081d7 in standard_80387_constant_p (x=0x457594) at aux-output.c:449
449	  if (d == 1)
#0  0x1081d7 in standard_80387_constant_p (x=0x457594) at aux-output.c:449
#1  0xc1810 in record_reg_classes (n_alts=4, n_ops=2, ops=0x40d3bc, 
    modes=0x7ffff564, constraints=0x7ffff58c, insn=0x45769c) at regclass.c:1126
#2  0xc0d82 in regclass (f=0x413180, nregs=69) at regclass.c:826
#3  0x292ab in rest_of_compilation (decl=0x455efc) at toplev.c:2428
#4  0x17e36 in finish_function (nested=0) at c-decl.c:6073
#5  0x622b in yyparse () at c-parse.c:269
#6  0x2818f in compile_file (name=0x7ffffd33 "/usr/tmp/cca00310.i")
    at toplev.c:1804
#7  0x2aa6f in main (argc=8, argv=0x7ffffc90, envp=0x7ffffcb4) at toplev.c:3283
Technical Details
Message-ID: <m0mprbS-0000D7C@fields.cin.oh.us>
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fields.cin.oh.US!jdf

Show Full Headers
Complete Article Headers
Newsgroups: gnu.gcc.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!fields.cin.oh.US!jdf
From: jdf@fields.cin.oh.US (Jon Fields)
Subject: gcc 2.3.1/i386-isc bug report
Message-ID: <m0mprbS-0000D7C@fields.cin.oh.us>
Sender: gnulists@ai.mit.edu
Organization: Gnus Not Usenet
Distribution: gnu
Date: Fri, 13 Nov 1992 03:21:49 GMT
Approved: bug-gcc@prep.ai.mit.edu
Lines: 131