ringtest: use link-time optimization
authorPaolo Bonzini <[email protected]>
Thu, 6 Oct 2016 09:39:10 +0000 (11:39 +0200)
committerMichael S. Tsirkin <[email protected]>
Sun, 30 Oct 2016 22:21:42 +0000 (00:21 +0200)
commit44d65ea1615099ae252407f2554338d450cfdb1c
tree122999495aa15ccb3944bf064a0af76470c9e590
parent8424af5336b34043a705d66bdf2c1428048ef085
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 <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
tools/virtio/ringtest/Makefile
tools/virtio/ringtest/main.c