PATCH: Very interesting IA64 gas bug
H. J. Lu
hjl@lucon.org
Fri Jun 6 20:06:00 GMT 2003
On Thu, Jun 05, 2003 at 05:39:44PM -0700, H. J. Lu wrote:
> On Thu, Jun 05, 2003 at 04:56:27PM -0700, H. J. Lu wrote:
> > # gunzip hint.s.gz
> > # gcc -c hint.s
> > hint.s: Assembler messages:
> > hint.s:32766: Error: Unknown opcode `hint@pause'
> >
> > It seems that gas uses a buffer of size 0x8000. Things will go wrong
> > when the input is bigger than 0x8000. I am working on it.
> >
>
> This patch seems to cure the testcase. But I don't know if it is the
> right fix nor it covers all cases where the end of the input buffer
> is reached. The current code looks fragile to me.
>
My patch is wrong. There are 2 problems. When the input buffer is full,
we fumble. When the output buffer is full, we fumble too. I guess it
is just a matter of luck that we never had any problems before.
I am enclosing a testcase for the condition where the output buffer
is full:
# as output.s
output.s: Assembler messages:
output.s:32767: Error: Unknown opcode `hint@pause'
H.J.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: output.s.gz
Type: application/x-gzip
Size: 100 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030606/18d670fd/attachment.bin>
More information about the Binutils
mailing list