It's just that "ack"ing through the source code to find out what it's currently doing isn't really a great method of checking what flags etc are currently used.
I'll create a ticket for…
Btw: Is there an easy way to see how the final makepkg.conf looks which runs on the build-server?
From reading the GCC docs they should all be nul to slightly benefitial and a safe choice.
-floop-nest-optimize / -ftree-loop-linear -floop-strip-mine -floop-block was left out, because:
This option is experimental.
@OpenSourceAnarchist maybe you want to take a look over this as well?
It includes your changes as well:
Nice!
I worked through the GCC docs and had a look at the docs vs the GCC flags. I found some strange defaults GCC sets and some more optimisation flags we could discuss about.
They all just…