From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9883 invoked by alias); 30 Oct 2014 16:07:40 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 9871 invoked by uid 89); 30 Oct 2014 16:07:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e06smtp10.uk.ibm.com Received: from e06smtp10.uk.ibm.com (HELO e06smtp10.uk.ibm.com) (195.75.94.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Thu, 30 Oct 2014 16:07:37 +0000 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 30 Oct 2014 16:07:32 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp10.uk.ibm.com (192.168.101.140) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 30 Oct 2014 16:07:30 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (d06relay11.portsmouth.uk.ibm.com [9.149.109.196]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id ED2411B08051 for ; Thu, 30 Oct 2014 16:07:33 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id s9UG7UqF13697444 for ; Thu, 30 Oct 2014 16:07:30 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s9UG7T3h020581 for ; Thu, 30 Oct 2014 10:07:29 -0600 Received: from br87z6lw.de.ibm.com (dyn-9-152-212-196.boeblingen.de.ibm.com [9.152.212.196]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s9UG7SCT020558; Thu, 30 Oct 2014 10:07:29 -0600 From: Andreas Arnez To: Sandra Loosemore Cc: Subject: Re: GCC switch to C11 causes many testsuite compiler diagnostics References: <544BD7E6.1050602@codesourcery.com> Date: Thu, 30 Oct 2014 16:07:00 -0000 In-Reply-To: <544BD7E6.1050602@codesourcery.com> (Sandra Loosemore's message of "Sat, 25 Oct 2014 11:03:34 -0600") Message-ID: <874mula6db.fsf@br87z6lw.de.ibm.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14103016-0041-0000-0000-000001E0FE0B X-IsSubscribed: yes X-SW-Source: 2014-10/txt/msg00850.txt.bz2 On Sat, Oct 25 2014, Sandra Loosemore wrote: > Comparing my latest nios2 test results (with Pedro's thread patch) > with those from a checkout a couple weeks old, I noticed I had some > new ERRORs due to apparent compilation failures. I tracked this down > to the recent change on GCC mainline (r216247) to make the default C > dialect GNU11, which enables -Wimplicit-int and > -Wimplicit-function-declaration by default. I started working on a > patch to fix the offending testcases, but realized that there are > hundreds of them. :-( The warnings appear in our S390 testing as well, so I've been working on a fix already, as announced here: https://sourceware.org/ml/gdb-testers/2014-q4/msg00037.html In the meantime I've completed a patch set; maybe you'd like to check that it does fix the warnings on NIOS2: https://sourceware.org/ml/gdb-patches/2014-10/msg00802.html > > So, before I invest a lot more time on this, is updating the GDB > testsuite to use a more modern C dialect the Right Thing To Do? I'm > also wondering if it's really necessary to support compilers that > can't handle function prototypes in the testsuite (not defining > PROTOTYPES seems to be the default, in fact). AFAIK there's no need to support pre-C89 compilers that can't handle function prototypes. GDB itself can't be compiled with such a compiler, and many GDB test cases wouldn't work either. -- Andreas