From patchwork Fri Mar 16 09:29:05 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tristan Gingold X-Patchwork-Id: 147176 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 616EFB70D6 for ; Fri, 16 Mar 2012 20:29:26 +1100 (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=1332494967; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:From:Content-Type:Content-Transfer-Encoding:Subject: Date:Message-Id:To:Mime-Version:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=9SCylBilehTI1IjO53YwusxY5wo=; b=nt5/CJ9M/vlRuzM GMaWPmfZLzZ5oixW9Pv5SumfUJtknEjcAWRb5lpFl3Lsjy93x5VKfl6N8qY3KNEt 6UcCcA2UZ+raOxo4LwIGH+nofGrEOANxRHiJ6a5BZJX6nTq63Cjz0DodVDv27RJP e/15KcVishWqDlgEdR2vah3km+cc= 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:Received:Received:From:Content-Type:Content-Transfer-Encoding:Subject:Date:Message-Id:To:Mime-Version:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=wsaUuNsVvXV1qRvsqbWIgA6Ai80TQwotxUnfbQH9TgtY3qLKaDqYXdzfUvA6kh ZDeKlOqPnW86s6/10jECirwM0KcBLvNGM71ShsEaZsowFlnzNKbyLdP3zheX1H6N hM/a+njhGOo9tTEwO+Y38V6HZ7bQAHjmqPBinSqO/MgTk=; Received: (qmail 27490 invoked by alias); 16 Mar 2012 09:29:21 -0000 Received: (qmail 27480 invoked by uid 22791); 16 Mar 2012 09:29:20 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (194.98.77.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 16 Mar 2012 09:29:07 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id DB9AD290049 for ; Fri, 16 Mar 2012 10:29:07 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Nb0DrU8MfK6O for ; Fri, 16 Mar 2012 10:29:07 +0100 (CET) Received: from ulanbator.act-europe.fr (ulanbator.act-europe.fr [10.10.1.67]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id C8F51290041 for ; Fri, 16 Mar 2012 10:29:07 +0100 (CET) From: Tristan Gingold Subject: [VMS/committed]: Provide C99 stdint.h Date: Fri, 16 Mar 2012 10:29:05 +0100 Message-Id: <1453D6F6-46FA-40F5-A025-F1B4CF51B235@adacore.com> To: GCC Patches Mime-Version: 1.0 (Apple Message framework v1257) 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 Hi, this patch makes gcc provide the C99 compliant stdint.h header. (required by libquadmath). Committed on trunk. Tristan. 2012-03-16 Tristan Gingold * config.gcc (*-*-*vms*): Define use_gcc_stdint and tm_file. * config/vms/vms-stdint.h: New file. Index: gcc/config.gcc =================================================================== --- gcc/config.gcc (revision 185454) +++ gcc/config.gcc (working copy) @@ -740,6 +740,8 @@ xm_file="vms/xm-vms.h" c_target_objs="vms-c.o" cxx_target_objs="vms-c.o" + use_gcc_stdint=provide + tm_file="${tm_file} vms/vms-stdint.h" if test x$gnu_ld != xyes; then # Build wrappers for native case. extra_programs="ld\$(exeext) ar\$(exeext)" Index: gcc/config/vms/vms-stdint.h =================================================================== --- gcc/config/vms/vms-stdint.h (revision 0) +++ gcc/config/vms/vms-stdint.h (revision 0) @@ -0,0 +1,50 @@ +/* Definitions for types on VMS systems. + Copyright (C) 2012 Free Software Foundation, Inc. + +This file is part of GCC. + +GCC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 3, or (at your option) +any later version. + +GCC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GCC; see the file COPYING3. If not see +. */ + +#define SIG_ATOMIC_TYPE "int" + +#define INT8_TYPE "signed char" +#define INT16_TYPE "short int" +#define INT32_TYPE "int" +#define INT64_TYPE "long long int" +#define UINT8_TYPE "unsigned char" +#define UINT16_TYPE "short unsigned int" +#define UINT32_TYPE "unsigned int" +#define UINT64_TYPE "long long unsigned int" + +#define INT_LEAST8_TYPE "signed char" +#define INT_LEAST16_TYPE "short int" +#define INT_LEAST32_TYPE "int" +#define INT_LEAST64_TYPE "long long int" +#define UINT_LEAST8_TYPE "unsigned char" +#define UINT_LEAST16_TYPE "short unsigned int" +#define UINT_LEAST32_TYPE "unsigned int" +#define UINT_LEAST64_TYPE "long long unsigned int" + +#define INT_FAST8_TYPE "signed char" +#define INT_FAST16_TYPE "short int" +#define INT_FAST32_TYPE "int" +#define INT_FAST64_TYPE "long long int" +#define UINT_FAST8_TYPE "unsigned char" +#define UINT_FAST16_TYPE "short unsigned int" +#define UINT_FAST32_TYPE "unsigned int" +#define UINT_FAST64_TYPE "long long unsigned int" + +#define INTPTR_TYPE "long long int" +#define UINTPTR_TYPE "long long unsigned int"