Subject: Re: 'restrict' problem compiling current on sparc64
To: abs <abs@mono.org>
From: Klaus Klein <kleink@reziprozitaet.de>
List: tech-toolchain
Date: 10/28/2001 11:55:29
abs <abs@mono.org> writes:

> /var/obj/tooldir/bin/sparc64--netbsd-gcc -O -mcpu=v9 -DALL_STATE
> -DUSG_COMPAT  -Wall -Wstrict-prototypes -Wmissing-prototypes
> -Wpointer-arith -Wno-uninitialized -Werror   -D_LIBC -DNLS -DYP -DHESIOD
> -DLIBC_SCCS -DSYSLIBC_SCCS  -D_REENTRANT
> -I/home/netbsd/current/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE
> -I/home/netbsd/current/lib/libc/../../libexec/ld.elf_so
> -I/home/netbsd/current/lib/libc/dlfcn -DWITH_RUNE -DRUNEMOD_MAJOR=3
> -D_PATH_LOCALEMODULE=\"/usr/lib/runemodule\" -DRESOLVSORT -I.
> -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT   -nostdinc -idirafter
> /var/obj/destdir/usr/include -c
> /home/netbsd/current/lib/libc/gen/__glob13.c
> In file included from /home/netbsd/current/lib/libc/gen/__glob13.c:78:
> /var/obj/destdir/usr/include/glob.h:107: invalid use of `restrict'
> 
> 	The relevant line reads:
> 
> int     glob __P((const char * __restrict, int,
>             int (* __restrict)(const char *, int), glob_t * __restrict));
> 

The problem here is that the restrict qualifier cannot be used on a
pointer to a function; I've fixed this in glob.h rev. 1.15...
sorry for the inconvenience.


- Klaus