aboutsummaryrefslogtreecommitdiff
path: root/sim/ppc/igen.c
diff options
context:
space:
mode:
authorMichael Meissner <gnu@the-meissners.org>1995-11-24 16:44:37 +0000
committerMichael Meissner <gnu@the-meissners.org>1995-11-24 16:44:37 +0000
commit45525d8d6da63f0dead75426c3b84f33d8289da9 (patch)
tree7330a21a4b19e72e3cf46570fce4aa8963271680 /sim/ppc/igen.c
parent46c065ab31c014af2cb61a65a489a389400b3230 (diff)
downloadgdb-45525d8d6da63f0dead75426c3b84f33d8289da9.zip
gdb-45525d8d6da63f0dead75426c3b84f33d8289da9.tar.gz
gdb-45525d8d6da63f0dead75426c3b84f33d8289da9.tar.bz2
Fix warnings to everything can be compiled with -Wall; Redo model specific changes once again to speed things up
Diffstat (limited to 'sim/ppc/igen.c')
-rw-r--r--sim/ppc/igen.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c
index 57211db..ddec166 100644
--- a/sim/ppc/igen.c
+++ b/sim/ppc/igen.c
@@ -1316,13 +1316,13 @@ lf_print_my_prefix(lf *file,
table_entry *file_entry,
int idecode)
{
- lf_printf(file, "const char *const my_prefix = \n");
+ lf_printf(file, "const char *const my_prefix __attribute__((__unused__)) = \n");
lf_printf(file, " \"%s:%s:%s:%d\";\n",
filter_filename (file_entry->file_name),
(idecode ? "idecode" : "semantics"),
file_entry->fields[insn_name],
file_entry->line_nr);
- lf_printf(file, "const itable_index my_index = ");
+ lf_printf(file, "const itable_index my_index __attribute__((__unused__)) = ");
lf_print_function_name(file,
file_entry->fields[insn_name],
NULL,
@@ -1804,7 +1804,7 @@ lf_print_c_extraction(lf *file,
ASSERT(bits->field == cur_field);
ASSERT(field_type == NULL);
table_entry_lf_c_line_nr(file, instruction->file_entry);
- lf_printf(file, "const unsigned %s = ",
+ lf_printf(file, "const unsigned %s __attribute__((__unused__)) = ",
field_name);
if (bits->opcode->last < bits->field->last)
lf_printf(file, "%d;\n",
@@ -1815,7 +1815,7 @@ lf_print_c_extraction(lf *file,
else {
/* put the field in the local variable */
table_entry_lf_c_line_nr(file, instruction->file_entry);
- lf_printf(file, "%s const %s = ",
+ lf_printf(file, "%s const %s __attribute__((__unused__)) = ",
field_type == NULL ? "unsigned" : field_type,
field_name);
/* getting it from the cache */
@@ -1919,7 +1919,7 @@ lf_print_c_extractions(lf *file,
if (strncmp(is_0_ptr - field_len, field_name, field_len) == 0
&& !isalpha(is_0_ptr[ - field_len - 1])) {
table_entry_lf_c_line_nr(file, instruction->file_entry);
- lf_printf(file, "const unsigned %s_is_0 = (", field_name);
+ lf_printf(file, "const unsigned %s_is_0 __attribute__((__unused__)) = (", field_name);
if (bits != NULL)
lf_printf(file, "%d", bits->value);
else