From: Michael Meissner Date: Tue, 14 Nov 1995 11:34:01 +0000 (+0000) Subject: make inline model use static when inlining. X-Git-Tag: gdb-4_18~10124 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39c324612d4ab09807b8e4839b26e5ae9f79eede;p=platform%2Fupstream%2Fbinutils.git make inline model use static when inlining. --- diff --git a/sim/ppc/igen.c b/sim/ppc/igen.c index b22159e..af337a3 100644 --- a/sim/ppc/igen.c +++ b/sim/ppc/igen.c @@ -3083,6 +3083,9 @@ gen_model_h(insn_table *table, lf *file) lf_printf(file, "#define STATIC_MODEL\n"); lf_printf(file, "#endif\n"); lf_printf(file, "\n"); + lf_printf(file, "#ifndef EXTERN_MODEL\n"); + lf_printf(file, "#define EXTERN_MODEL extern\n"); + lf_printf(file, "#endif\n"); lf_printf(file, "\n"); if (table->max_func_unit_mask > 0xffff) { @@ -3150,10 +3153,10 @@ gen_model_h(insn_table *table, lf *file) lf_printf(file, "\n"); } - lf_printf(file, "STATIC_MODEL model_enum current_model;\n"); - lf_printf(file, "STATIC_MODEL const char *model_name[ (int)nr_models ];\n"); - lf_printf(file, "STATIC_MODEL const char *const *const model_func_unit_name[ (int)nr_models ];\n"); - lf_printf(file, "STATIC_MODEL const model_time *const model_time_mapping[ (int)nr_models ];\n"); + lf_printf(file, "EXTERN_MODEL model_enum current_model;\n"); + lf_printf(file, "EXTERN_MODEL const char *model_name[ (int)nr_models ];\n"); + lf_printf(file, "EXTERN_MODEL const char *const *const model_func_unit_name[ (int)nr_models ];\n"); + lf_printf(file, "EXTERN_MODEL const model_time *const model_time_mapping[ (int)nr_models ];\n"); lf_printf(file, "\n"); lf_printf(file, "INLINE_MODEL void model_set\n"); lf_printf(file, "(const char *name);\n");