Forbidding use of rbp for register allocation on x86-64 platform.
It is necessary because of bug in gcc / g++: Pointers allocated on rbp can be (are?) supposed to be aligned indepedently of what they actually contain. Turning off allocation on rbp is not critical for now, because, currently, x86-64 is just development platform.
This commit is contained in:
@@ -356,6 +356,7 @@ endif
|
||||
ifeq ($(OPTION_MCU),disable)
|
||||
MACHINE_TYPE=$(shell uname -m)
|
||||
ifeq ($(MACHINE_TYPE),x86_64)
|
||||
CFLAGS_COMMON += -ffixed-rbp
|
||||
DEFINES_JERRY += -D__TARGET_HOST_x64
|
||||
else
|
||||
ifeq ($(MACHINE_TYPE),armv7l)
|
||||
|
||||
Reference in New Issue
Block a user