summaryrefslogtreecommitdiff
path: root/gcc/target.h
diff options
context:
space:
mode:
authorfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-04 01:49:15 +0000
committerfroydnj <froydnj@138bc75d-0d04-0410-961f-82ee72b054a4>2010-06-04 01:49:15 +0000
commit182e98f439ae61096f85ca28e7ef20359742f8c4 (patch)
tree4ce976911991a5a234374dfb54ae57d02930e38c /gcc/target.h
parent4ecd60be8188009b21217667e4c336e24f3d34cc (diff)
downloadgcc-182e98f439ae61096f85ca28e7ef20359742f8c4.tar.gz
* final.c (output_asm_insn): Call
targetm.asm_out.print_operand_punct_valid_p. Update comments. (output_operand): Call targetm.asm_out.print_operand. Update comments. (output_address): Call targetm.asm_out.print_operand_address. Update comments. * target.h (struct gcc_target): Add print_operand, print_operand_address, and print_operand_punct_valid_p fields. * targhooks.h (default_print_operand): Declare. (default_print_operand_address): Declare. (default_print_operand_punct_valid_p): Declare. * targhooks.c (default_print_operand): Define. (default_print_operand_address): Define. (default_print_operand_punct_valid_p): Define. * target-def.h (TARGET_PRINT_OPERAND): Define if not defined. (TARGET_PRINT_OPERAND_ADDRESS): Likewise. (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise. (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P. * vmsdbgout.c (addr_const_to_string): Update comment. * config/i386/i386.c (print_operand): Rename to... (ix86_print_operand): ...this. Make static. (print_operand_address): Rename to... (ix86_print_operand_address): ...this. Make static. Call ix86_print_operand instead of PRINT_OPERAND. (ix86_print_operand_punct_valid_p): New function. (TARGET_PRINT_OPERAND): Define. (TARGET_PRINT_OPERAND_ADDRESS): Define. (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define. * config/i386/i386.h (HI_REGISTER_NAMES): Update comment. (PRINT_OPERAND_PUNCT_VALID_P): Delete. (PRINT_OPERAND): Delete. (PRINT_OPERAND_ADDRESS): Delete. * config/i386/i386-protos.h (print_operand): Delete prototype. (print_operand_address): Delete prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160245 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/target.h')
-rw-r--r--gcc/target.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gcc/target.h b/gcc/target.h
index e17cc21f9fc..c8be2b5a46c 100644
--- a/gcc/target.h
+++ b/gcc/target.h
@@ -277,6 +277,16 @@ struct gcc_target
/* Emit the trampoline template. This hook may be NULL. */
void (*trampoline_template) (FILE *);
+
+ /* Emit a machine-specific insn operand. */
+ void (*print_operand) (FILE *, rtx, int);
+
+ /* Emit a machine-specific memory address. */
+ void (*print_operand_address) (FILE *, rtx);
+
+ /* Determine whether CODE is a valid punctuation character for the
+ `print_operand' hook. */
+ bool (*print_operand_punct_valid_p)(unsigned char code);
} asm_out;
/* Functions relating to instruction scheduling. */