From patchwork Tue Jan 12 13:18:44 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 566559 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]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id CCF1014032B for ; Wed, 13 Jan 2016 00:18:54 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=afRJ84QI; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; q=dns; s=default; b=TEYT2j345Jw01yVmF/+8wXOHnnyKqlxaREJn/jD8QbB jOjzS8skygjcpP9jsOjfcITgucpfAcMSR74DMZfqLMir5ZpE3+sOa7YBKCCgnCRG lEL4DZcmkgPA5cGU6JD0pRW6xxS9MQpw+4z2tLZz7Eh1w/dPt8QBmiUOq6E/hiIk = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:subject:message-id:reply-to:mime-version:content-type; s=default; bh=IHTQDZgINlCg3wHJKztFaObgob0=; b=afRJ84QICJxfEp5DA oPfwVNMnnp5cpoVLawkyUTiPLBCcI7/YZgQAfd020D8Ef4W46NPFgo3oAtOMammu HtFDWgdiTn0u3MCAaCvyvSbtAnom+dpKxe4aLsObA3CV+ohD/uFgD8QylvTNOrK9 eCxXlXj5JaQi6qeibt17tlbDWo= Received: (qmail 28850 invoked by alias); 12 Jan 2016 13:18:47 -0000 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 Received: (qmail 28829 invoked by uid 89); 12 Jan 2016 13:18:46 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.0 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy=943, H*R:D*gmail.com X-HELO: mga02.intel.com Received: from mga02.intel.com (HELO mga02.intel.com) (134.134.136.20) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 12 Jan 2016 13:18:46 +0000 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga101.jf.intel.com with ESMTP; 12 Jan 2016 05:18:44 -0800 X-ExtLoop1: 1 Received: from gnu-6.sc.intel.com ([172.25.70.52]) by fmsmga002.fm.intel.com with ESMTP; 12 Jan 2016 05:18:44 -0800 Received: by gnu-6.sc.intel.com (Postfix, from userid 1000) id 83202200123; Tue, 12 Jan 2016 05:18:44 -0800 (PST) Date: Tue, 12 Jan 2016 05:18:44 -0800 From: "H.J. Lu" To: gcc-patches@gcc.gnu.org Subject: [Committed, PATCH] Define STDINT_LONG32 and add predefined integer types for IAMCU Message-ID: <20160112131844.GA18730@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Define STDINT_LONG32 to 0, add SIZE_TYPE, PTRDIFF_TYPE and WCHAR_TYPE for IAMCU to make integer types compatible with i386 Linux. Checked into trunk. H.J. ---- PR target/68456 PR target/69226 * config/i386/iamcu.h (SIZE_TYPE): New macro. (PTRDIFF_TYPE): Likewise. (WCHAR_TYPE): Likewise. (WCHAR_TYPE_SIZE): Likewise. (STDINT_LONG32): Likewise. --- gcc/config/i386/iamcu.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/gcc/config/i386/iamcu.h b/gcc/config/i386/iamcu.h index 53afbc0..e16c9d63 100644 --- a/gcc/config/i386/iamcu.h +++ b/gcc/config/i386/iamcu.h @@ -94,3 +94,19 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see goto DONE; \ } \ } while (0) + +#undef SIZE_TYPE +#define SIZE_TYPE "unsigned int" + +#undef PTRDIFF_TYPE +#define PTRDIFF_TYPE "int" + +#undef WCHAR_TYPE +#define WCHAR_TYPE "long int" + +#undef WCHAR_TYPE_SIZE +#define WCHAR_TYPE_SIZE BITS_PER_WORD + +/* Use int, instead of long int, for int32_t and uint32_t. */ +#undef STDINT_LONG32 +#define STDINT_LONG32 0