bug-binutils
[Top][All Lists]
Advanced

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

Re: infinate loop in as with .org pseudo


From: Dan Gohman
Subject: Re: infinate loop in as with .org pseudo
Date: Wed, 17 Aug 2005 15:06:04 -0500
User-agent: Mutt/1.5.8i

On Wed, Aug 17, 2005 at 06:59:14PM +0100, Nick Clifton wrote:
> Hi Dan,
> 
> >Given this as input (three lines):
> >
> > foo = .
> > .org foo+16
> > foo = .
> >
> >GNU as (with no special command-line options) apparently goes into an
> >infinate loop.
> 
> Not surprising really since that is a pathological piece of code.  Still 
> infinite loops are bad things, so please could you try out the attached 
> patch and let me know if it works for you.

Perhaps, but I found it in some code that I'm porting to GAS from
a different assembler. It looks like I can get the desired effect
in GAS with .align pseudos, something like this:

  .balign 16
  foo=.
  # stuff deleted from reduced test case, less than 16 bytes
  .balign 16
  foo=.
  # more stuff

I added a declaration for frag_count to your patch and it successfully
issues an error on this code (and also on the original source from which
this code was simplified).

Thanks,

Dan




reply via email to

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