aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>2002-08-20 00:55:22 +0000
committerKaveh Ghazi <ghazi@gcc.gnu.org>2002-08-20 00:55:22 +0000
commit2bf087c09eb697b798574e77845466d248381bc6 (patch)
tree1b66370c036a1a6674a993e068310b84f41b0ddc /gcc
parent1860e6ab056942060d4f9d326cb74d6bac640200 (diff)
downloadgcc-2bf087c09eb697b798574e77845466d248381bc6.zip
gcc-2bf087c09eb697b798574e77845466d248381bc6.tar.gz
gcc-2bf087c09eb697b798574e77845466d248381bc6.tar.bz2
genautomata.c (output_translate_vect, [...]): Mark variable with ATTRIBUTE_UNUSED in output file.
* genautomata.c (output_translate_vect, output_state_ainsn_table, output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED in output file. (output_internal_min_issue_delay_func): Initialize variable in output file. From-SVN: r56450
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/genautomata.c10
2 files changed, 13 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 5a02c17..1fc5a24 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2002-08-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
+
+ * genautomata.c (output_translate_vect, output_state_ainsn_table,
+ output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
+ in output file.
+ (output_internal_min_issue_delay_func): Initialize variable in
+ output file.
+
2002-08-19 Alexandre Oliva <aoliva@redhat.com>
* Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
diff --git a/gcc/genautomata.c b/gcc/genautomata.c
index 9fd1e83..aaf6203 100644
--- a/gcc/genautomata.c
+++ b/gcc/genautomata.c
@@ -7278,7 +7278,7 @@ output_translate_vect (automaton)
output_range_type (output_file, 0, automaton->insn_equiv_classes_num);
fprintf (output_file, " ");
output_translate_vect_name (output_file, automaton);
- fprintf (output_file, "[] = {\n");
+ fprintf (output_file, "[] ATTRIBUTE_UNUSED = {\n");
output_vect (VLA_HWINT_BEGIN (translate_vect),
VLA_HWINT_LENGTH (translate_vect));
fprintf (output_file, "};\n\n");
@@ -7349,7 +7349,7 @@ output_state_ainsn_table (tab, table_name, output_full_vect_name_func,
tab->max_comb_vect_el_value);
fprintf (output_file, " ");
(*output_full_vect_name_func) (output_file, tab->automaton);
- fprintf (output_file, "[] = {\n");
+ fprintf (output_file, "[] ATTRIBUTE_UNUSED = {\n");
output_vect (VLA_HWINT_BEGIN (tab->full_vect),
VLA_HWINT_LENGTH (tab->full_vect));
fprintf (output_file, "};\n\n");
@@ -7362,7 +7362,7 @@ output_state_ainsn_table (tab, table_name, output_full_vect_name_func,
tab->max_comb_vect_el_value);
fprintf (output_file, " ");
(*output_comb_vect_name_func) (output_file, tab->automaton);
- fprintf (output_file, "[] = {\n");
+ fprintf (output_file, "[] ATTRIBUTE_UNUSED = {\n");
output_vect (VLA_HWINT_BEGIN (tab->comb_vect),
VLA_HWINT_LENGTH (tab->comb_vect));
fprintf (output_file, "};\n\n");
@@ -7779,7 +7779,7 @@ output_min_issue_delay_table (automaton)
output_range_type (output_file, 0, automaton->max_min_delay);
fprintf (output_file, " ");
output_min_issue_delay_vect_name (output_file, automaton);
- fprintf (output_file, "[] = {\n");
+ fprintf (output_file, "[] ATTRIBUTE_UNUSED = {\n");
/* Compress the vector */
if (automaton->max_min_delay < 2)
automaton->min_issue_delay_table_compression_factor = 8;
@@ -8091,7 +8091,7 @@ output_internal_min_issue_delay_func ()
INTERNAL_MIN_ISSUE_DELAY_FUNC_NAME, INTERNAL_INSN_CODE_NAME,
CHIP_PARAMETER_NAME, INTERNAL_INSN_CODE_NAME, CHIP_NAME,
CHIP_PARAMETER_NAME);
- fprintf (output_file, "{\n int %s ATTRIBUTE_UNUSED;\n int %s;\n",
+ fprintf (output_file, "{\n int %s ATTRIBUTE_UNUSED;\n int %s = -1;\n",
TEMPORARY_VARIABLE_NAME, RESULT_VARIABLE_NAME);
fprintf (output_file, "\n switch (%s)\n {\n", INTERNAL_INSN_CODE_NAME);
output_insn_code_cases (output_automata_list_min_issue_delay_code);