From eced9b483e9496b14fb42190aa86ac6b26496a19 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Mon, 29 May 2017 23:03:52 +0000 Subject: [PATCH] gcc: xtensa: fix unused parameter warning 2017-05-28 Max Filippov gcc/ * config/xtensa/xtensa.c (xtensa_initial_elimination_offset): Mark 'to' argument with ATTRIBUTE_UNUSED. From-SVN: r248587 --- gcc/ChangeLog | 5 +++++ gcc/config/xtensa/xtensa.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1642d23c32c..7e0349b9dd1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-29 Max Filippov + + * config/xtensa/xtensa.c (xtensa_initial_elimination_offset): + Mark 'to' argument with ATTRIBUTE_UNUSED. + 2017-05-29 Max Filippov * config/xtensa/xtensa.c (xtensa_emit_call): Use diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c index df80ad9117e..16f83119d52 100644 --- a/gcc/config/xtensa/xtensa.c +++ b/gcc/config/xtensa/xtensa.c @@ -2678,7 +2678,7 @@ xtensa_frame_pointer_required (void) } HOST_WIDE_INT -xtensa_initial_elimination_offset (int from, int to) +xtensa_initial_elimination_offset (int from, int to ATTRIBUTE_UNUSED) { long frame_size = compute_frame_size (get_frame_size ()); HOST_WIDE_INT offset; -- 2.30.2