diff options
Diffstat (limited to 'gcc/config/mmix')
-rw-r--r-- | gcc/config/mmix/mmix-protos.h | 1 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.c | 7 | ||||
-rw-r--r-- | gcc/config/mmix/mmix.h | 3 |
3 files changed, 5 insertions, 6 deletions
diff --git a/gcc/config/mmix/mmix-protos.h b/gcc/config/mmix/mmix-protos.h index 18d21f1650e..9918fa8094d 100644 --- a/gcc/config/mmix/mmix-protos.h +++ b/gcc/config/mmix/mmix-protos.h @@ -31,7 +31,6 @@ extern int mmix_register_move_cost (enum machine_mode, enum reg_class, enum reg_class); extern const char *mmix_text_section_asm_op (void); extern const char *mmix_data_section_asm_op (void); -extern void mmix_asm_output_source_filename (FILE *, const char *); extern void mmix_output_quoted_string (FILE *, const char *, int); extern void mmix_asm_output_source_line (FILE *, int); extern void mmix_asm_output_ascii (FILE *, const char *, int); diff --git a/gcc/config/mmix/mmix.c b/gcc/config/mmix/mmix.c index 24fa24d9d03..8ed8b177fcb 100644 --- a/gcc/config/mmix/mmix.c +++ b/gcc/config/mmix/mmix.c @@ -113,6 +113,7 @@ rtx mmix_compare_op1; /* Intermediate for insn output. */ static int mmix_output_destination_register; +static void mmix_asm_output_source_filename (FILE *, const char *); static void mmix_output_shiftvalue_op_from_str (FILE *, const char *, HOST_WIDEST_INT); static void mmix_output_shifted_value (FILE *, HOST_WIDEST_INT); @@ -189,6 +190,8 @@ static void mmix_trampoline_init (rtx, tree, rtx); #define TARGET_ASM_FILE_START_FILE_DIRECTIVE true #undef TARGET_ASM_FILE_END #define TARGET_ASM_FILE_END mmix_file_end +#undef TARGET_ASM_OUTPUT_SOURCE_FILENAME +#define TARGET_ASM_OUTPUT_SOURCE_FILENAME mmix_asm_output_source_filename #undef TARGET_RTX_COSTS #define TARGET_RTX_COSTS mmix_rtx_costs @@ -1245,9 +1248,9 @@ mmix_file_end (void) switch_to_section (data_section); } -/* ASM_OUTPUT_SOURCE_FILENAME. */ +/* TARGET_ASM_OUTPUT_SOURCE_FILENAME. */ -void +static void mmix_asm_output_source_filename (FILE *stream, const char *name) { fprintf (stream, "# 1 "); diff --git a/gcc/config/mmix/mmix.h b/gcc/config/mmix/mmix.h index 48551028d5b..26447357e47 100644 --- a/gcc/config/mmix/mmix.h +++ b/gcc/config/mmix/mmix.h @@ -726,9 +726,6 @@ typedef struct { int regs; int lib; } CUMULATIVE_ARGS; #define ASM_APP_ON "%APP\n" #define ASM_APP_OFF "%NO_APP\n" -#define ASM_OUTPUT_SOURCE_FILENAME(STREAM, NAME) \ - mmix_asm_output_source_filename (STREAM, NAME) - #define OUTPUT_QUOTED_STRING(STREAM, STRING) \ mmix_output_quoted_string (STREAM, STRING, strlen (STRING)) |