Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!labrea!jade!ucbvax!PURDUE.EDU!sdo From: sdo@PURDUE.EDU.UUCP Newsgroups: comp.os.xinu Subject: Sun 3 Xinu 6 bug Message-ID: <8712041948.AA18660@gwen.cs.purdue.edu> Date: Fri, 4-Dec-87 14:48:01 EST Article-I.D.: gwen.8712041948.AA18660 Posted: Fri Dec 4 14:48:01 1987 Date-Received: Wed, 9-Dec-87 20:02:02 EST Sender: usenet@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 18 It has recently been discovered that the Sun Optimizing compiler has trouble generating code in the presence of the asm("...") statements of the disable() and restore() macros. This bug results in register variables being overwritten in certain cases. One of the places where this occurs is in the sleep10() routine, which has the side effect of setting register d7 to 1. Cc uses registers d7-d2 for register variables, when requested, in that order. Until I hear back from Sun, I would recommend that the system be compiled WITHOUT the -O (optimizer) option. Shawn Ostermann ----------------------------------------------------------------------------- Shawn Ostermann ARPA: sdo@gwen.cs.purdue.edu UUCP: ...!purdue!sdo -----------------------------------------------------------------------------