Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!ucsd!ucsdhub!hp-sdd!hplabs!hpda!hpcuhb!hp-sde!hpcea!hpausla!adt From: adt@hpausla.HP.COM (Andrew Tune) Newsgroups: comp.unix.xenix Subject: XENIX C Compiler Bug Message-ID: <750002@hpausla.HP.COM> Date: 22 Aug 88 05:14:54 GMT Organization: HP Australian Software Operation Lines: 43 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@hpausla.oz)