From: Ziggy Date: Tue, 4 Sep 2012 12:34:19 +0000 (-0400) Subject: Compiler optimizations X-Git-Url: https://ziggy471.com/git/gitweb.cgi?p=ziggy471-shooter-ics-kernel.git;a=commitdiff;h=e0830ad54c72fe1cb5ab503d55959fd3adfc4627 Compiler optimizations --- --- a/Makefile +++ b/Makefile @@ -354,12 +354,13 @@ CC = $(srctree)/scripts/gcc-wrapper.py CHECKFLAGS := -D__linux__ -Dlinux -D__STDC__ -Dunix -D__unix__ \ -Wbitwise -Wno-return-void $(CF) -CFLAGS_MODULE = -AFLAGS_MODULE = -LDFLAGS_MODULE = -CFLAGS_KERNEL = -AFLAGS_KERNEL = -CFLAGS_GCOV = -fprofile-arcs -ftest-coverage +MODFLAGS = -DMODULE -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops +CFLAGS_MODULE = $(MODFLAGS) +AFLAGS_MODULE = $(MODFLAGS) +LDFLAGS_MODULE = -T $(srctree)/scripts/module-common.lds +CFLAGS_KERNEL = -fgcse-lm -fgcse-sm -fsched-spec-load -fforce-addr -ffast-math -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize -funswitch-loops +AFLAGS_KERNEL = -fgcse -fsingle-precision-constant -mtune=cortex-a8 -march=armv7-a -mfpu=neon -ftree-vectorize +CFLAGS_GCOV = -fprofile-arcs -ftest-coverage # Use LINUXINCLUDE when you must reference the include/ directory.