This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[patch] i960-desc.c macros



Checking this in with fche's approval.  I didn't regenerate the file
because the i960 sim won't work with the current cgen, but without
this macro change (which is what cgen would have put in if
regenerating did work) the sim won't build with the latest gcc.

2001-02-06  DJ Delorie  <dj@redhat.com>

	* i960-desc.c: Update all the A macro definitions to the new
	stdc-sensitive versions that cgen would have used.

Index: i960-desc.c
===================================================================
RCS file: /cvs/src/src/sim/i960/i960-desc.c,v
retrieving revision 1.1.1.3
diff -p -2 -r1.1.1.3 i960-desc.c
*** i960-desc.c	1999/05/05 14:45:45	1.1.1.3
--- i960-desc.c	2001/02/07 01:12:47
***************
*** 3,7 ****
  THIS FILE IS MACHINE GENERATED WITH CGEN.
  
! Copyright (C) 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
  
  This file is part of the GNU Binutils and/or GDB, the GNU debugger.
--- 3,7 ----
  THIS FILE IS MACHINE GENERATED WITH CGEN.
  
! Copyright (C) 1996, 1997, 1998, 1999, 2001 Free Software Foundation, Inc.
  
  This file is part of the GNU Binutils and/or GDB, the GNU debugger.
*************** CGEN_KEYWORD i960_cgen_opval_h_cc =
*** 185,189 ****
  /* The hardware table.  */
  
! #define A(a) (1 << CONCAT2 (CGEN_HW_,a))
  
  const CGEN_HW_ENTRY i960_cgen_hw_table[] =
--- 185,193 ----
  /* The hardware table.  */
  
! #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
! #define A(a) (1 << CGEN_HW_##a)
! #else
! #define A(a) (1 << CGEN_HW_/**/a)
! #endif
  
  const CGEN_HW_ENTRY i960_cgen_hw_table[] =
*************** const CGEN_HW_ENTRY i960_cgen_hw_table[]
*** 204,208 ****
  /* The instruction field table.  */
  
! #define A(a) (1 << CONCAT2 (CGEN_IFLD_,a))
  
  const CGEN_IFLD i960_cgen_ifld_table[] =
--- 208,216 ----
  /* The instruction field table.  */
  
! #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
! #define A(a) (1 << CGEN_IFLD_##a)
! #else
! #define A(a) (1 << CGEN_IFLD_/**/a)
! #endif
  
  const CGEN_IFLD i960_cgen_ifld_table[] =
*************** const CGEN_IFLD i960_cgen_ifld_table[] =
*** 241,246 ****
  /* The operand table.  */
  
! #define A(a) (1 << CONCAT2 (CGEN_OPERAND_,a))
! #define OPERAND(op) CONCAT2 (I960_OPERAND_,op)
  
  const CGEN_OPERAND i960_cgen_operand_table[] =
--- 249,262 ----
  /* The operand table.  */
  
! #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
! #define A(a) (1 << CGEN_OPERAND_##a)
! #else
! #define A(a) (1 << CGEN_OPERAND_/**/a)
! #endif
! #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
! #define OPERAND(op) I960_OPERAND_##op
! #else
! #define OPERAND(op) I960_OPERAND_/**/op
! #endif
  
  const CGEN_OPERAND i960_cgen_operand_table[] =
*************** const CGEN_OPERAND i960_cgen_operand_tab
*** 302,307 ****
  #undef A
  
- #define A(a) (1 << CONCAT2 (CGEN_INSN_,a))
  #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
  
  /* The instruction table.  */
--- 318,327 ----
  #undef A
  
  #define OP(field) CGEN_SYNTAX_MAKE_FIELD (OPERAND (field))
+ #if defined (__STDC__) || defined (ALMOST_STDC) || defined (HAVE_STRINGIZE)
+ #define A(a) (1 << CGEN_INSN_##a)
+ #else
+ #define A(a) (1 << CGEN_INSN_/**/a)
+ #endif
  
  /* The instruction table.  */

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]