Subject: Re: Another vax incompatibility: /src/sys/kern/kern_resource.c
To: None <port-vax@NetBSD.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: port-vax
Date: 05/13/2004 13:29:15
> Just found another incompatibility with port-vax:

> Introduced on May 6 by pk@netbsd.org, rev 1.83 of
> /src/sys/kern/kern_resource.c
> Look like the current gcc doesn't require declarations to be at the
> beginning of a function.

Or else the test-build was done under circumstances which caused
simple_lock() to be a macro whose expansion is legal before
declarations.

>         simple_lock(&lim->p_slock);
> !       int n = --lim->p_refcnt;
> --- 535,543 ----
> +       int n;
>         simple_lock(&lim->p_slock);
> !       n = --lim->p_refcnt;

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B