From 6766ee91c5559669f2e8144cceff0de9f46a84a9 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Thu, 18 Sep 2014 12:59:24 +0200 Subject: [PATCH] Makefile: Add -fno-strict-aliasing --- Makefile | 1 + freebsd-to-rtems.py | 1 + 2 files changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 9e388981..75c06fbe 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ include $(RTEMS_MAKEFILE_PATH)/Makefile.inc include $(RTEMS_CUSTOM) include $(PROJECT_ROOT)/make/leaf.cfg +COMMON_FLAGS += -fno-strict-aliasing COMMON_FLAGS += -ffreestanding COMMON_FLAGS += -fno-common COMMON_FLAGS += -Irtemsbsd/include diff --git a/freebsd-to-rtems.py b/freebsd-to-rtems.py index 94a0caab..a2b06ae6 100755 --- a/freebsd-to-rtems.py +++ b/freebsd-to-rtems.py @@ -411,6 +411,7 @@ class ModuleManager: 'include $(RTEMS_CUSTOM)\n' \ 'include $(PROJECT_ROOT)/make/leaf.cfg\n' \ '\n' \ + 'COMMON_FLAGS += -fno-strict-aliasing\n' \ 'COMMON_FLAGS += -ffreestanding\n' \ 'COMMON_FLAGS += -fno-common\n' \ 'COMMON_FLAGS += -Irtemsbsd/include\n' \