From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 97052 invoked by alias); 17 May 2017 05:53:18 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 45334 invoked by uid 89); 17 May 2017 05:52:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:sk:smtpout, H*RU:sk:smtpout, H*r:sk:smtpout X-HELO: esa6.microchip.iphmx.com Received: from Unknown (HELO esa6.microchip.iphmx.com) (216.71.154.253) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 17 May 2017 05:52:15 +0000 Received: from smtpout.microchip.com (HELO email.microchip.com) ([198.175.253.82]) by esa6.microchip.iphmx.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 16 May 2017 22:52:10 -0700 Received: from jaguar.microchip.com (10.10.76.4) by chn-sv-exch06.mchp-main.com (10.10.76.107) with Microsoft SMTP Server id 14.3.181.6; Tue, 16 May 2017 22:52:09 -0700 User-agent: mu4e 0.9.18; emacs 25.1.1 From: Senthil Kumar Selvaraj To: GCC Subject: [Patch, testsuite, committed] Fix bogus pr78886.c for avr Date: Wed, 17 May 2017 06:34:00 -0000 Message-ID: <87a86ckp50.fsf@microchip.com> MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2017-05/txt/msg01348.txt.bz2 Hi, The test declares malloc with an unsigned long parameter. This causes a warning for avr, as it's size_t is only unsigned int. Fixed by typdef'ing __SIZE_TYPE__ to size_t and using it in the malloc function's declaration. Committed as obvious. Regards Senthil gcc/testsuite/ChangeLog 2017-05-17 Senthil Kumar Selvaraj * gcc.dg/tree-ssa/pr78886.c: Use __SIZE_TYPE__ instead of unsigned long. Index: gcc/testsuite/gcc.dg/tree-ssa/pr78886.c =================================================================== --- gcc/testsuite/gcc.dg/tree-ssa/pr78886.c (revision 248137) +++ gcc/testsuite/gcc.dg/tree-ssa/pr78886.c (working copy) @@ -1,7 +1,9 @@ /* { dg-do compile } */ /* { dg-options "-O2" } */ -void *malloc(unsigned long x); +__extension__ typedef __SIZE_TYPE__ size_t; +void *malloc(size_t x); + void foo(void) { volatile int i;