diff mbox

Add -mno-red-zone to CFLAGS for x86-64

Message ID 53B6942F.3040404@siemens.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jan Kiszka July 4, 2014, 11:46 a.m. UTC
This is required in order to use the stack in inline assembly (like
pushf; pop reg) without clashing with the compiler's stack assignment.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---

Seen with old gcc 4.5.1.

 config/config-x86_64.mak | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Paolo Bonzini July 4, 2014, 11:49 a.m. UTC | #1
Il 04/07/2014 13:46, Jan Kiszka ha scritto:
> This is required in order to use the stack in inline assembly (like
> pushf; pop reg) without clashing with the compiler's stack assignment.
>
> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>

Thanks, applying this.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/config/config-x86_64.mak b/config/config-x86_64.mak
index d69252f..06b2581 100644
--- a/config/config-x86_64.mak
+++ b/config/config-x86_64.mak
@@ -1,7 +1,7 @@ 
 cstart.o = $(TEST_DIR)/cstart64.o
 bits = 64
 ldarch = elf64-x86-64
-CFLAGS += -D__x86_64__
+CFLAGS += -D__x86_64__ -mno-red-zone
 
 tests = $(TEST_DIR)/access.flat $(TEST_DIR)/apic.flat \
 	  $(TEST_DIR)/emulator.flat $(TEST_DIR)/idt_test.flat \