From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a6a2dd20dfd28b8a X-Google-Attributes: gidfee84,public From: Bill James Subject: Re: Another C compiler problem Date: 1996/05/21 Message-ID: <31A1F3D4.2781@lsl.co.uk>#1/1 X-Deja-AN: 155948139 references: <31A04BCE.167E@lsl.co.uk> <31A0A8C0.20E0@pweh.utc.com> content-type: text/plain; charset=us-ascii organization: Laser-Scan Ltd. mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; OSF1 V3.2 alpha) Pete Bradley wrote: > > Bill James wrote: > > > > We have another, distinct C compiler problem. The generated code > > seg faults at run-time, apparently due to an extraneous instruction > > in a common return sequence using 't12' - a temporary register. > > This is dUNIX V3.2C/D with OSFCMPLRS350/360. I have tried various > > optimisations, with and without debug, to no avail. OSFCMPLRS200 works, > > generating similar code, but without the offending instruction. > > > > Bad code: > > > [generated code deleted] > > > > Source routine: > > > [source of offending routine deleted] > > I almost hate to ask this, but are you sure the code is ok? (lint clean, > doesn't assume anything about data sizes; doesn't invoke undefined > behavior, etc)? > It should be OK - it also compiles/runs on every other platform we have - Solaris 1 and 2, HP-UX, AIX, Ultrix. Do you think this can be the cause of such an effect? Bill