From 7abdac8e131cfc827497c5b57e60c2597986a583 Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Sat, 19 Oct 2013 23:56:59 +0200 Subject: [PATCH] * conf/Makefile.common: Use -freg-struct-return on i386. This decreases code size and improves performance. --- ChangeLog | 5 +++++ conf/Makefile.common | 8 ++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 543a30697..3ba286a4a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-10-19 Vladimir Serbinenko + + * conf/Makefile.common: Use -freg-struct-return on i386. This + decreases code size and improves performance. + 2013-10-19 Vladimir Serbinenko * grub-core/osdep/unix/exec.c: Fix compilation error on emu. diff --git a/conf/Makefile.common b/conf/Makefile.common index 727e0645d..91e313dc9 100644 --- a/conf/Makefile.common +++ b/conf/Makefile.common @@ -7,16 +7,16 @@ unexport LC_ALL # Platform specific options if COND_i386_pc - CFLAGS_PLATFORM += -mrtd -mregparm=3 + CFLAGS_PLATFORM += -mrtd -mregparm=3 -freg-struct-return endif if COND_i386_qemu - CFLAGS_PLATFORM += -mrtd -mregparm=3 + CFLAGS_PLATFORM += -mrtd -mregparm=3 -freg-struct-return endif if COND_i386_coreboot - CFLAGS_PLATFORM += -mrtd -mregparm=3 + CFLAGS_PLATFORM += -mrtd -mregparm=3 -freg-struct-return endif if COND_i386_ieee1275 - CFLAGS_PLATFORM += -mrtd -mregparm=3 + CFLAGS_PLATFORM += -mrtd -mregparm=3 -freg-struct-return endif if COND_mips_loongson CFLAGS_PLATFORM += -mexplicit-relocs