Re: erroneous "non-constant expression" error

2005-06-26 Thread Zefram
Alan Modra wrote: >Incidentally, I don't see how the code you posted could >cause this to happen since the .p2align ought to cause a new frag to be >started, but I do know that this sort of problem can happen. A >workaround is to align at the start of your macro. Aligning at the start of the macr

Re: erroneous "non-constant expression" error

2005-06-25 Thread Alan Modra
On Thu, Jun 23, 2005 at 09:37:00PM +0100, Zefram wrote: > t.s: Assembler messages: > t.s:55: Error: non-constant expression in ".if" statement > $ > > The expression in the .if is most definitely constant Agreed. However, gas can't immediately evaluate it because of the way gas frags work. The