From: Bill James <bill@lsl.co.uk>
Subject: Re: Another C compiler problem
Date: 1996/05/21 [thread overview]
Message-ID: <31A1F3D4.2781@lsl.co.uk> (raw)
In-Reply-To: 31A0A8C0.20E0@pweh.utc.com
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
prev parent reply other threads:[~1996-05-21 4:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-05-20 4:00 Another C compiler problem Bill James
1996-05-20 4:00 ` Pete Bradley
1996-05-21 4:00 ` Bill James [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox