X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/bc34fd00d2e81fbc890bb2060ed6693454a230bf..a9cfeffd21239290ab1da46a952fe5789ae3f6de:/lunaix-os/config/make-cc diff --git a/lunaix-os/config/make-cc b/lunaix-os/config/make-cc index 7a1899c..4491370 100644 --- a/lunaix-os/config/make-cc +++ b/lunaix-os/config/make-cc @@ -2,7 +2,7 @@ CC := i686-elf-gcc AS := i686-elf-as -ARCH_OPT := -D__ARCH_IA32 +ARCH_OPT := -D__ARCH_IA32 -include flags.h O := -O2 W := -Wall -Wextra -Wno-unknown-pragmas \ -Wno-unused-function \ @@ -10,6 +10,13 @@ W := -Wall -Wextra -Wno-unknown-pragmas \ -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