From patchwork Tue Jul 19 13:24:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Senthil Kumar Selvaraj X-Patchwork-Id: 650194 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 3rv14Z1ClPz9s6r for ; Tue, 19 Jul 2016 23:25:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=xYWOYpYC; 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:from :to:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=GeSI41cCoA6LjCjvy7Pp//ZkdsTUlO2p8eku/Efv7GDyVHcDd+XGm HvQ5mmWbd0RAqjlBYVipL1II1epDuK5Uj22LAlxlpL6jTQjGV3gGsadn4gxN+Mi4 lK1u0yYKVsoetS9f75LQYR2x+oEDT9zhQh7uOU+b1NGyu2xkblmFt4= 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:from :to:subject:date:message-id:mime-version:content-type; s= default; bh=jzG2fFdPf6yeWTc+YMCwI+8/di8=; b=xYWOYpYCTQgQfF9X28be TdSsu8kdL5Bte2kycvvV0fAH5gQxMWoFCceldkuzTTgS0yHTnX7XLXFn23IhYk6i M0r2d2OzUQ2nsiwDKIsAPst/3YI51KTFDfUmxw/YDAXz4UWU52+zWVn146gXmhUh OsWFlSIwoopICj3FawyVyaY= Received: (qmail 39952 invoked by alias); 19 Jul 2016 13:25:10 -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 39928 invoked by uid 89); 19 Jul 2016 13:25:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.2 required=5.0 tests=BAYES_00, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=21, 8, H*RU:14.3.235.1, H*F:D*atmel.com, H*r:14.3.235 X-HELO: eusmtp01.atmel.com Received: from eusmtp01.atmel.com (HELO eusmtp01.atmel.com) (212.144.249.242) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Tue, 19 Jul 2016 13:24:59 +0000 Received: from HNOCHT02.corp.atmel.com (10.161.30.162) by eusmtp01.atmel.com (10.161.101.30) with Microsoft SMTP Server (TLS) id 14.3.235.1; Tue, 19 Jul 2016 15:24:53 +0200 Received: from jaguar.atmel.com (10.161.30.18) by HNOCHT02.corp.atmel.com (10.161.30.162) with Microsoft SMTP Server (TLS) id 14.3.235.1; Tue, 19 Jul 2016 15:24:54 +0200 User-agent: mu4e 0.9.17; emacs 24.5.1 From: Senthil Kumar Selvaraj To: "gcc-patches@gcc.gnu.org" Subject: [Patch, testsuite, committed] Fix gcc.dg/params/blocksort-part.c for non 32-bit int targets Date: Tue, 19 Jul 2016 18:54:25 +0530 Message-ID: <87r3apdaly.fsf@atmel.com> MIME-Version: 1.0 X-IsSubscribed: yes Hi, The below patch conditionally defines Int32 and UInt32 to accomodate targets with sizeof(int) != 4. Regtested with x86_64 and avr. Committed as obvious. Regards Senthil 2016-07-19 Senthil Kumar Selvaraj * gcc.dg/params/blocksort-part.c: Conditionally define Int32 and UInt32 based on __SIZEOF_INT__. --- gcc/testsuite/gcc.dg/params/blocksort-part.c +++ gcc/testsuite/gcc.dg/params/blocksort-part.c @@ -21,8 +21,13 @@ typedef char Char; typedef unsigned char Bool; typedef unsigned char UChar; +#if __SIZEOF_INT__ == 2 +typedef long Int32; +typedef unsigned long UInt32; +#else typedef int Int32; typedef unsigned int UInt32; +#endif typedef short Int16; typedef unsigned short UInt16;