From patchwork Thu Feb 23 17:31:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 142679 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 24F07B6EE7 for ; Fri, 24 Feb 2012 04:32:04 +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=1330623125; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Received-SPF:Received:MIME-Version:Received:Received:In-Reply-To: References:Date:Message-ID:Subject:From:To:Cc:Content-Type: Content-Transfer-Encoding:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=LxX/vgFfNYQ66iuyBJ8gua+DUi0=; b=OuF7Y3gnTDNTvwA LvkH3RDuU3c3ghw00fjlaADm8ZFHF/qhPELgtsb6oJNF1ng+29friClSO8yt5xpC Qwvira/isF3A7E/v4qaz3JmnWUODZItSG7zCsO6eukozcMbF/1egRR+F7I83I9q5 Yr20emcv/9f6YpU5cPLAqfHT1LF0= 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-SPF:Authentication-Results:Received:MIME-Version:Received:Received:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=n/JCIvI0GSKkTvOXUP2JwiDMVUvDqzy47rU6rBGgXin42BdITiUne9O9t3BB76 CojvX7fF2Idd/g3BW3z1hJC9HkGSI7v4QO0Tsb6Vc/mEXLbIUq+zCI1n5m8Is3zf +LFo1wGBxuDcKy3alb4lBF9RiVaofqS5sD8AryL/PsuNA=; Received: (qmail 12804 invoked by alias); 23 Feb 2012 17:32:00 -0000 Received: (qmail 12787 invoked by uid 22791); 23 Feb 2012 17:31:58 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-tul01m020-f175.google.com (HELO mail-tul01m020-f175.google.com) (209.85.214.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Feb 2012 17:31:45 +0000 Received: by obhx4 with SMTP id x4so1796220obh.20 for ; Thu, 23 Feb 2012 09:31:45 -0800 (PST) Received-SPF: pass (google.com: domain of ktietz70@googlemail.com designates 10.182.231.38 as permitted sender) client-ip=10.182.231.38; Authentication-Results: mr.google.com; spf=pass (google.com: domain of ktietz70@googlemail.com designates 10.182.231.38 as permitted sender) smtp.mail=ktietz70@googlemail.com; dkim=pass header.i=ktietz70@googlemail.com Received: from mr.google.com ([10.182.231.38]) by 10.182.231.38 with SMTP id td6mr851158obc.47.1330018305029 (num_hops = 1); Thu, 23 Feb 2012 09:31:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.231.38 with SMTP id td6mr745987obc.47.1330018304992; Thu, 23 Feb 2012 09:31:44 -0800 (PST) Received: by 10.182.33.103 with HTTP; Thu, 23 Feb 2012 09:31:44 -0800 (PST) In-Reply-To: <20120223172552.GU18768@tyan-ft48-01.lab.bos.redhat.com> References: <20120223170602.GT18768@tyan-ft48-01.lab.bos.redhat.com> <20120223172552.GU18768@tyan-ft48-01.lab.bos.redhat.com> Date: Thu, 23 Feb 2012 18:31:44 +0100 Message-ID: Subject: Re: [patch testsuite]: Adjust some tests of gcc.dg and gcc.c-torture for mingw targets From: Kai Tietz To: Jakub Jelinek Cc: GCC Patches 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 2012/2/23 Jakub Jelinek : > On Thu, Feb 23, 2012 at 06:23:39PM +0100, Kai Tietz wrote: >> And the underlying issue is that __extension__ can't be use before >> __SIZE_TYPE__ here. gcc lacks to parse that proper.  You would get > > Then please use > __extension__ typedef __SIZE_TYPE__ size_t; > and use size_t in the prototype.  __extension__ before the prototype > is simply too confusing. > Anyway, will defer the rest to the testsuite maintainers. > >        Jakub Ok hunk for gcc.dg/tls/opt-11.c modified as Index: gcc.dg/tls/opt-11.c =================================================================== --- gcc.dg/tls/opt-11.c (revision 184486) +++ gcc.dg/tls/opt-11.c (working copy) @@ -2,8 +2,10 @@ /* { dg-require-effective-target tls_runtime } */ /* { dg-add-options tls } */ +__extension__ typedef __SIZE_TYPE__ size_t; + extern void abort (void); -extern void *memset (void *, int, __SIZE_TYPE__); +extern void *memset (void *, int, size_t); struct A {