From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15782 invoked by alias); 12 Jun 2012 23:20:41 -0000 Received: (qmail 15774 invoked by uid 22791); 12 Jun 2012 23:20:40 -0000 X-SWARE-Spam-Status: No, hits=-0.8 required=5.0 tests=AWL,BAYES_00,FSL_RCVD_USER,MSGID_MULTIPLE_AT,TW_YY X-Spam-Check-By: sourceware.org Received: from mailhost.u-strasbg.fr (HELO mailhost.u-strasbg.fr) (130.79.200.151) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 12 Jun 2012 23:20:27 +0000 Received: from md15.u-strasbg.fr (md15.u-strasbg.fr [130.79.200.204]) by mailhost.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id q5CNK6Sx028934 ; Wed, 13 Jun 2012 01:20:06 +0200 (CEST) (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from mailserver.u-strasbg.fr (ms13.u-strasbg.fr [130.79.204.113]) by md15.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id q5CNK6c8010587 ; Wed, 13 Jun 2012 01:20:06 +0200 (envelope-from pierre.muller@ics-cnrs.unistra.fr) Received: from E6510Muller (lec67-4-82-230-53-140.fbx.proxad.net [82.230.53.140]) (user=mullerp mech=LOGIN) by mailserver.u-strasbg.fr (8.14.3/jtpda-5.5pre1) with ESMTP id q5CNK5Dj022040 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) ; Wed, 13 Jun 2012 01:20:06 +0200 (envelope-from pierre.muller@ics-cnrs.unistra.fr) From: "Pierre Muller" To: Cc: "'Joel Brobecker'" Subject: GDB -Wmissing-prototypes and flex troubles Date: Tue, 12 Jun 2012 23:20:00 -0000 Message-ID: <004801cd48f1$e6599080$b30cb180$@muller@ics-cnrs.unistra.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-06/txt/msg00059.txt.bz2 I am working on MIPS CPU support for Free Pascal and found a problem inside GDB related to that. I treid to set up a gdb automatic tester on GCC compile farm gcc42. muller@gcc42:~$ uname -a Linux gcc42 2.6.27.1 #476 Tue Oct 20 14:25:23 CST 2009 mips64 GNU/Linux But the compilation of GDB fails because the installed flex version muller@gcc42:~$ flex --version flex 2.5.33 (Cygwin installed flex 2.5.35 does add those prototypes) Doesn't provide the missing prototypes required by the use of this new warning used together with -Werror option. I didn't really find any version requirement for flex. Should we: 1) Specify a minimal version for flex? 2) disable missing-prototypes option for ada-exp.c compilation? 3) Do 2) if version if below minimum version adding those prototypes? Pierre Muller Part of diff -u output: --- ada-lex.c.mips 2012-06-12 17:04:54.789877300 +0200 +++ ada-lex.c 2012-06-12 17:11:39.852185300 +0200 @@ -9,7 +9,7 @@ #define FLEX_SCANNER #define YY_FLEX_MAJOR_VERSION 2 #define YY_FLEX_MINOR_VERSION 5 -#define YY_FLEX_SUBMINOR_VERSION 33 +#define YY_FLEX_SUBMINOR_VERSION 35 #if YY_FLEX_SUBMINOR_VERSION > 0 #define FLEX_BETA #endif >>> Below @@ -776,6 +889,35 @@ static int yy_init_globals (void ); +/* Accessor methods to globals. + These are made visible to non-reentrant scanners for convenience. */ + +int yylex_destroy (void ); + +int yyget_debug (void ); + +void yyset_debug (int debug_flag ); + +YY_EXTRA_TYPE yyget_extra (void ); + +void yyset_extra (YY_EXTRA_TYPE user_defined ); + +FILE *yyget_in (void ); + +void yyset_in (FILE * in_str ); + +FILE *yyget_out (void ); + +void yyset_out (FILE * out_str ); + +int yyget_leng (void ); + +char *yyget_text (void ); + +int yyget_lineno (void ); + +void yyset_lineno (int line_number ); + /* Macros after this point can all be overridden by user definitions in * section 1. */