forked from len0rd/rockbox
Enable strict aliasing optimizations for codecs on gcc versions >= 4.0, fix alising violations that this uncovered, gives small speedups for most codecs, FS#10801
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23784 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
685ca2672e
commit
13f08d70fd
5 changed files with 38 additions and 33 deletions
|
|
@ -41,8 +41,8 @@ include $(APPSDIR)/codecs/librm/librm.make
|
|||
include $(APPSDIR)/codecs/libatrac/libatrac.make
|
||||
|
||||
# compile flags for codecs
|
||||
CODECFLAGS = $(CFLAGS) -I$(APPSDIR)/codecs -I$(APPSDIR)/codecs/lib \
|
||||
-DCODEC
|
||||
CODECFLAGS = $(filter-out -fno-strict-aliasing,$(CFLAGS)) -fstrict-aliasing \
|
||||
-I$(APPSDIR)/codecs -I$(APPSDIR)/codecs/lib -DCODEC
|
||||
|
||||
ifndef SIMVER
|
||||
CODEC_LDS := $(APPSDIR)/plugins/plugin.lds # codecs and plugins use same file
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue