diff options
Diffstat (limited to 'gcc/genattr.c')
-rw-r--r-- | gcc/genattr.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/genattr.c b/gcc/genattr.c index cbb1175ceee..be86ca68b14 100644 --- a/gcc/genattr.c +++ b/gcc/genattr.c @@ -145,19 +145,19 @@ write_units (num_units, multiplicity, simultaneity, printf ("#define INSN_SCHEDULING\n\n"); printf ("extern int result_ready_cost PARAMS ((rtx));\n"); printf ("extern int function_units_used PARAMS ((rtx));\n\n"); - printf ("extern struct function_unit_desc\n"); + printf ("extern const struct function_unit_desc\n"); printf ("{\n"); - printf (" const char *name;\n"); - printf (" int bitmask;\n"); - printf (" int multiplicity;\n"); - printf (" int simultaneity;\n"); - printf (" int default_cost;\n"); - printf (" int max_issue_delay;\n"); - printf (" int (*ready_cost_function) PARAMS ((rtx));\n"); - printf (" int (*conflict_cost_function) PARAMS ((rtx, rtx));\n"); - printf (" int max_blockage;\n"); - printf (" unsigned int (*blockage_range_function) PARAMS ((rtx));\n"); - printf (" int (*blockage_function) PARAMS ((rtx, rtx));\n"); + printf (" const char *const name;\n"); + printf (" const int bitmask;\n"); + printf (" const int multiplicity;\n"); + printf (" const int simultaneity;\n"); + printf (" const int default_cost;\n"); + printf (" const int max_issue_delay;\n"); + printf (" int (*const ready_cost_function) PARAMS ((rtx));\n"); + printf (" int (*const conflict_cost_function) PARAMS ((rtx, rtx));\n"); + printf (" const int max_blockage;\n"); + printf (" unsigned int (*const blockage_range_function) PARAMS ((rtx));\n"); + printf (" int (*const blockage_function) PARAMS ((rtx, rtx));\n"); printf ("} function_units[];\n\n"); printf ("#define FUNCTION_UNITS_SIZE %d\n", num_units); printf ("#define MIN_MULTIPLICITY %d\n", multiplicity->min); |