]> git.proxmox.com Git - mirror_edk2.git/commit
BaseTools/tools_def: enable Os optimization for GCC X64 builds
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Fri, 15 Jul 2016 22:16:09 +0000 (00:16 +0200)
committerArd Biesheuvel <ard.biesheuvel@linaro.org>
Thu, 21 Jul 2016 11:32:09 +0000 (13:32 +0200)
commit247093f45d94a3956cdd15c357fe7d6dca878df9
treec75471909fa108feed8a18dafeb545a696b2d114
parent0676c285ba518ae81ca7f06278d4cc4958660864
BaseTools/tools_def: enable Os optimization for GCC X64 builds

Now that we switched to the __builtin_ms_va_list VA_LIST type for
GCC/X64, we can trust the compiler to do the right thing even under
optimization, and so we can enable -Os optimization all the way back
to GCC44, and drop the -D define that prevents the use of the __builtin
VA_LIST types. Note that this requires the -maccumulate-outgoing-args
switch as well.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Tested-by: Laszlo Ersek <lersek@redhat.com>
Tested-By: Liming Gao <liming.gao@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
BaseTools/Conf/tools_def.template