This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Very interesting IA64 gas bug


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.

Attachment: output.s.gz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]