aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mmix
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2010-08-01 12:29:20 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2010-08-01 12:29:20 +0400
commit501d087d62c9d44a9cef91f7c110c0dc2b5cb9a3 (patch)
tree9a9db280188573707834e4d01bd32b78e9b51870 /gcc/config/mmix
parent140c268460b2f4658f056719251417ecda330521 (diff)
downloadgcc-501d087d62c9d44a9cef91f7c110c0dc2b5cb9a3.zip
gcc-501d087d62c9d44a9cef91f7c110c0dc2b5cb9a3.tar.gz
gcc-501d087d62c9d44a9cef91f7c110c0dc2b5cb9a3.tar.bz2
mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
* config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro. * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove. * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static. (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define. From-SVN: r162793
Diffstat (limited to 'gcc/config/mmix')
-rw-r--r--gcc/config/mmix/mmix-protos.h1
-rw-r--r--gcc/config/mmix/mmix.c7
-rw-r--r--gcc/config/mmix/mmix.h3
3 files changed, 5 insertions, 6 deletions
diff --git a/gcc/config/mmix/mmix-protos.h b/gcc/config/mmix/mmix-protos.h
index 18d21f1..9918fa8 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 24fa24d..8ed8b17 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 4855102..2644735 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))