Subject: Re: in-kernel workaround for PR 14746
To: port-sparc64@netbsd.org, <tech-net@netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: tech-net
Date: 12/03/2001 14:10:45
[ On Monday, December 3, 2001 at 08:41:00 (-0500), Todd Vierling wrote: ]
> Subject: Re: in-kernel workaround for PR 14746
>
> On Sun, 2 Dec 2001, der Mouse wrote:
> 
> : Is struct assignment even _supposed_ to work?
> 
> AFAIK, it's part of C90, and perhaps earlier standards.

Yes, structure assignment was standardised by ANSI in C89.

Structure assignment (and parameter passing) has worked in every UNIX C
compiler since V7, though including The Portable C Compiler, 'ccom',
which is present in the V7 distribution.  (The Ritchie C compiler, used
as 'cc' in the V7 distribution, does not appear to fully implement
structure assignment as there are error messages stating as much in the
source.)

According to the UNIX/32V edition of "A Tour through the UNIX C
Compiler" where pcc was used as 'cc', the only restriction in pcc was
that automatic structures (and arrays) could not be assigned.

-- 
							Greg A. Woods

+1 416 218-0098      VE3TCP      <gwoods@acm.org>     <woods@robohack.ca>
Planix, Inc. <woods@planix.com>;   Secrets of the Weird <woods@weird.com>