From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 127398 invoked by alias); 19 Apr 2016 22:20:40 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 127379 invoked by uid 89); 19 Apr 2016 22:20:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Tue, 19 Apr 2016 22:20:39 +0000 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0FFF8C04B300; Tue, 19 Apr 2016 22:20:38 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3JMKZ6u008624; Tue, 19 Apr 2016 18:20:36 -0400 Subject: Re: C++ conversion status update To: John Baldwin References: <565460FB.6070103@redhat.com> <4587615.ZrrbCebxpz@ralph.baldwin.cx> <571696D1.807@redhat.com> <2275223.J41au61s2T@ralph.baldwin.cx> Cc: gdb@sourceware.org From: Pedro Alves Message-ID: <5716AF33.4080103@redhat.com> Date: Tue, 19 Apr 2016 22:20:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: <2275223.J41au61s2T@ralph.baldwin.cx> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-04/txt/msg00032.txt.bz2 On 04/19/2016 10:40 PM, John Baldwin wrote: > On Tuesday, April 19, 2016 09:36:33 PM Pedro Alves wrote: >> C++ allows conversion to 'void *' without a cast. So I think >> we just need to do: >> >> - ss.ss_sp = xmalloc (SIGSTKSZ); >> + ss.ss_sp = (char *) xmalloc (SIGSTKSZ); >> >> and it'll work on both char * and void * hosts. I tried it >> here on GNU/Linux, where ss_sp is void *, and it works. >> >> Would you like to send that as a patch (with a comment)? >> >> We can leave adding an autoconf check if some other host uses >> a type different than void * and char *. > > Ok, I will include that in my current patchset. Great, thanks much. -- Pedro Alves