This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: asm constraint rule change
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: asm constraint rule change
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Sat, 17 Oct 1998 01:32:52 -0600
- cc: crux at pool dot informatik dot rwth-aachen dot de, egcs-patches at cygnus dot com
- Reply-To: law at cygnus dot com
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.
>
>
> r~
>
>
> * 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.
jeff