X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/50cc83db21e08850cb869b02f24ef19cf52d32d5..43c43c058ededea929645fef68d15820eed1f5e9:/lunaix-os/config/make-cc diff --git a/lunaix-os/config/make-cc b/lunaix-os/config/make-cc index 71f3b76..ed1f678 100644 --- a/lunaix-os/config/make-cc +++ b/lunaix-os/config/make-cc @@ -3,13 +3,20 @@ AS := i686-elf-as ARCH_OPT := -D__ARCH_IA32 -O := -O1 +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