Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/5/84; site mtx5a.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!mhuxm!mhuxf!mhuxi!mhuhk!mhuxt!houxm!mtuxo!mtune!mtunf!mtx5c!mtx5d!mtx5a!ddj From: ddj@mtx5a.UUCP (Dennis D. Jurgensen) Newsgroups: net.bugs.usg,net.unix-wizards Subject: bug in System V c compiler for 3b2 Message-ID: <1327@mtx5a.UUCP> Date: Wed, 21-May-86 17:57:51 EDT Article-I.D.: mtx5a.1327 Posted: Wed May 21 17:57:51 1986 Date-Received: Sat, 24-May-86 18:21:27 EDT Distribution: net Organization: AT&T Information Systems, Middletown, NJ 07748-4801. Lines: 43 Xref: watmath net.bugs.usg:490 net.unix-wizards:18142 *** REPLACE THIS LINE WITH YOUR MESSAGE *** I compiled a 68000 cross-compiler on a 3b2 successfully I thought. However when I tried to use it to compile some floating point libraries the compiler core-dumped due to an illegal instruction. Here is the sdb output: Source path: .:Mcc:mip No core image *makety:1341 b *Breakpoint at makety:1341: if( ISUNSIGNED(pt) ){ *0x808088a6 (makety:1341+3): BGUB 0x11 <808088b7> [0x11] *0x808088a8 (makety:1341+5): CMPW &0xc,0(%fp) [0xc] *0x808088ab (makety:1341+8): BLUB 0xc <808088b7> [0xc] *0x808088b7 (makety:1345): MOVWD 0x2c(%r8),%r0 [p,%r0] * r0/ 7 r1/ 0xfffffff2 r2/ 0x29 r3/ 0x80896bc0 r4/ 0x80896b8c r5/ 4 r6/ 7 r7/ 0x72 r8/ 0x80896bc0 ap/ 0xc00205c0 fp/ 0xc00205f4 sp/ 0xc00205f8 psw/ 0x241f0b pc/ 0x808088b7 0x808088b7 (makety:1345): MOVWD 0x2c(%r8),%r0 [p,%r0] *0x80896bc0 *Illegal Instruction (4) (sig 4) - core dumped Process terminated * The c statement that is involved is: p->fpn.dval = p->tn.lval; where fpn and tn are structures in an union and dval is a double and lval is a long. Here is the disassembly of the c statement. [37] 2111: 85 c8 2c 40 MOVWD 0x2c(%r8),%r0 2115: a5 40 c8 14 MOVDD %r0,0x14(%r8) if somebody could tell me what is wrong with the instruction, i.e. is the opcode invalid, is the addressing mode invalid, etc. and if so is there a fix for this problem please send mail to {ihnp4!}[mtuxo, mtx5a, mtx5c]!ddj Thank you in advance. Dennis D. Jurgensen