[FreeVMS] Re: Compile errors


Subject: [FreeVMS] Re: Compile errors
roart@nvg.ntnu.no
Date: Tue Jul 16 2002 - 13:08:05 CEST


On Tue, Jul 16, 2002 at 10:34:36AM +0100, Patrick Caulfield wrote:
>
> On Tue, Jul 16, 2002 at 11:05:27AM +0200, roart@nvg.ntnu.no wrote:
> >
> > On Mon, Jul 15, 2002 at 04:45:20PM +0100, Patrick Caulfield wrote:
> > >
> > > On Mon, Jul 15, 2002 at 11:56:46AM +0200, roart@nvg.ntnu.no wrote:
> > >
> > > ../../freevms/sys/src/sched.c: In function `init_idle':
> > > ../../freevms/sys/src/sched.c:1571: structure has no member named `psl'
> > >
> > > which is buried in an anonymous union in task_struct.
> >
> > What gcc-version do you have?
> >
> > I reproduced the errors you have with 2.8.1, but I suppose newer gcc has
> > the same problem, too.
> >
> > According to Documentation/Changes, min gcc 2.95.3 is required for 2.4.18.
>
>
> Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.4/specs
> gcc version 2.95.4 20011002 (Debian prerelease)

Try 2.96 or newer?

The program
struct st {
  union {
    struct {
      unsigned psl_cur_mod:2;
      unsigned psl_prv_mod:2;
      unsigned psl_ipl:5;
      unsigned psl_is:1;
    };
    unsigned short psl;
  };
};

main(){
struct st myst;
myst.psl=3;
}
must work. I do not know when that feature became supported.

Regards,
Roar Thronæs

-- 
Liste de diffusion FreeVMS
Pour se désinscrire : mailto:freevms-request@ml.free.fr?subject=unsubscribe



This archive was generated by hypermail 2b25 : Tue Jul 16 2002 - 13:08:40 CEST