🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2405

GCC 1.34 core dump for 80386

#2405
From: sco!seanf
Date: Wed, 15 Mar 1989 22:00
64 lines
1884 bytes
With gcc-1.34, for the 80386 (compiled by pcc) under Xenix 2.3.1:
When I tried adding the movs instruction, defined as:

(define_insn "movstrqi"
  [(set (match_operand:BLK 0 "general_operand" "D")
		(match_operand:BLK 1 "general_operand" "S"))
   (use (match_operand:SI 2 "general_operand" "c"))
   (use (reg:SI 2))
   (use (reg:SI 4))
   (use (reg:SI 5))]
""
"repne \; movsb")

I get an abort when I try to compile the following program:

struct foo {
	char a[100];
} a,b;

main() {
	a = b;
}

Here's a trace from adb (sorry, I don't have dbx).  I also have the rtl, after
the stack trace.

Anybody have any ideas *why* it's core-dumping?

Thanks,
Sean.
---------
./cc1: running
  IOT
stopped	at	kill+0xc:	jb	_cerror
* $c
abort()	from 0x3f:0x54e9e
find_reloads(0x4198dc, 0x0, 0x0, 0x0, 0x40eb10)	from 0x3f:0x57795
reload(0x419838, 0x0, 0x0)	from 0x3f:0x1070f
rest_of_compilation(0x41def4)	from finish_function+0x62
finish_function()	from 0x3f:0x706
yyparse()	from 0x3f:0xfb96
compile_file(0x18ffee33)	from 0x3f:0x10f96
main(0x8, 0x18ffed9c, 0x18ffedc0)	from _start+0x2e


;; Function main

(note 1 0 2 "" -1)

(note 2 1 3 "" -1)

(insn 3 2 4 (parallel[ 
           (set (mem/s:BLK (symbol_ref:SI ("a")))
               (mem/s:BLK (symbol_ref:SI ("b"))))
           (use (const_int 100))
           (use (reg:SI 2))
           (use (reg:SI 4))
           (use (reg:SI 5))
       ] ) -1 (nil)
   (nil))

(note 4 3 5 "" -6)

(code_label 5 4 0 1)
Technical Details
Message-ID: <8903170318.AA17624@ucscc.UCSC.EDU>
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!UCSCC.UCSC.EDU!sco!seanf

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!bu-cs!bloom-beacon!tut.cis.ohio-state.edu!UCSCC.UCSC.EDU!sco!seanf
From: sco!seanf@UCSCC.UCSC.EDU
Newsgroups: gnu.gcc.bug
Subject: GCC 1.34 core dump for 80386
Message-ID: <8903170318.AA17624@ucscc.UCSC.EDU>
Date: 15 Mar 89 22:00:55 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 64