https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63900
Andrew Haley <aph at redhat dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |aph at redhat dot com
--- Comment #2 from Andrew Haley <aph at redhat dot com> ---
(In reply to Andrew Pinski from comment #1)
> (In reply to David from comment #0)
> > Change MYSIZE to 3 (or 12, 1000, 0xfffffff, etc) we see the value getting
> > read from memory before calling printf, indicating the asm performed a full
> > clobber (affecting buff2) instead of just clobbering buff as was intended.
>
> So that is just an optimization anyways. So closing as invalid.
Why is this invalid? Looks like a missed-optimization to me.