From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40202 invoked by alias); 5 Dec 2018 15:39:54 -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 40091 invoked by uid 89); 5 Dec 2018 15:39:53 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=logs X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 15:39:52 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 0590081E1A; Wed, 5 Dec 2018 16:39:50 +0100 (CET) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lEHApj4DagFi; Wed, 5 Dec 2018 16:39:49 +0100 (CET) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id BFC6781DD3; Wed, 5 Dec 2018 16:39:49 +0100 (CET) From: Eric Botcazou To: Rainer Orth Cc: gcc-patches@gcc.gnu.org Subject: Re: [SPARC] Fix PR target/87807 Date: Wed, 05 Dec 2018 15:39:00 -0000 Message-ID: <1830252.Y1YN9jMOxn@polaris> In-Reply-To: References: <37650183.iAzO7P3RYW@polaris> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-SW-Source: 2018-12/txt/msg00287.txt.bz2 > unfortunately, the new tests FAIL to compile, both 32 and 64-bit: > > +FAIL: gcc.target/sparc/20181129-1.c (test for excess errors) > +UNRESOLVED: gcc.target/sparc/20181129-1.c compilation failed to produce > executable +FAIL: gcc.target/sparc/20181129-2.c (test for excess errors) > +UNRESOLVED: gcc.target/sparc/20181129-2.c compilation failed to produce > executable Not clear how I missed them, they are in my logs too... > Excess errors: > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-1.c:17:3 > : error: ISO C90 forbids mixed declarations and code > [-Wdeclaration-after-statement] > > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-2.c: In > function 'f': > /vol/gcc/src/hg/trunk/local/gcc/testsuite/gcc.target/sparc/20181129-2.c:17: > 3: error: ISO C90 forbids mixed declarations and code > [-Wdeclaration-after-statement] > > The following patch fixes this by building as C99. Alternatively, it > would work just as well to split the x declaration and initialization. Thanks for fixing this. -- Eric Botcazou