Re: [PATCH 3/3] build: avoid frame size error when building without -O2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03/26/2012 12:53 PM, Laine Stump wrote:
> libvirt always adds -Werror-frame-larger-than=4096 to the flags when
> it builds. When building on Fedora 17, two functions with multiple
> 1024 buffers declared inside if {} blocks would generate frame size
> errors; apparently the version of gcc on Fedora 16 will merge these
> multiple buffers into a single buffer even when optimization is off,
> but Fedora 17 won't.
> 
> The fix is to declare a single 1024 buffer at the top of the two
> offending functions, and reuse the single buffer throughout the
> functions.
> ---
>  src/libxl/libxl_driver.c |    5 +----
>  src/qemu/qemu_driver.c   |   10 ++--------
>  2 files changed, 3 insertions(+), 12 deletions(-)

ACK.

-- 
Eric Blake   eblake@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]