Bruce Cran [mailto:bruce.c...@gmail.com] wrote:
]On Tue, Oct 28, 2014 at 10:59 PM, Scott Duplichan <sc...@notabs.org> wrote: ]> Optimization is not enabled for x64 builds using gcc 4.4-4.9. For IA32 ]> builds, -Os (optimize for small code size) is used. Why is this? Apparently ]> it is because variable argument list handling fails when gcc X64 optimization ]> is enabled. The solution is an improvement to the patch of SVN rev 10440: ]> http://sourceforge.net/p/edk2/mailman/message/25121111/ ] ]Related to gcc flags, should we also enable -ffreestanding by default, ]or at least -fno-builtin? Those flags certainly seem appropriate for UEFI use. In fact, AARCH64, XCLANG, XCODE5 already use -fno-builtin. But the reality is that most of the patches I submit get rejected, even when there is a clear benefit. To even have a chance of getting these options approved, there would have to be some easy to demonstrate benefit. For example, maybe using these options can prevent gcc from replacing copy loops in source code with a call to memcpy. Thanks, Scott ]-- ]Bruce ------------------------------------------------------------------------------ _______________________________________________ edk2-devel mailing list edk2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/edk2-devel