summaryrefslogtreecommitdiff
path: root/gcc/config/moxie
diff options
context:
space:
mode:
authoraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-04 19:51:28 +0000
committeraesok <aesok@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-04 19:51:28 +0000
commitd352eaa0fc8f1331a81cc39dec1f6408d23286bd (patch)
tree49adb7821ef99b5e734401211da6af7dea387019 /gcc/config/moxie
parent911ef3b64d403f4e91672e270367bc178c4ee7a9 (diff)
downloadgcc-d352eaa0fc8f1331a81cc39dec1f6408d23286bd.tar.gz
[MOXIE] Hookize PRINT_OPERAND and PRINT_OPERAND_ADDRESS
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226594 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/moxie')
-rw-r--r--gcc/config/moxie/moxie-protos.h2
-rw-r--r--gcc/config/moxie/moxie.c9
-rw-r--r--gcc/config/moxie/moxie.h6
3 files changed, 7 insertions, 10 deletions
diff --git a/gcc/config/moxie/moxie-protos.h b/gcc/config/moxie/moxie-protos.h
index b4c9267f38a..cc452af6810 100644
--- a/gcc/config/moxie/moxie-protos.h
+++ b/gcc/config/moxie/moxie-protos.h
@@ -20,6 +20,4 @@ along with GCC; see the file COPYING3. If not see
extern void moxie_expand_prologue (void);
extern void moxie_expand_epilogue (void);
extern int moxie_initial_elimination_offset (int, int);
-extern void moxie_print_operand (FILE *, rtx, int);
-extern void moxie_print_operand_address (FILE *, rtx);
extern bool moxie_offset_address_p (rtx);
diff --git a/gcc/config/moxie/moxie.c b/gcc/config/moxie/moxie.c
index 97e0093c603..ea36db36291 100644
--- a/gcc/config/moxie/moxie.c
+++ b/gcc/config/moxie/moxie.c
@@ -128,7 +128,7 @@ moxie_operand_lossage (const char *msgid, rtx op)
/* The PRINT_OPERAND_ADDRESS worker. */
-void
+static void
moxie_print_operand_address (FILE *file, rtx x)
{
switch (GET_CODE (x))
@@ -175,7 +175,7 @@ moxie_print_operand_address (FILE *file, rtx x)
/* The PRINT_OPERAND worker. */
-void
+static void
moxie_print_operand (FILE *file, rtx x, int code)
{
rtx operand = x;
@@ -679,6 +679,11 @@ moxie_legitimate_address_p (machine_mode mode ATTRIBUTE_UNUSED,
#undef TARGET_OPTION_OVERRIDE
#define TARGET_OPTION_OVERRIDE moxie_option_override
+#undef TARGET_PRINT_OPERAND
+#define TARGET_PRINT_OPERAND moxie_print_operand
+#undef TARGET_PRINT_OPERAND_ADDRESS
+#define TARGET_PRINT_OPERAND_ADDRESS moxie_print_operand_address
+
struct gcc_target targetm = TARGET_INITIALIZER;
#include "gt-moxie.h"
diff --git a/gcc/config/moxie/moxie.h b/gcc/config/moxie/moxie.h
index d8ab936feac..1dc7a097ac8 100644
--- a/gcc/config/moxie/moxie.h
+++ b/gcc/config/moxie/moxie.h
@@ -212,12 +212,6 @@ enum reg_class
#define ASM_OUTPUT_ALIGN(STREAM,POWER) \
fprintf (STREAM, "\t.p2align\t%d\n", POWER);
-/* A C compound statement to output to stdio stream STREAM the
- assembler syntax for an instruction operand X. */
-#define PRINT_OPERAND(STREAM, X, CODE) moxie_print_operand (STREAM, X, CODE)
-
-#define PRINT_OPERAND_ADDRESS(STREAM ,X) moxie_print_operand_address (STREAM, X)
-
/* Output and Generation of Labels */
#define GLOBAL_ASM_OP "\t.global\t"