From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24457 invoked by alias); 9 Feb 2012 15:37:28 -0000 Received: (qmail 24219 invoked by uid 22791); 9 Feb 2012 15:37:25 -0000 X-SWARE-Spam-Status: No, hits=-6.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 09 Feb 2012 15:37:00 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q19Fal7G025708 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 9 Feb 2012 10:36:47 -0500 Received: from host2.jankratochvil.net (ovpn-116-26.ams2.redhat.com [10.36.116.26]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q19FahHP030696 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 9 Feb 2012 10:36:46 -0500 Date: Thu, 09 Feb 2012 15:37:00 -0000 From: Jan Kratochvil To: Joel Brobecker Cc: gdb-patches@sourceware.org Subject: Re: [no-commit-intention] Naive unnamed fields for main_type [Re: [patch] Fix gdb-gdb.py for flds_bnds copy-pastes] Message-ID: <20120209153642.GA12261@host2.jankratochvil.net> References: <20120209092727.GA2664@host2.jankratochvil.net> <20120209093119.GA2722@host2.jankratochvil.net> <20120209151621.GB3474@adacore.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <20120209151621.GB3474@adacore.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 X-SW-Source: 2012-02/txt/msg00146.txt.bz2 On Thu, 09 Feb 2012 16:16:21 +0100, Joel Brobecker wrote: > Personally, I don't know what the obstacles are for switching to C99 > (technical, FSF policy?). I do not see anything even close to C90 compatibility, there are tons of errors with `gcc -std=c90 -pedantic', `sort -u' of them below. Regards, Jan coff-x86_64.c:174:13: error: ISO C90 does not support ‘long long’ [-Werror=long-long] pex64igen.c:2114:5: error: expected expression before ‘/’ token pex64igen.c:2114:66: error: too many decimal points in number ./dwarf2.c:3549:3: error: ISO C90 forbids mixed declarations and code [-Werror=edantic] readline.c:826:36: warning: ISO C forbids conversion of function pointer to object pointer type [-pedantic] rlprivate.h:462:1: error: unknown type name ‘sigjmp_buf’ opcodes/i386-dis.c:728:26: error: comma at end of enumerator list [-Werror=edantic] gdb/ i386-tdep.c:3481:24: error: use of C99 long long integer constant [-Werror=long-long] gdb/common/i386-xstate.h #define I386_XSTATE_X87 (1ULL << 0) error: ISO C forbids forward references to ‘enum’ types [-Werror=edantic] error: ISO C forbids assignment between function pointer and ‘void *’ [-Werror=edantic] error: ISO C does not allow extra ‘;’ outside of a function [-Werror=edantic] error: ISO C forbids empty initializer braces [-Werror=edantic] error: array initialized from parenthesized string constant [-Werror=edantic] error: array size missing in ‘GdbMethods’ error: excess elements in array initializer [-Werror] error: format ‘%x’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘int *’ [-Werror=format] error: initializer element is not computable at load time [-Werror] error: invoking macro GDBPY_NEW_EVENT_TYPE argument 6: empty macro arguments are undefined in ISO C90 and ISO C++98 [-Werror] error: non-ISO-standard escape sequence, '\e' [-Werror] error: string length ‘1107’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Werror=overlength-strings] error: string length ‘1912’ is greater than the length ‘509’ ISO C90 compilers are required to support [-Werror=overlength-strings] error: struct has no members [-Werror=edantic] error: type of bit-field ‘building_fullname’ is a GCC extension [-Werror=edantic]