[comp.sys.nsc.32k] Bug in GENIX V.3 cc

jan@myab.UUCP (Jan Stein) (10/05/87)

I have problem with the C compiler under GENIX V.3r0 (pcc based).
The following program:
------
int *a;

t(b,c)
{
	a[1] = b && c;
}
------
compiles into
------
.file	"c.c"
.text
.data
	.globl	_a
	.comm	_a,4
.text
	.align	4
	.globl	_t
_t:
	br 	.L15	#bfcode
.L16:
#_b:	.EQU	8(fp)
#_c:	.EQU	12(fp)
	cmpqd	0,8(fp)	#35
	beq	.L9999
	cmpqd	0,12(fp)	#35
	beq	.L9999
	#_a intareg(nasl) 114b...
	movd	_a,r0	#59b
	movqd	1,4(r0)	#zzzA
	br	.L9998
.L9999:
	movqd	0,4(r0)		<=== Here it is, r0 != _a.
.L9998:
	#59d
.L14:
	exit	[]
	ret	0
.L15:
	enter	[],0
	br 	.L16
.data
#NS32032 C compiler release 1.19 5/29/86 (JZ,jima)
-------

Is there somebody (at NS perhaps) that have fixed this problem or
can fix it? We have the source code, so a set of diffs would be fine.

			Thanks,
			Jan Stein

--
Jan Stein, Myab, Gothenburg, Sweden	UUCP: ..!mcvax!enea!chalmers!myab!jan