This spec line appears to validate all switches:
%{mcpu=generic-*:-march=%*; :%{mcpu=*:-mcpu=%*} %{march=*:-march=%*}}
This spec line appears to validate all switches:
%{mcpu= generic- *:-march= %*; :%{mcpu=*:-mcpu=%*} %{march= *:-march= %*}}