This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [patch]: New operand parser for i386 intel syntax
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: [patch]: New operand parser for i386 intel syntax
- From: Diego Novillo <dnovillo at cygnus dot com>
- Date: Wed, 25 Oct 2000 07:41:28 -0400
- Cc: binutils at sourceware dot cygnus dot com
- Organization: Red Hat Canada
- References: <20001024130034.A28661@tornado.cygnus.com> <20001024214350.B20059@cygnus.com>
On Tue, 24 Oct 2000, Richard Henderson wrote:
> On Tue, Oct 24, 2000 at 01:00:34PM -0400, Diego Novillo wrote:
> > + static void intel_get_token PARAMS (());
>
> Please note that this is a prototype for C++, but not C.
> Use PARAMS ((void)) instead.
>
Thanks. I've checked in the following fix:
2000-10-25 Diego Novillo <dnovillo@cygnus.com>
* tc-i386.c: Fix prototype declarations for functions taking no
arguments.
Index: tc-i386.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-i386.c,v
retrieving revision 1.62
diff -d -c -p -r1.62 tc-i386.c
*** tc-i386.c 2000/10/25 01:39:11 1.62
--- tc-i386.c 2000/10/25 11:37:40
*************** static struct intel_token cur_token, pre
*** 4335,4352 ****
/* Prototypes for intel parser functions. */
static int intel_match_token PARAMS ((int code));
! static void intel_get_token PARAMS (());
! static void intel_putback_token PARAMS (());
! static int intel_expr PARAMS (());
! static int intel_e05 PARAMS (());
! static int intel_e05_1 PARAMS (());
! static int intel_e06 PARAMS (());
! static int intel_e06_1 PARAMS (());
! static int intel_e09 PARAMS (());
! static int intel_e09_1 PARAMS (());
! static int intel_e10 PARAMS (());
! static int intel_e10_1 PARAMS (());
! static int intel_e11 PARAMS (());
static int
--- 4335,4352 ----
/* Prototypes for intel parser functions. */
static int intel_match_token PARAMS ((int code));
! static void intel_get_token PARAMS ((void));
! static void intel_putback_token PARAMS ((void));
! static int intel_expr PARAMS ((void));
! static int intel_e05 PARAMS ((void));
! static int intel_e05_1 PARAMS ((void));
! static int intel_e06 PARAMS ((void));
! static int intel_e06_1 PARAMS ((void));
! static int intel_e09 PARAMS ((void));
! static int intel_e09_1 PARAMS ((void));
! static int intel_e10 PARAMS ((void));
! static int intel_e10_1 PARAMS ((void));
! static int intel_e11 PARAMS ((void));
static int