From patchwork Wed Jun 6 16:36:52 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: rbmj X-Patchwork-Id: 163395 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id BF72DB6FA8 for ; Thu, 7 Jun 2012 02:37:49 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1339605470; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-id:Date:From:User-Agent:MIME-version:To:Cc:Subject: References:In-reply-to:Content-type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=wC5X4ECo5jvFI00JJL4ECB1MNFg=; b=gsUbw2uStP9VgOp LX/Qlkk1nf2BcXBRakPCt/WnfTNwwc2fUi4r6r46ieS63VBs1s1zW3L9+e26BXi8 DkkKveTX5xKDFBEAUlaohfLaMkSRBwibd96dyXc2QhtHTnTjonK8yuFj+tSJBMZG r9hj6DsEqFchaFQ98VvHYAELklHQ= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Message-id:Date:From:User-Agent:MIME-version:To:Cc:Subject:References:In-reply-to:Content-type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=jUr8NKkGshROQrLcCMoR/M0suGqE3ogqgoo/KpLLe+CPQrNCOPUFXuRb15ie5p qi6biEORU+0/Xkj8qFmqZ/ck3zTVQKViaZo8juXX/XqOF2q6I1GNch4MQOaJ6B+E h3sD+4E+hFa2im/JDPRwvVAYhvfoXb/0H1avqML3MKcEM=; Received: (qmail 13299 invoked by alias); 6 Jun 2012 16:37:42 -0000 Received: (qmail 13234 invoked by uid 22791); 6 Jun 2012 16:37:40 -0000 X-SWARE-Spam-Status: No, hits=1.9 required=5.0 tests=AWL, BAYES_00, BOTNET, KHOP_THREADED, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, TW_XL, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from vms173013pub.verizon.net (HELO vms173013pub.verizon.net) (206.46.173.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 06 Jun 2012 16:37:26 +0000 Received: from [10.97.33.69] ([unknown] [151.188.105.156]) by vms173013.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0M5700GQGFHGMOI0@vms173013.mailsrvcs.net> for gcc-patches@gcc.gnu.org; Wed, 06 Jun 2012 11:36:53 -0500 (CDT) Message-id: <4FCF8724.9020600@verizon.net> Date: Wed, 06 Jun 2012 12:36:52 -0400 From: rbmj User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-version: 1.0 To: gcc-patches@gcc.gnu.org Cc: nathan@codesourcery.com, bkorb@gnu.org Subject: [PATCH 3/7] Add stdint.h wrapper for VxWorks. References: <4FCF863E.6090400@verizon.net> In-reply-to: <4FCF863E.6090400@verizon.net> Content-type: multipart/mixed; boundary=------------090006010208030705060008 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org The stdint.h doesn't have all the typedefs needed for standards compliance, so add a hack that adds all of the needed typedefs to be fully compliant to the standard. Fixes broken libstdc++. Changes: * fixincludes/inclhack.def: Added AAB_vxworks_stdint fix --- fixincludes/inclhack.def | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) From a50ecd253f6e7fa4a6558ebce0578c5f48ccbc17 Mon Sep 17 00:00:00 2001 From: rbmj Date: Mon, 4 Jun 2012 13:26:57 -0400 Subject: [PATCH 3/7] Add stdint.h wrapper for VxWorks. The stdint.h doesn't have all the typedefs needed for standards compliance, so add a hack that adds all of the needed typedefs to be fully compliant to the standard. Fixes broken libstdc++. Changes: * fixincludes/inclhack.def: Added AAB_vxworks_stdint fix --- fixincludes/inclhack.def | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/fixincludes/inclhack.def b/fixincludes/inclhack.def index d66b1cb..a7e49cd 100644 --- a/fixincludes/inclhack.def +++ b/fixincludes/inclhack.def @@ -396,6 +396,50 @@ fix = { /* + * Make VxWorks stdint.h a bit more compliant - add typedefs + */ +fix = { + hackname = AAB_vxworks_stdint; + files = stdint.h; + mach = "*-*-vxworks*"; + + replace = <<- _EndOfHeader_ + #ifndef _STDINT_H + #define _STDINT_H + /* get int*_t, uint*_t */ + #include + + typedef long intptr_t; + typedef unsigned long uintptr_t; + + typedef int64_t intmax_t; + typedef uint64_t uintmax_t; + + typedef int8_t int_least8_t; + typedef int16_t int_least16_t; + typedef int32_t int_least32_t; + typedef int64_t int_least64_t; + + typedef uint8_t uint_least8_t; + typedef uint16_t uint_least16_t; + typedef uint32_t uint_least32_t; + typedef uint64_t uint_least64_t; + + typedef int8_t int_fast8_t; + typedef int int_fast16_t; + typedef int32_t int_fast32_t; + typedef int64_t int_fast64_t; + + typedef uint8_t uint_fast8_t; + typedef unsigned int uint_fast16_t; + typedef uint32_t uint_fast32_t; + typedef uint64_t uint_fast64_t; + #endif + _EndOfHeader_; +}; + + +/* * complex.h on AIX 5 and AIX 6 define _Complex_I and I in terms of __I, * which only is provided by AIX xlc C99. */ -- 1.7.5.4