A gcc bug is triggered when Os/O2/O3 is used to compile the function. Just force O1 for the problematic function for Blackfin. See gcc bug report: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77311 Fixes: http://autobuild.buildroot.net/results/1118d568959006b7f973761884fd3f4b63be19b1/ Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>