From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14465 invoked by alias); 13 Mar 2008 00:41:49 -0000 Received: (qmail 14446 invoked by uid 22791); 13 Mar 2008 00:41:42 -0000 X-Spam-Check-By: sourceware.org Received: from wf-out-1314.google.com (HELO wf-out-1314.google.com) (209.85.200.174) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 13 Mar 2008 00:41:21 +0000 Received: by wf-out-1314.google.com with SMTP id 28so3394824wfc.14 for ; Wed, 12 Mar 2008 17:41:19 -0700 (PDT) Received: by 10.142.125.5 with SMTP id x5mr3960747wfc.191.1205368879950; Wed, 12 Mar 2008 17:41:19 -0700 (PDT) Received: by 10.142.231.8 with HTTP; Wed, 12 Mar 2008 17:41:19 -0700 (PDT) Message-ID: Date: Thu, 13 Mar 2008 00:41:00 -0000 From: "=?EUC-KR?B?U2VvbmdiYWUgUGFyayAoudq8urnoLCDa0+D328Yp?=" To: gcc-patches , "Ian Lance Taylor" , dj@redhat.com Subject: [PATCH] libiberty: use void * instead of char * for malloc/realloc declarationn MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2008-03/txt/msg00770.txt.bz2 Hi libiberty maintainers, During profiled bootstrap, malloc/realloc declarations in cplus-dem.c causes a compilation error during stagefeedback, due to conflicting declaration. It's not clear to me why stagefeedback libiberty is configured as not having stdlib.h but regardless this patch looks like the correct thing to do. Tested by doing a profiled bootstrap (with another patch I'm about to submit). Ok for mainline ? Seongbae 2008-03-12 Seongbae Park * cplus-dem.c (malloc, realloc): Use void * instead of char * as return type. diff -r acf26548a037 libiberty/cplus-dem.c --- a/libiberty/cplus-dem.c Wed Mar 12 17:13:01 2008 +0000 +++ b/libiberty/cplus-dem.c Wed Mar 12 15:35:06 2008 -0700 @@ -52,8 +52,8 @@ Boston, MA 02110-1301, USA. */ #ifdef HAVE_STDLIB_H #include #else -char * malloc (); -char * realloc (); +void * malloc (); +void * realloc (); #endif #include