]> git.baikalelectronics.ru Git - kernel.git/commit
ringtest: use link-time optimization
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 6 Oct 2016 09:39:10 +0000 (11:39 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 30 Oct 2016 22:21:42 +0000 (00:21 +0200)
commit57058ae5f954babb7c58e285767eedc2d5ad686a
tree122999495aa15ccb3944bf064a0af76470c9e590
parent82fdda7594124668ef18cc692b18239f7890defd
ringtest: use link-time optimization

By using -flto and -fwhole-program, all functions from the ring implementation
can be treated as static and possibly inlined.  Force this to happen through
the GCC flatten attribute.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tools/virtio/ringtest/Makefile
tools/virtio/ringtest/main.c