From 6f042c81d73079d226c10cc21832d4b2e61ca32a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A5ns=20Nilsson?= Date: Fri, 20 Mar 2020 07:22:09 +0100 Subject: [PATCH] TFLu: remove -fno-builtin compiler flag The flag may cause performance issues, since it disables special handling and optimizations of standard C library functions. --- tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc | 1 - tensorflow/lite/micro/tools/make/targets/bluepill_makefile.inc | 1 - tensorflow/lite/micro/tools/make/targets/ecm3531_makefile.inc | 1 - tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc | 1 - tensorflow/lite/micro/tools/make/targets/mcu_riscv_makefile.inc | 1 - tensorflow/lite/micro/tools/make/targets/stm32f4_makefile.inc | 1 - 6 files changed, 6 deletions(-) diff --git a/tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc b/tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc index 9494158cd50..aa221174d0c 100644 --- a/tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/apollo3evb_makefile.inc @@ -40,7 +40,6 @@ $(MAKEFILE_DIR)/downloads/$(AM_SDK_DEST)/$(SF_BSPS_DEST): $(MAKEFILE_DIR)/downlo -fmessage-length=0 \ -fno-exceptions \ -fno-unwind-tables \ - -fno-builtin \ -ffunction-sections \ -fdata-sections \ -funsigned-char \ diff --git a/tensorflow/lite/micro/tools/make/targets/bluepill_makefile.inc b/tensorflow/lite/micro/tools/make/targets/bluepill_makefile.inc index 878067cf083..3f3e2ce425d 100644 --- a/tensorflow/lite/micro/tools/make/targets/bluepill_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/bluepill_makefile.inc @@ -19,7 +19,6 @@ ifeq ($(TARGET), bluepill) -fmessage-length=0 \ -fno-exceptions \ -fno-unwind-tables \ - -fno-builtin \ -ffunction-sections \ -fdata-sections \ -funsigned-char \ diff --git a/tensorflow/lite/micro/tools/make/targets/ecm3531_makefile.inc b/tensorflow/lite/micro/tools/make/targets/ecm3531_makefile.inc index 8b24f5beb92..e899cbd0672 100644 --- a/tensorflow/lite/micro/tools/make/targets/ecm3531_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/ecm3531_makefile.inc @@ -27,7 +27,6 @@ ifeq ($(TARGET), ecm3531) -fmessage-length=0 \ -fno-exceptions \ -fno-unwind-tables \ - -fno-builtin \ -ffunction-sections \ -fdata-sections \ -funsigned-char \ diff --git a/tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc b/tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc index 85e5aa7154d..bfeec5e55a2 100644 --- a/tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/hexagon_makefile.inc @@ -39,7 +39,6 @@ ifeq ($(TARGET), hexagon) -fdata-sections \ -ffunction-sections \ -fmessage-length=0 \ - -fno-builtin \ -fno-delete-null-pointer-checks \ -fno-exceptions \ -fno-register-global-dtors-with-atexit \ diff --git a/tensorflow/lite/micro/tools/make/targets/mcu_riscv_makefile.inc b/tensorflow/lite/micro/tools/make/targets/mcu_riscv_makefile.inc index 7336c520b11..9062f25254e 100644 --- a/tensorflow/lite/micro/tools/make/targets/mcu_riscv_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/mcu_riscv_makefile.inc @@ -16,7 +16,6 @@ ifeq ($(TARGET), riscv32_mcu) -DTF_LITE_MCU_DEBUG_LOG \ -DTF_LITE_USE_GLOBAL_ROUND \ -fno-unwind-tables \ - -fno-builtin \ -ffunction-sections \ -fdata-sections \ -funsigned-char \ diff --git a/tensorflow/lite/micro/tools/make/targets/stm32f4_makefile.inc b/tensorflow/lite/micro/tools/make/targets/stm32f4_makefile.inc index 539f4528d06..24b36f119a2 100644 --- a/tensorflow/lite/micro/tools/make/targets/stm32f4_makefile.inc +++ b/tensorflow/lite/micro/tools/make/targets/stm32f4_makefile.inc @@ -16,7 +16,6 @@ ifeq ($(TARGET), stm32f4) -fmessage-length=0 \ -fno-exceptions \ -fno-unwind-tables \ - -fno-builtin \ -ffunction-sections \ -fdata-sections \ -funsigned-char \