diff options
author | Dimitar Dimitrov <dimitar@dinux.eu> | 2024-01-23 22:03:33 +0200 |
---|---|---|
committer | Dimitar Dimitrov <dimitar@dinux.eu> | 2024-05-07 10:17:28 +0300 |
commit | 00090d5ea82f1acad8fd4feead4652a9fc5572f6 (patch) | |
tree | 4b32d3a10539b6caa18b3d2ba1210d96d1debc05 | |
parent | b3bcc3f6a775ec1fee2ebc881e9c8706cf60351e (diff) | |
download | gcc-00090d5ea82f1acad8fd4feead4652a9fc5572f6.zip gcc-00090d5ea82f1acad8fd4feead4652a9fc5572f6.tar.gz gcc-00090d5ea82f1acad8fd4feead4652a9fc5572f6.tar.bz2 |
pru: Drop usage of ATTRIBUTE_UNUSED
Remove usage of ATTRIBUTE_UNUSED. Instead remove the argument's name,
which in C++ means that the argument would not be used.
gcc/ChangeLog:
* config/pru/pru-passes.cc: Drop ATTRIBUTE_UNUSED and remove
argument's name.
* config/pru/pru-pragma.cc (pru_pragma_ctable_entry): Ditto.
* config/pru/pru.cc (pru_function_profiler): Ditto.
(pru_can_eliminate): Ditto.
(pru_rtx_costs): Ditto.
(pru_insert_attributes): Ditto.
(pru_function_value): Ditto.
(pru_libcall_value): Ditto.
(pru_return_in_memory): Ditto.
(pru_builtin_decl): Ditto.
(pru_expand_builtin): Ditto.
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
-rw-r--r-- | gcc/config/pru/pru-passes.cc | 2 | ||||
-rw-r--r-- | gcc/config/pru/pru-pragma.cc | 2 | ||||
-rw-r--r-- | gcc/config/pru/pru.cc | 24 |
3 files changed, 11 insertions, 17 deletions
diff --git a/gcc/config/pru/pru-passes.cc b/gcc/config/pru/pru-passes.cc index fdef068..a76be8f 100644 --- a/gcc/config/pru/pru-passes.cc +++ b/gcc/config/pru/pru-passes.cc @@ -68,7 +68,7 @@ public: /* opt_pass methods: */ virtual unsigned int execute (function *); - virtual bool gate (function *fun ATTRIBUTE_UNUSED) + virtual bool gate (function *) { return pru_current_abi == PRU_ABI_TI; } diff --git a/gcc/config/pru/pru-pragma.cc b/gcc/config/pru/pru-pragma.cc index f948411..73bb4b6 100644 --- a/gcc/config/pru/pru-pragma.cc +++ b/gcc/config/pru/pru-pragma.cc @@ -40,7 +40,7 @@ WARNING: Only immediate constant addresses are currently supported. */ static void -pru_pragma_ctable_entry (cpp_reader * reader ATTRIBUTE_UNUSED) +pru_pragma_ctable_entry (cpp_reader *) { tree ctable_index, base_addr; enum cpp_ttype type; diff --git a/gcc/config/pru/pru.cc b/gcc/config/pru/pru.cc index e5ec398..49d35c6 100644 --- a/gcc/config/pru/pru.cc +++ b/gcc/config/pru/pru.cc @@ -405,7 +405,7 @@ pru_get_return_address (int count) /* Implement FUNCTION_PROFILER macro. */ void -pru_function_profiler (FILE *file, int labelno ATTRIBUTE_UNUSED) +pru_function_profiler (FILE *file, int) { fprintf (file, "\tmov\tr1, ra\n"); fprintf (file, "\tcall\t_mcount\n"); @@ -467,7 +467,7 @@ prologue_saved_reg_p (int regno) /* Implement TARGET_CAN_ELIMINATE. */ static bool -pru_can_eliminate (const int from ATTRIBUTE_UNUSED, const int to) +pru_can_eliminate (const int, const int to) { if (to == STACK_POINTER_REGNUM) return !frame_pointer_needed; @@ -637,9 +637,7 @@ pru_option_override (void) cost has been computed, and false if subexpressions should be scanned. In either case, *TOTAL contains the cost result. */ static bool -pru_rtx_costs (rtx x, machine_mode mode, - int outer_code, int opno ATTRIBUTE_UNUSED, - int *total, bool speed ATTRIBUTE_UNUSED) +pru_rtx_costs (rtx x, machine_mode mode, int outer_code, int, int *total, bool) { const int code = GET_CODE (x); @@ -2174,7 +2172,7 @@ pru_nongeneric_pointer_addrspace (tree typ) during the "mov<mode>" pattern expansion. */ static void -pru_insert_attributes (tree node, tree *attributes ATTRIBUTE_UNUSED) +pru_insert_attributes (tree node, tree *) { /* Validate __regio_symbol variable declarations. */ @@ -2399,15 +2397,14 @@ pru_function_arg_advance (cumulative_args_t cum_v, /* Implement TARGET_FUNCTION_VALUE. */ static rtx -pru_function_value (const_tree ret_type, const_tree fn ATTRIBUTE_UNUSED, - bool outgoing ATTRIBUTE_UNUSED) +pru_function_value (const_tree ret_type, const_tree, bool) { return gen_rtx_REG (TYPE_MODE (ret_type), FIRST_RETVAL_REGNUM); } /* Implement TARGET_LIBCALL_VALUE. */ static rtx -pru_libcall_value (machine_mode mode, const_rtx fun ATTRIBUTE_UNUSED) +pru_libcall_value (machine_mode mode, const_rtx) { return gen_rtx_REG (mode, FIRST_RETVAL_REGNUM); } @@ -2421,7 +2418,7 @@ pru_function_value_regno_p (const unsigned int regno) /* Implement TARGET_RETURN_IN_MEMORY. */ bool -pru_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED) +pru_return_in_memory (const_tree type, const_tree) { bool in_memory = (!pru_arg_in_reg_bysize (int_size_in_bytes (type)) || int_size_in_bytes (type) == -1); @@ -2989,7 +2986,7 @@ pru_init_builtins (void) /* Implement TARGET_BUILTIN_DECL. */ static tree -pru_builtin_decl (unsigned code, bool initialize_p ATTRIBUTE_UNUSED) +pru_builtin_decl (unsigned code, bool) { switch (code) { @@ -3068,10 +3065,7 @@ pru_expand_delay_cycles (rtx arg) IGNORE is nonzero if the value is to be ignored. */ static rtx -pru_expand_builtin (tree exp, rtx target, - rtx subtarget ATTRIBUTE_UNUSED, - machine_mode mode, - int ignore ATTRIBUTE_UNUSED) +pru_expand_builtin (tree exp, rtx target, rtx, machine_mode mode, int) { tree fndecl = TREE_OPERAND (CALL_EXPR_FN (exp), 0); unsigned int fcode = DECL_MD_FUNCTION_CODE (fndecl); |