X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/50cc83db21e08850cb869b02f24ef19cf52d32d5..a80afdf94c94a6d1f92e11ff6add42f45ee277aa:/lunaix-os/config/make-cc diff --git a/lunaix-os/config/make-cc b/lunaix-os/config/make-cc index 71f3b76..4491370 100644 --- a/lunaix-os/config/make-cc +++ b/lunaix-os/config/make-cc @@ -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