ARM bootstrap failure (Re: [Ping] [patch 0/3] New macro PREFERRED_RENAME_CLASS)
Ulrich Weigand
uweigand@de.ibm.com
Mon Dec 13 19:43:00 GMT 2010
Yao Qi wrote:
> +static bool
> +check_new_reg_p (int reg, int new_reg, struct du_head *this_head,
> + HARD_REG_SET this_unavailable)
This function causes a native bootstrap failure on ARM in stage 2:
../../gcc-head/gcc/regrename.c: In function "check_new_reg_p":
../../gcc-head/gcc/regrename.c:312:22: error: unused parameter "reg" [-Werror=unused-parameter]
cc1: all warnings being treated as errors
This is because "reg" is only used as input to target macros
(HARD_REGNO_RENAME_OK, HARD_REGNO_CALL_PART_CLOBBERED), and
the ARM versions of those don't actually use that argument.
I guess this needs an ATTRIBUTE_UNUSED ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com
More information about the Gcc-patches
mailing list