https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100921
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
__asm__ __volatile__("call consumer" : : "D"(&v));
You are just passing the address of the variable. You either need "m"(v)
there, a simple "memory" might work too.
See PR 36639, and PR 93952. There are others.