XENIX C Compiler Bug

Andrew Tune adt at hpausla.HP.COM
Mon Aug 22 15:14:54 AEST 1988


I have a C compiler bug in my XENIX 2.2.1 system.  
uname -a: sysname=XENIX; release=2.2.1; version=SysV; machine=i80286
It's a Vectra RS20.  Any hints would be appreciated.

Try compiling this:

--------------------------------------------------------------------------
int		level;
long		*c_disp;
extern long	c_dis[];

foo()
{
	c_disp = c_dis + level;
}
--------------------------------------------------------------------------

I get this:

--------------------------------------------------------------------------
% cc -c -Ml foo.c
foo.c
foo.c(7) : Compiler error (internal): Infinite spill
--------------------------------------------------------------------------

which is very little help, to say the least.  Work around? Change the code 
to look like this:

--------------------------------------------------------------------------
int		level;
long		*c_disp;
extern long	c_dis[];

foo()
{
	register int l = level;

	c_disp = c_dis + l;
}
--------------------------------------------------------------------------

Andrew Tune, Hewlett Packard Australian Software Operation.
(UUCP: hplabs!hpfcla!hpausla!adt, ACSnet: adt at hpausla.oz)



More information about the Comp.unix.xenix mailing list