This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bootstrap failures on solaris


On Jun  9, 2009, "Arthur Haas" <ahaas@impactweather.com> wrote:

> Now that this patch has been commited, the build on i386-pc-solaris2.10
> /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++

Every other call to munmap in gcc/ is given a char* or has a cast to
caddr_t.

This patch should fix it.  I'll check it in shortly.

for  gcc/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* gcc.c (compare_files): Cast munmap argumento to caddr_t.

Index: gcc/gcc.c
===================================================================
--- gcc/gcc.c.orig	2009-06-08 04:45:28.000000000 -0300
+++ gcc/gcc.c	2009-06-10 04:17:33.000000000 -0300
@@ -6632,7 +6632,7 @@ compare_files (char *cmpfile[])
 
     for (i = 0; i < 2; i++)
       if (map[i])
-	munmap (map[i], length[i]);
+	munmap ((caddr_t) map[i], length[i]);
 
     if (ret >= 0)
       return ret;

-- 
Alexandre Oliva, freedom fighter    http://FSFLA.org/~lxoliva/
You must be the change you wish to see in the world. -- Gandhi
Be Free! -- http://FSFLA.org/   FSF Latin America board member
Free Software Evangelist      Red Hat Brazil Compiler Engineer

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]