Hi, On Mon, Feb 28, 2005 at 12:24:57AM -0500, D Richard Felker III wrote:
On Mon, Feb 28, 2005 at 04:42:06AM +0100, Michael Niedermayer wrote:
"m" is NOT an output, its an input only constraint, "=m" would be an output, so IMO theres no need for it to be a lvalue
if it where "=m" then your argument is certainly true and it would have to be an lvalue ...
imo it does make sense to require an lvalue. "m" is the inline-asm equivalent of the & (address of) operator in c, and thus it makes sense to require not only an lvalue, but an lvalue for which taking the address makes sense (e.g. not a variable declared as register).
Sorry, but IMHO then printf("hello"); shouldn't be valid either, and instead you would have to do char hello[6]={'h','e','l','l','o',0}; printf(hello); Probably that will be the newest feature in gcc5... Greetings, Reimar Döffinger