From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27770 invoked by alias); 16 Mar 2013 04:22:44 -0000 Received: (qmail 27754 invoked by uid 22791); 16 Mar 2013 04:22:40 -0000 X-SWARE-Spam-Status: No, hits=-4.6 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Mar 2013 04:22:35 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UGide-0004Ku-8L from Yao_Qi@mentor.com for gdb-patches@sourceware.org; Fri, 15 Mar 2013 21:22:34 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 15 Mar 2013 21:22:34 -0700 Received: from qiyao.dyndns.org.dyndns.org (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Fri, 15 Mar 2013 21:22:32 -0700 From: Yao Qi To: Subject: [PATCH 0/3] Fix build failure caused by ctf.c Date: Sat, 16 Mar 2013 04:23:00 -0000 Message-ID: <1363407692-18959-1-git-send-email-yao@codesourcery.com> In-Reply-To: <83ip4s4ixc.fsf@gnu.org> References: <83ip4s4ixc.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2013-03/txt/msg00697.txt.bz2 On 03/16/2013 02:27 AM, Eli Zaretskii wrote:>> Eli> I'd prefer that we provide a mkdir macro or maybe a gdb_mkdir function >> >Eli> that would hide this ugliness from the mainline sources. A macro >> >Eli> called 'mkdir' could on MS-Windows call a function called '_mkdir' >> >Eli> ignoring the second argument. >> > >> >There's a gnulib mkdir module. > That's another possibility, yes. Although for such a simple job I'm > not sure the gnulib complexity is justified. But I don't object to > using the gnulib mkdir module. Hi, This patch series fix the build failure on various platforms caused by ctf.c. Patch 1 is to import mkdir module which can hide the difference of mkdir on different platforms. Patch 2 is to use WORDS_BIGENDIAN to determine the host byte order, to avoid using LITTLE_ENDIAN which is unportable. Patch 3 is to stop using some unportable macros, such as S_IXOTH. Build GDB on linux with all targets enabled and cross compile GDB for mingw32 target. -- 1.7.7.6