Hi all !
There is an very old workaround in share/mk/sys.mk for ARM target:
That workaround make us compile ARM in "-O" optimisation level instead of "-O2".
It's maybe time to remove that ?
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":
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.