From patchwork Mon Aug 26 15:01:26 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 269906 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 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "www.sourceware.org", Issuer "StartCom Class 1 Primary Intermediate Server CA" (not verified)) by ozlabs.org (Postfix) with ESMTPS id B9C562C00CF for ; Tue, 27 Aug 2013 01:01:38 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:to:cc:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=Q0DkqJOffcbr8KaO R+n+poALYRLwlwZRt/ipXfHCkOwIMClusl5XvFoqQ910EonJkSdwnpxyY0t1q82S +12AUR+W6L6mjefdNDL6Qd6k2f2yJf0DTUOttM30wIOMmOC3h8WHbVsJVxvvJl4Q ltUf+dq34TxdSZfNpuU41D3o028= 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 :message-id:date:from:to:cc:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=C6tXt91NHfcSawa9LA7DJr 3ZZZU=; b=BBbjYCAG80piFcPUi/kMWgjtpitntiJ/6ZecwN6ecv67p3kOORZJAU 6Xhy/45qg+JKyYD+rly4FWCL4OHEZiZuitcPlkAeRkrrcyEjGQudn8x1TFcPavSc uXIEJNBoGzqZ4be7dhu0a8c+Vta8HEOyO8StRlFMw8o66y9nzxY88= Received: (qmail 7414 invoked by alias); 26 Aug 2013 15:01:31 -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 7404 invoked by uid 89); 26 Aug 2013 15:01:30 -0000 Received: from c62.cesmail.net (HELO c62.cesmail.net) (216.154.195.54) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Mon, 26 Aug 2013 15:01:30 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: c62.cesmail.net Received: from unknown (HELO delta2) ([192.168.1.50]) by c62.cesmail.net with ESMTP; 26 Aug 2013 11:01:26 -0400 Received: from cust213-dsl91-135-11.idnet.net (cust213-dsl91-135-11.idnet.net [91.135.11.213]) by webmail.spamcop.net (Horde MIME library) with HTTP; Mon, 26 Aug 2013 11:01:26 -0400 Message-ID: <20130826110126.a43cg9k6m88wgkk8-nzlynne@webmail.spamcop.net> Date: Mon, 26 Aug 2013 11:01:26 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Cc: Denis Chertykov , Anatoly Sokolov , Eric Weddington Subject: RFA: fix some avr stdint issues MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) This patch fixes the gcc.dg/c99-stdint-5.c and gcc.dg/c99-stdint-6.c excess error failures. Tested for atmega128-sim. OK to apply? 2013-05-26 Joern Rennecke * config/avr/avr-stdint.h (INT16_TYPE): Change default to "int". (UINT16_TYPE): Change default to "unsigned int". Index: config/avr/avr-stdint.h =================================================================== --- config/avr/avr-stdint.h (revision 201989) +++ config/avr/avr-stdint.h (working copy) @@ -34,11 +34,11 @@ the Free Software Foundation; either ver #define SIG_ATOMIC_TYPE "char" #define INT8_TYPE "signed char" -#define INT16_TYPE (INT_TYPE_SIZE == 16 ? "short int" : "long int") +#define INT16_TYPE (INT_TYPE_SIZE == 16 ? "int" : "long int") #define INT32_TYPE (INT_TYPE_SIZE == 16 ? "long int" : "long long int") #define INT64_TYPE (INT_TYPE_SIZE == 16 ? "long long int" : 0) #define UINT8_TYPE "unsigned char" -#define UINT16_TYPE (INT_TYPE_SIZE == 16 ? "short unsigned int" : "long unsigned int") +#define UINT16_TYPE (INT_TYPE_SIZE == 16 ? "unsigned int" : "long unsigned int") #define UINT32_TYPE (INT_TYPE_SIZE == 16 ? "long unsigned int" : "long long unsigned int") #define UINT64_TYPE (INT_TYPE_SIZE == 16 ? "long long unsigned int" : 0)