https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91776
Wilco <wilco at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2019-09-18 Ever confirmed|0 |1 --- Comment #4 from Wilco <wilco at gcc dot gnu.org> --- (In reply to yhr-_-yhr from comment #2) > > I think it's BM2837, ie. Cortex-A53. Or did you mean a different Pi? > oops you're right, I just got this pointed out when I showed this post to my > friend. I just copied it from `cat /proc/cpuinfo`. > > > Can you try using -mno-strict-it on your examples and see whether that > > helps? > Did you mean -mno-restrict-it? I followed gcc's correction info. Yes - but it looks like your compiler defaults to Arm (which is strange), so it has no effect. With GCC8 I can reproduce this for Arm, but not on newer compilers. On Thumb-2 it still is an issue due to -mrestrict-it (comment 1). Basically it shows how important conditional execution is for performance even on modern CPUs.