]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* conf/Makefile.common: Use -freg-struct-return on i386. This
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 19 Oct 2013 21:56:59 +0000 (23:56 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Sat, 19 Oct 2013 21:56:59 +0000 (23:56 +0200)
decreases code size and improves performance.

ChangeLog
conf/Makefile.common

index 543a30697cfd5c89a48a81415a64f5079fc2581d..3ba286a4a9ae961d528661450f7d0430594d9800 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * conf/Makefile.common: Use -freg-struct-return on i386. This
+       decreases code size and improves performance.
+
 2013-10-19  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * grub-core/osdep/unix/exec.c: Fix compilation error on emu.
index 727e0645dcf78c27e3886cc6f5deaa20b8f05759..91e313dc91d89bc4dad9682257f90e456556eb48 100644 (file)
@@ -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