From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7583 invoked by alias); 10 Jun 2009 07:20:35 -0000 Received: (qmail 7565 invoked by uid 22791); 10 Jun 2009 07:20:33 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Jun 2009 07:20:27 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5A7KP00032062; Wed, 10 Jun 2009 03:20:25 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5A7KOAf025307; Wed, 10 Jun 2009 03:20:24 -0400 Received: from freie.oliva.athome.lsd.ic.unicamp.br (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5A7KNoh003727; Wed, 10 Jun 2009 03:20:23 -0400 Received: from free.oliva.athome.lsd.ic.unicamp.br (free.oliva.athome.lsd.ic.unicamp.br [172.31.160.1]) by freie.oliva.athome.lsd.ic.unicamp.br (8.14.3/8.14.3) with ESMTP id n5A7KMmH007540; Wed, 10 Jun 2009 04:20:22 -0300 Received: from free.oliva.athome.lsd.ic.unicamp.br (localhost [127.0.0.1]) by free.oliva.athome.lsd.ic.unicamp.br (8.14.3/8.14.3) with ESMTP id n5A7KFYu029859; Wed, 10 Jun 2009 04:20:21 -0300 Received: (from aoliva@localhost) by free.oliva.athome.lsd.ic.unicamp.br (8.14.3/8.14.3/Submit) id n5A7KEKh029857; Wed, 10 Jun 2009 04:20:14 -0300 To: "Arthur Haas" Cc: , gcc-patches@gcc.gnu.org Subject: Re: Bootstrap failures on solaris References: <200906091436.n59EaP8F028765@impdell3.impactweather.local> From: Alexandre Oliva Date: Wed, 10 Jun 2009 07:20:00 -0000 In-Reply-To: (Arthur Haas's message of "Tue\, 9 Jun 2009 13\:03\:35 -0500") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00227.txt.bz2 --=-=-= Content-length: 484 On Jun 9, 2009, "Arthur Haas" 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. --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=gcc-compare-debug-munmap-caddr.patch Content-length: 528 for gcc/ChangeLog from Alexandre Oliva * 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; --=-=-= Content-length: 258 -- 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 --=-=-=--