Hi all ! There is an very old workaround in share/mk/sys.mk for ARM target: https://svnweb.freebsd.org/base?view=revision&revision=173375 That workaround make us compile ARM in "-O" optimisation level instead of "-O2". It's maybe time to remove that ? https://svnweb.freebsd.org/base/head/share/mk/sys.mk?view=annotate#l170 Thank you
Looks good to me. Did you test it?
Unfortunately not. I'll try to do some tests next week.
Note that this affects only armv5, not armv6 or armv7. It's not clear that armv5 will even be supported beyond freebsd 12, so it's probably not worth putting a lot of effort into this.
There is a regexp at the top of the file that change armv6/armv7 to "arm": https://svnweb.freebsd.org/base/head/share/mk/sys.mk?view=markup#l16
Just some quick news: The code generated is pretty much the same. As expected, clang's optimisation level 1 and 2 produce pretty much the same. So, no big deal on performances with clang. Maybe for the ones that compile with GCC, the difference may be much bigger. Longer tests will come next week.