feat: (device) dev_null and dev_rand support
[lunaix-os.git] / lunaix-os / config / make-cc
index 71f3b7675e59f4f97d678d35f8df2f7269f9da70..4491370c42fd1fa3fa5570f97e98f6398784df31 100644 (file)
@@ -2,14 +2,21 @@ CC := i686-elf-gcc
 AS := i686-elf-as
 
 
-ARCH_OPT := -D__ARCH_IA32
-O := -O1
+ARCH_OPT := -D__ARCH_IA32 -include flags.h
+O := -O2
 W := -Wall -Wextra -Wno-unknown-pragmas \
                -Wno-unused-function \
                -Wno-unused-but-set-variable \
                -Wno-unused-parameter \
                -Wno-unused-variable\
                -Werror=incompatible-pointer-types
-               
-CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) $(ARCH_OPT)
+
+OFLAGS := -fno-gcse\
+                 -fno-gcse-lm\
+                 -fno-cse-follow-jumps\
+                 -fno-cse-skip-blocks\
+                 -fno-optimize-strlen\
+                 -fno-tree-builtin-call-dce 
+
+CFLAGS := -std=gnu99 -ffreestanding $(O) $(OFLAGS) $(W) $(ARCH_OPT)
 LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc
\ No newline at end of file