"Arthur Haas" <ah...@impactweather.com> writes:

> Now that this patch has been commited, the build on i386-pc-solaris2.10
> succeeds when building tree-ssa-loop-prefetch.o file but fails later on:
>
> cc1: warnings being treated as errors
> /export/home/arth/gnu/gcc.git/gcc/gcc.c: In function 'compare_files':
> /export/home/arth/gnu/gcc.git/gcc/gcc.c:6635:2: error: request for
> implicit conversion from 'void *' to 'caddr_t' not permitted in C++
> make[3]: *** [gcc.o] Error 1
> make[3]: *** Waiting for unfinished jobs....
>
> The error is in an munmap() call, and a look at the <sys/mman.h> header
> shows that the funcation arguments can be either 'void *' or 'caddr_t *'
> depending on preprocessor values.

I believe that POSIX specifices that munmap takes a void * argument.  Is
there some preprocessor define we can use to direct the Solaris header
files to compile in POSIX mode?  If so, it should work to add it to
CFLAGS (using +=) in TOPLEVEL/config/mh-solaris.

Ian

Reply via email to