[Bug c/20328] assembly constraints fail unless optimizing code

mrd at alkemio dot org gcc-bugzilla@gcc.gnu.org
Sat Mar 5 06:52:00 GMT 2005


------- Additional Comments From mrd at alkemio dot org  2005-03-05 06:52 -------
Subject: Re:  assembly constraints fail unless optimizing code

On Sat, 2005-03-05 at 01:31 +0000, pinskia at gcc dot gnu dot org wrote:
> You don't want the "al" contstraint at all.
> 
> Read the docs to figure out which constaint you really want.  the constraint "al" means pick either the 
> "a" constraint or the "l" constraint

The original code's not mine at all, so I don't know what constraint is
actually wanted.  However, after looking through section 5.36 of the gcc
3.4.3 manual, I can't figure out what the "l" constraint means for the
i386 architecture anyways.

So maybe the original code *shouldn't* be using the "=al" constraint,
but either the manual's missing a description of the "l" constraint for
i386 so I can't decide whether it's correct or not, or gcc's not
complaining about an illegal constraint when optimizations are enabled
(or maybe that's an optimization feature?).



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20328



More information about the Gcc-bugs mailing list