workaround for "error: more than 30 operands in 'asm'"?

Ian Lance Taylor iant@google.com
Fri Mar 14 14:10:00 GMT 2008


Andrew Haley <aph@redhat.com> writes:

> I wonder if we could do something more sensible than simply using the
> constant 30.  Perhaps some function of FIRST_PSEUDO_REGISTER, like
> FIRST_PSEUDO_REGISTER+20, or FIRST_PSEUDO_REGISTER*2 or even
> MAX (FIRST_PSEUDO_REGISTER, 29).  This would at least solve the problem
> here.

That should work.  Making MAX_RECOG_OPERANDS a variable would have
some effect on compile time, but simply making it a larger constant
shouldn't have any significant effect.

Ian



More information about the Gcc-help mailing list