From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17974 invoked by alias); 29 Nov 2012 12:09:24 -0000 Received: (qmail 17958 invoked by uid 22791); 29 Nov 2012 12:09:22 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f175.google.com (HELO mail-wi0-f175.google.com) (209.85.212.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 12:09:18 +0000 Received: by mail-wi0-f175.google.com with SMTP id hm11so5101493wib.8 for ; Thu, 29 Nov 2012 04:09:16 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.108.38 with SMTP id hh6mr38603397wib.0.1354190956782; Thu, 29 Nov 2012 04:09:16 -0800 (PST) Received: by 10.216.153.132 with HTTP; Thu, 29 Nov 2012 04:09:16 -0800 (PST) Date: Thu, 29 Nov 2012 12:09:00 -0000 Message-ID: Subject: [patch prefix.c]: 4 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 From: Kai Tietz To: GCC Patches Content-Type: text/plain; charset=ISO-8859-1 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: 2012-11/txt/msg02414.txt.bz2 Hello, this trivial patch fixes a bootstrap issue on LLP64 hosts. ChangeLog 2012-11-29 Kai Tietz PR target/53912 * prefix.c (lookup_key): Explicit cast return-type of xmalloc/xrealloc to char *. Tested for i686-w64-mingw32, x86_64-w64-mingw32, and x86_64-unknown-gnu-linux. Ok for apply? Regards, Kai Index: prefix.c =================================================================== --- prefix.c (Revision 193925) +++ prefix.c (Arbeitskopie) @@ -157,12 +157,12 @@ lookup_key (char *key) } size = 32; - dst = xmalloc (size); + dst = (char *) xmalloc (size); res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); if (res == ERROR_MORE_DATA && type == REG_SZ) { - dst = xrealloc (dst, size); + dst = (char *) xrealloc (dst, size); res = RegQueryValueExA (reg_key, key, 0, &type, (LPBYTE) dst, &size); }