From 8eedbbc9ca9ba0c031b1330058088a7e19ab076b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Feb 2019 15:17:21 +0100 Subject: [PATCH] Prune compiler flags a bit. Let's go with -march=i686 for now. --- Applications/About/Makefile | 6 +++--- Applications/Clock/Makefile | 6 +++--- Applications/FileManager/Makefile | 6 +++--- Applications/FontEditor/Makefile | 6 +++--- Applications/Launcher/Makefile | 6 +++--- Applications/Terminal/Makefile | 6 +++--- Kernel/Makefile | 6 +++--- LibC/Makefile | 6 +++--- LibGUI/Makefile | 4 ++-- Userland/Makefile | 6 +++--- WindowServer/Makefile | 6 +++--- 11 files changed, 32 insertions(+), 32 deletions(-) diff --git a/Applications/About/Makefile b/Applications/About/Makefile index e3ae25ff9e..69a58233de 100644 --- a/Applications/About/Makefile +++ b/Applications/About/Makefile @@ -5,10 +5,10 @@ APP = About ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Applications/Clock/Makefile b/Applications/Clock/Makefile index 1107a42242..8e12d768c9 100644 --- a/Applications/Clock/Makefile +++ b/Applications/Clock/Makefile @@ -6,10 +6,10 @@ APP = Clock ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Applications/FileManager/Makefile b/Applications/FileManager/Makefile index 91b3ab36d4..35f4111004 100644 --- a/Applications/FileManager/Makefile +++ b/Applications/FileManager/Makefile @@ -6,10 +6,10 @@ APP = FileManager ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Applications/FontEditor/Makefile b/Applications/FontEditor/Makefile index 99a1bbd494..e65e962f70 100644 --- a/Applications/FontEditor/Makefile +++ b/Applications/FontEditor/Makefile @@ -6,10 +6,10 @@ APP = FontEditor ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Applications/Launcher/Makefile b/Applications/Launcher/Makefile index 6f90104cdc..3158cda285 100644 --- a/Applications/Launcher/Makefile +++ b/Applications/Launcher/Makefile @@ -5,10 +5,10 @@ APP = Launcher ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Applications/Terminal/Makefile b/Applications/Terminal/Makefile index c19fac2808..9a74f22908 100644 --- a/Applications/Terminal/Makefile +++ b/Applications/Terminal/Makefile @@ -6,10 +6,10 @@ APP = Terminal ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../.. -I. -I../../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/Kernel/Makefile b/Kernel/Makefile index f43c946d95..6b04393e21 100644 --- a/Kernel/Makefile +++ b/Kernel/Makefile @@ -66,10 +66,10 @@ BOOTLOADER = Boot/boot.bin IMAGE = .floppy-image ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-ident -fno-builtin +KERNEL_FLAGS = -ffreestanding -fno-stack-protector -fno-builtin WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -mregparm=3 -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables -fno-omit-frame-pointer +FLAVOR_FLAGS = -mregparm=3 -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I.. -I. #SUGGEST_FLAGS = -Wsuggest-final-types -Wsuggest-final-methods -Wsuggest-override #-Wsuggest-attribute=noreturn diff --git a/LibC/Makefile b/LibC/Makefile index dc69f3ce10..801437e4b5 100644 --- a/LibC/Makefile +++ b/LibC/Makefile @@ -54,10 +54,10 @@ CPP_OBJS = $(AK_OBJS) $(WIDGETS_OBJS) $(LIBC_OBJS) $(SHAREDGRAPHICS_OBJS) LIBRARY = LibC.a ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-builtin WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Os -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I.. -I. DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS diff --git a/LibGUI/Makefile b/LibGUI/Makefile index 685a6eb02a..cc1c2d779e 100644 --- a/LibGUI/Makefile +++ b/LibGUI/Makefile @@ -38,8 +38,8 @@ ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc LIBC_FLAGS = -ffreestanding -fno-stack-protector -fno-ident WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -fomit-frame-pointer -march=i386 -m32 -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I../LibC -I.. -I. DEFINES = -DSERENITY -DUSERLAND -DSANITIZE_PTRS -DLIBGUI diff --git a/Userland/Makefile b/Userland/Makefile index de3a65745a..6868ce21a4 100644 --- a/Userland/Makefile +++ b/Userland/Makefile @@ -63,10 +63,10 @@ APPS = \ ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I.. -I. -I../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND diff --git a/WindowServer/Makefile b/WindowServer/Makefile index 32413c6a7e..422dfeccc8 100644 --- a/WindowServer/Makefile +++ b/WindowServer/Makefile @@ -23,10 +23,10 @@ OBJS = $(SHAREDGRAPHICS_OBJS) $(WINDOWSERVER_OBJS) ARCH_FLAGS = STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc -USERLAND_FLAGS = -ffreestanding -fno-stack-protector -fno-ident +USERLAND_FLAGS = -ffreestanding -fno-stack-protector WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough -FLAVOR_FLAGS = -march=i386 -m32 -fno-exceptions -fno-rtti -fmerge-all-constants -fno-unroll-loops -fno-pie -fno-pic -OPTIMIZATION_FLAGS = -Oz -fno-asynchronous-unwind-tables +FLAVOR_FLAGS = -march=i686 -m32 -fno-exceptions -fno-rtti +OPTIMIZATION_FLAGS = -Os INCLUDE_FLAGS = -I.. -I. -I../LibC DEFINES = -DSERENITY -DSANITIZE_PTRS -DUSERLAND