e22b08 project: added cflags for memory functions.

Authored and Committed by midipix 6 years ago
    project: added cflags for memory functions.
    
        
file modified
+13 -0
project/extras.mk CHANGED
@@ -24,3 +24,16 @@ CFLAGS_COMMON += -fno-unwind-tables
24
24
CFLAGS_COMMON += -fno-asynchronous-unwind-tables
25
25
CFLAGS_COMMON += -frounding-math
26
26
CFLAGS_COMMON += -fexcess-precision=standard
27
+
28
+ # memory modules
29
+ libc_mem_modules = \
30
+ ./src/string/memcpy.c \
31
+ ./src/string/memmove.c \
32
+ ./src/string/memcmp.c \
33
+ ./src/string/memset.c
34
+
35
+ libc_mem_objs = $(libc_mem_modules:%.c=%.o)
36
+ libc_mem_lobjs = $(libc_mem_modules:%.c=%.lo)
37
+
38
+ $(libc_mem_objs): CFLAGS_CONFIG += -fno-tree-loop-distribute-patterns
39
+ $(libc_mem_lobjs): CFLAGS_CONFIG += -fno-tree-loop-distribute-patterns