On 24/09/18 15:16, Jan Beulich wrote: >>>> On 24.09.18 at 15:00, <andrew.coop...@citrix.com> wrote: >> For at least "gcc (Ubuntu 5.4.0-6ubuntu1~16.04.10) 5.4.0 20160609", the >> typecast of buf triggers a Variable Length Array warning. >> >> Alter the asm expression to avoid the typecast, which necessitates the >> introduction of a memory clobber as the compiler can no longer identify >> the total quantity of written memory. > I dislike this, but what do you do. Would be quite helpful though to > have a comment there, or else I might be tempted to undo the > memory clobber in a couple of months/years time.
On further investigation, its all versions of GCC and Clang when using -Wvla. I'll tweak the commit message so it doesn't read as if it might be a quirk in that specific compiler. ~Andrew _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel