aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2007-03-29 09:05:27 +0000
committerNick Clifton <nickc@redhat.com>2007-03-29 09:05:27 +0000
commite55518010951f26d1b807c4c19d1d9f635358ab6 (patch)
tree048fd238097efef4cba8970c7a9a1c7d3a706322 /gas
parentaaf9e9fd5ba92fddf4cb82bfa1e5cdf4b6234a53 (diff)
downloadgdb-e55518010951f26d1b807c4c19d1d9f635358ab6.zip
gdb-e55518010951f26d1b807c4c19d1d9f635358ab6.tar.gz
gdb-e55518010951f26d1b807c4c19d1d9f635358ab6.tar.bz2
* itbl-ops.c (itbl_entry): Remove unnecessary and excessively long initialization.
* itbl-ops.h (enum e_processor): Initialise the e_nprocs field using ITBL_NUMBER_OF_PROCESSORS. * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog8
-rw-r--r--gas/itbl-ops.c7
-rw-r--r--gas/itbl-ops.h4
-rw-r--r--gas/itbl-parse.y4
4 files changed, 13 insertions, 10 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 648a162..b65fbf9 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,11 @@
+2007-03-29 Nick Clifton <nickc@redhat.com>
+
+ * itbl-ops.c (itbl_entry): Remove unnecessary and excessively long
+ initialization.
+ * itbl-ops.h (enum e_processor): Initialise the e_nprocs field
+ using ITBL_NUMBER_OF_PROCESSORS.
+ * itbl-parse.y (yyerror): Remove use of redundant macro PARAMS.
+
2007-03-28 H.J. Lu <hongjiu.lu@intel.com>
* config/tc-i386.c (build_modrm_byte): For instructions with 2
diff --git a/gas/itbl-ops.c b/gas/itbl-ops.c
index 7c5c749..41fa033 100644
--- a/gas/itbl-ops.c
+++ b/gas/itbl-ops.c
@@ -145,12 +145,7 @@ struct itbl_entry {
static int itbl_num_opcodes = 0;
/* Array of entries for each processor and entry type */
-static struct itbl_entry *entries[e_nprocs][e_ntypes] = {
- {0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0},
- {0, 0, 0, 0, 0, 0}
-};
+static struct itbl_entry *entries[e_nprocs][e_ntypes];
/* local prototypes */
static unsigned long build_opcode (struct itbl_entry *e);
diff --git a/gas/itbl-ops.h b/gas/itbl-ops.h
index b1687da..d9dbf7c 100644
--- a/gas/itbl-ops.h
+++ b/gas/itbl-ops.h
@@ -1,5 +1,5 @@
/* itbl-ops.h
- Copyright 1997, 1999, 2000, 2003, 2006 Free Software Foundation, Inc.
+ Copyright 1997, 1999, 2000, 2003, 2006, 2007 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -69,7 +69,7 @@ typedef enum
typedef enum
{
e_p0,
- e_nprocs = NUMBER_OF_PROCESSORS,
+ e_nprocs = ITBL_NUMBER_OF_PROCESSORS,
e_invproc /* invalid processor */
} e_processor;
diff --git a/gas/itbl-parse.y b/gas/itbl-parse.y
index 45e10ef..ff48657 100644
--- a/gas/itbl-parse.y
+++ b/gas/itbl-parse.y
@@ -1,5 +1,5 @@
/* itbl-parse.y
- Copyright 1997, 2002, 2003, 2005, 2006 Free Software Foundation, Inc.
+ Copyright 1997, 2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -274,7 +274,7 @@ FIXME! hex is ambiguous with any digit
static int sbit, ebit;
static struct itbl_entry *insn=0;
-static int yyerror PARAMS ((const char *));
+static int yyerror (const char *);
%}