Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: ARM toolchain

Re: ARM toolchain

From: Amaury Pouly via rockbox-dev <rockbox-dev_at_cool.haxx.se>
Date: Thu, 5 May 2016 11:07:48 +0100

>
> The removal of #ifdef CLZ_HWI and #ifdef CTZ_HWI code is not needed for
> successful building. That changes floor_log2() and exact_log2() from code
> based on one of the __builtin_clz functions to alternative code. I'm left
> wondering what is the reason for that change.
>
> My old compiler, a new one with this patch, and a new one without the
> #ifdef code removal all produce the exact same ipodvideo rockbox.bin.
>
> The reason of the change is because the newer GCC compile in C11 mode by
default (instead of C89), which has slightly stricter rules on function
redefinition. This patches only makes sure the code compiles in C11, but
otherwise the compiler is exactly the same. You can find more information
about this patch here:
https://gcc.gnu.org/ml/gcc-patches/2009-06/msg01249.html
Received on 2016-05-05

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy