aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/m32c/m32c.c
diff options
context:
space:
mode:
authorAnatoly Sokolov <aesok@post.ru>2011-07-25 21:46:07 +0400
committerAnatoly Sokolov <aesok@gcc.gnu.org>2011-07-25 21:46:07 +0400
commit4645179ecbbb77cff99c473e8f679f8cba8efdb6 (patch)
tree6a95ca68a98cb1f41fcd6a88f9df2c18f91097a2 /gcc/config/m32c/m32c.c
parent770e5a2e61eb72359bb53f456fdfe46bd5587095 (diff)
downloadgcc-4645179ecbbb77cff99c473e8f679f8cba8efdb6.zip
gcc-4645179ecbbb77cff99c473e8f679f8cba8efdb6.tar.gz
gcc-4645179ecbbb77cff99c473e8f679f8cba8efdb6.tar.bz2
m32c.h (PRINT_OPERAND, [...]): Remove macro.
* config/m32c/m32c.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS, PRINT_OPERAND_PUNCT_VALID_P): Remove macro. * config/m32c/m32c-protos.h (m32c_print_operand_punct_valid_p, m32c_print_operand, m32c_print_operand_address): Remove. * config/m32c/m32c.c (m32c_print_operand_punct_valid_p): Make static. Change return type to bool. Change argument type to bool. (m32c_print_operand, m32c_print_operand_address): Make static. (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS, TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define. From-SVN: r176763
Diffstat (limited to 'gcc/config/m32c/m32c.c')
-rw-r--r--gcc/config/m32c/m32c.c34
1 files changed, 24 insertions, 10 deletions
diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c
index 0336d0e..7c359c9 100644
--- a/gcc/config/m32c/m32c.c
+++ b/gcc/config/m32c/m32c.c
@@ -2644,8 +2644,12 @@ static char const *pushm_regs[] = {
"fb", "sb", "a1", "a0", "r3", "r2", "r1", "r0"
};
-/* Implements PRINT_OPERAND. */
-void
+/* Implements TARGET_PRINT_OPERAND. */
+
+#undef TARGET_PRINT_OPERAND
+#define TARGET_PRINT_OPERAND m32c_print_operand
+
+static void
m32c_print_operand (FILE * file, rtx x, int code)
{
int i, j, b;
@@ -2998,18 +3002,28 @@ m32c_print_operand (FILE * file, rtx x, int code)
return;
}
-/* Implements PRINT_OPERAND_PUNCT_VALID_P. See m32c_print_operand
- above for descriptions of what these do. */
-int
-m32c_print_operand_punct_valid_p (int c)
+/* Implements TARGET_PRINT_OPERAND_PUNCT_VALID_P.
+
+ See m32c_print_operand above for descriptions of what these do. */
+
+#undef TARGET_PRINT_OPERAND_PUNCT_VALID_P
+#define TARGET_PRINT_OPERAND_PUNCT_VALID_P m32c_print_operand_punct_valid_p
+
+static bool
+m32c_print_operand_punct_valid_p (unsigned char c)
{
if (c == '&' || c == '!')
- return 1;
- return 0;
+ return true;
+
+ return false;
}
-/* Implements PRINT_OPERAND_ADDRESS. Nothing unusual here. */
-void
+/* Implements TARGET_PRINT_OPERAND_ADDRESS. Nothing unusual here. */
+
+#undef TARGET_PRINT_OPERAND_ADDRESS
+#define TARGET_PRINT_OPERAND_ADDRESS m32c_print_operand_address
+
+static void
m32c_print_operand_address (FILE * stream, rtx address)
{
if (GET_CODE (address) == MEM)