bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug gas/21934] gas build fails when using gcc 7


From: Nick Clifton
Subject: Re: [Bug gas/21934] gas build fails when using gcc 7
Date: Wed, 9 Aug 2017 17:46:33 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1

Hi H.J.

> Why don't I see on i386 cross to x86_64?  We have
No idea.  I was wondering that too.

> static char output_invalid_buf[sizeof (unsigned char) * 2 + 6];
> 
> It has 8 bytes, not 5.

But the printing of the value starts three bytes into the buffer
which is why gcc says that there are only 5 bytes left.

The warning looks wrong to me though, since the value has been
cast to an unsigned char, so no sign extension should be happening.
I was debating as to whether this was worth pursuing or whether
it would be simpler to just accept the patch and be done with it.

Cheers
  Nick





reply via email to

[Prev in Thread] Current Thread [Next in Thread]