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

[Xen-devel] [PATCH XTF] build with -Os



This helps limit the number of function instances created, commonly
allowing the exact same code to be used in dual non-FEP/FEP tests. This
is particularly helpful when certain exceptions are expected to be
raised: We prefer for results to not differ between the two halves of
such tests, while depending on the register used as base address in
memory operands #GP vs #SS may be raised for different code paths.

Failure-to-inline warnings need to be suppressed though for this, and
frame pointer omission needs to be enabled in order for at least the
XSA-213 test to build (it clobbers %ebp in an asm(), the reason for
which isn't really clear to me).

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/build/common.mk
+++ b/build/common.mk
@@ -23,11 +23,11 @@ LDFLAGS-$(lto) := -flto -B /usr/lib/gold
 
 COMMON_AFLAGS := $(COMMON_FLAGS) -D__ASSEMBLY__
 COMMON_CFLAGS := $(COMMON_FLAGS) $(COMMON_CFLAGS-y)
-COMMON_CFLAGS += -Wall -Wextra -Werror -std=gnu99 -Wstrict-prototypes -O3 -g
+COMMON_CFLAGS += -Wall -Wextra -Werror -std=gnu99 -Wstrict-prototypes -Os -g
 COMMON_CFLAGS += -fno-common -fno-asynchronous-unwind-tables 
-fno-strict-aliasing
-COMMON_CFLAGS += -fno-stack-protector -fno-pic -ffreestanding
+COMMON_CFLAGS += -fno-stack-protector -fno-pic -ffreestanding 
-fomit-frame-pointer
 COMMON_CFLAGS += -mno-red-zone -mno-sse
-COMMON_CFLAGS += -Wno-unused-parameter -Winline
+COMMON_CFLAGS += -Wno-unused-parameter -Wno-inline
 
 COMMON_AFLAGS-x86_32 := -m32
 COMMON_AFLAGS-x86_64 := -m64




_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.