diff mbox

gcc: xtensa: fix unused parameter warning

Message ID 1496056317-9956-1-git-send-email-jcmvbkbc@gmail.com
State New
Headers show

Commit Message

Max Filippov May 29, 2017, 11:11 a.m. UTC
2017-05-28  Max Filippov  <jcmvbkbc@gmail.com>
gcc/
	* config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
	Mark 'to' argument with ATTRIBUTE_UNUSED.
---
 gcc/config/xtensa/xtensa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

augustine.sterling@gmail.com May 29, 2017, 4:08 p.m. UTC | #1
On Mon, May 29, 2017 at 4:11 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
> 2017-05-28  Max Filippov  <jcmvbkbc@gmail.com>
> gcc/
>         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
>         Mark 'to' argument with ATTRIBUTE_UNUSED.

This is ok.
Max Filippov May 29, 2017, 11:05 p.m. UTC | #2
On Mon, May 29, 2017 at 9:08 AM, augustine.sterling@gmail.com
<augustine.sterling@gmail.com> wrote:
> On Mon, May 29, 2017 at 4:11 AM, Max Filippov <jcmvbkbc@gmail.com> wrote:
>> 2017-05-28  Max Filippov  <jcmvbkbc@gmail.com>
>> gcc/
>>         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
>>         Mark 'to' argument with ATTRIBUTE_UNUSED.
>
> This is ok.

Applied to trunk. Thank you!

-- Max
diff mbox

Patch

diff --git a/gcc/config/xtensa/xtensa.c b/gcc/config/xtensa/xtensa.c
index df80ad9..16f8311 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;