From 2692e493c83712f69cd38e56aede815c8cd86216 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sat, 30 Oct 2021 01:05:47 -0400 Subject: [PATCH] atsamd: Remove gcc -mfpu=fpv4-sp-d16 floating point option The floating point unit must be enabled in order to use it and Klipper does not currently implement that. Newer versions of gcc may spill registers to the floating point unit causing failures. Signed-off-by: Kevin O'Connor --- src/atsamd/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/src/atsamd/Makefile b/src/atsamd/Makefile index 3fe2a4e9..d885f847 100644 --- a/src/atsamd/Makefile +++ b/src/atsamd/Makefile @@ -11,7 +11,6 @@ MCU := $(shell echo $(CONFIG_MCU) | tr a-z A-Z) CFLAGS-$(CONFIG_MACH_SAMD21) += -mcpu=cortex-m0plus -Ilib/samd21/samd21a/include CFLAGS-$(CONFIG_MACH_SAMD51) += -mcpu=cortex-m4 -Ilib/samd51/samd51a/include -CFLAGS-$(CONFIG_MACH_SAMD51) += -mfpu=fpv4-sp-d16 -mfloat-abi=hard CFLAGS += $(CFLAGS-y) -D__$(MCU)__ -mthumb -Ilib/cmsis-core CFLAGS_klipper.elf += --specs=nano.specs --specs=nosys.specs