asm constraint rule change
Jeffrey A Law
Sat Oct 17 00:38:00 GMT 1998
In message < 19981016193609.A4141@dot.cygnus.com >you write:
> The recent asm checking patches have tightened the rules such that output
> constraints like "r=" are no longer valid. The problem is that there is
> a largish body of code that writes things that way. More to the point,
> despite all the examples running about the documentation, it does not ever
> come out and specify this as a rule. It merely says
> ... all output operands' constraints must use `='.
> So this change is gonna piss some folks off, and with reason.
> I suggest we adopt the following patch to loosen this rule again.
> * stmt.c (expand_asm_operands): Accept `=' or `+' at any position.
How about let's make it a warning instead of a hard error.
I wouldn't be suprised if some code handles them wrong if the '=' or '+' are
not first. We need to get folks to fix their code.
More information about the Gcc-patches