diff options
Diffstat (limited to 'gcc/config/m32c')
-rw-r--r-- | gcc/config/m32c/blkmov.md | 2 | ||||
-rw-r--r-- | gcc/config/m32c/m32c-protos.h | 4 | ||||
-rw-r--r-- | gcc/config/m32c/m32c.c | 20 | ||||
-rw-r--r-- | gcc/config/m32c/m32c.md | 14 |
4 files changed, 20 insertions, 20 deletions
diff --git a/gcc/config/m32c/blkmov.md b/gcc/config/m32c/blkmov.md index 17076b2e8d5..a734f71789b 100644 --- a/gcc/config/m32c/blkmov.md +++ b/gcc/config/m32c/blkmov.md @@ -51,7 +51,7 @@ "if (m32c_expand_movmemhi(operands)) DONE; FAIL;" ) -;; We can't use mode macros for these because M16C uses r1h to extend +;; We can't use mode iterators for these because M16C uses r1h to extend ;; the source address, for copying data from ROM to RAM. We don't yet ;; support that, but we need to zero our r1h, so the patterns differ. diff --git a/gcc/config/m32c/m32c-protos.h b/gcc/config/m32c/m32c-protos.h index ecc77b443d9..a63191c21ab 100644 --- a/gcc/config/m32c/m32c-protos.h +++ b/gcc/config/m32c/m32c-protos.h @@ -50,7 +50,7 @@ void m32c_unpend_compare (void); #if defined(RTX_CODE) && defined(TREE_CODE) rtx m32c_function_arg (CUMULATIVE_ARGS *, MM, tree, int); -rtx m32c_function_value (tree, tree); +rtx m32c_function_value (const_tree, const_tree); #endif @@ -110,7 +110,7 @@ int m32c_split_psi_p (rtx *); void m32c_function_arg_advance (CUMULATIVE_ARGS *, MM, tree, int); tree m32c_gimplify_va_arg_expr (tree, tree, tree *, tree *); void m32c_init_cumulative_args (CUMULATIVE_ARGS *, tree, rtx, tree, int); -bool m32c_promote_function_return (tree); +bool m32c_promote_function_return (const_tree); int m32c_special_page_vector_p (tree); #endif diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index b2885b4db00..de983110272 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -64,13 +64,13 @@ static tree interrupt_handler (tree *, tree, tree, int, bool *); static tree function_vector_handler (tree *, tree, tree, int, bool *); static int interrupt_p (tree node); static bool m32c_asm_integer (rtx, unsigned int, int); -static int m32c_comp_type_attributes (tree, tree); +static int m32c_comp_type_attributes (const_tree, const_tree); static bool m32c_fixed_condition_code_regs (unsigned int *, unsigned int *); static struct machine_function *m32c_init_machine_status (void); static void m32c_insert_attributes (tree, tree *); static bool m32c_pass_by_reference (CUMULATIVE_ARGS *, enum machine_mode, - tree, bool); -static bool m32c_promote_prototypes (tree); + const_tree, bool); +static bool m32c_promote_prototypes (const_tree); static int m32c_pushm_popm (Push_Pop_Type); static bool m32c_strict_argument_naming (CUMULATIVE_ARGS *); static rtx m32c_struct_value_rtx (tree, int); @@ -445,7 +445,7 @@ m32c_init_expanders (void) #undef TARGET_PROMOTE_FUNCTION_RETURN #define TARGET_PROMOTE_FUNCTION_RETURN m32c_promote_function_return bool -m32c_promote_function_return (tree fntype ATTRIBUTE_UNUSED) +m32c_promote_function_return (const_tree fntype ATTRIBUTE_UNUSED) { return false; } @@ -1427,7 +1427,7 @@ m32c_initial_elimination_offset (int from, int to) #undef TARGET_PROMOTE_PROTOTYPES #define TARGET_PROMOTE_PROTOTYPES m32c_promote_prototypes static bool -m32c_promote_prototypes (tree fntype ATTRIBUTE_UNUSED) +m32c_promote_prototypes (const_tree fntype ATTRIBUTE_UNUSED) { return 0; } @@ -1514,7 +1514,7 @@ m32c_function_arg (CUMULATIVE_ARGS * ca, static bool m32c_pass_by_reference (CUMULATIVE_ARGS * ca ATTRIBUTE_UNUSED, enum machine_mode mode ATTRIBUTE_UNUSED, - tree type ATTRIBUTE_UNUSED, + const_tree type ATTRIBUTE_UNUSED, bool named ATTRIBUTE_UNUSED) { return 0; @@ -1639,10 +1639,10 @@ m32c_libcall_value (enum machine_mode mode) /* Implements FUNCTION_VALUE. Functions and libcalls have the same conventions. */ rtx -m32c_function_value (tree valtype, tree func ATTRIBUTE_UNUSED) +m32c_function_value (const_tree valtype, const_tree func ATTRIBUTE_UNUSED) { /* return reg or parallel */ - enum machine_mode mode = TYPE_MODE (valtype); + const enum machine_mode mode = TYPE_MODE (valtype); return m32c_libcall_value (mode); } @@ -2829,8 +2829,8 @@ static const struct attribute_spec m32c_attribute_table[] = { #undef TARGET_COMP_TYPE_ATTRIBUTES #define TARGET_COMP_TYPE_ATTRIBUTES m32c_comp_type_attributes static int -m32c_comp_type_attributes (tree type1 ATTRIBUTE_UNUSED, - tree type2 ATTRIBUTE_UNUSED) +m32c_comp_type_attributes (const_tree type1 ATTRIBUTE_UNUSED, + const_tree type2 ATTRIBUTE_UNUSED) { /* 0=incompatible 1=compatible 2=warning */ return 1; diff --git a/gcc/config/m32c/m32c.md b/gcc/config/m32c/m32c.md index 8110c0a7247..4bc4d05fbf1 100644 --- a/gcc/config/m32c/m32c.md +++ b/gcc/config/m32c/m32c.md @@ -54,15 +54,15 @@ (define_attr "flags" "x,c,z,zc,s,sc,sz,szc,o,oc,oz,ozc,os,osc,osz,oszc,n" (const_string "n")) (define_asm_attributes [(set_attr "flags" "x")]) -(define_mode_macro QHI [QI HI]) -(define_mode_macro HPSI [(HI "TARGET_A16") (PSI "TARGET_A24")]) -(define_mode_macro QHPSI [QI HI (PSI "TARGET_A24")]) -(define_mode_macro QHSI [QI HI (SI "TARGET_A24")]) +(define_mode_iterator QHI [QI HI]) +(define_mode_iterator HPSI [(HI "TARGET_A16") (PSI "TARGET_A24")]) +(define_mode_iterator QHPSI [QI HI (PSI "TARGET_A24")]) +(define_mode_iterator QHSI [QI HI (SI "TARGET_A24")]) (define_mode_attr bwl [(QI "b") (HI "w") (PSI "l") (SI "l")]) -(define_code_macro any_cond [eq ne gt ge lt le gtu geu ltu leu]) -(define_code_macro eqne_cond [eq ne]) -(define_code_macro gl_cond [gt ge lt le gtu geu ltu leu]) +(define_code_iterator any_cond [eq ne gt ge lt le gtu geu ltu leu]) +(define_code_iterator eqne_cond [eq ne]) +(define_code_iterator gl_cond [gt ge lt le gtu geu ltu leu]) |