This version of cpuid2cpuflags now reports more flags, including "bmi1". However, AFAICT the correct flag name (in gcc man page, and grepping
through PORTDIR is just "bmi").
Am I missing something? Or should I report a bug?
On 5/28/25 8:30 PM, Adam Carter wrote:
This version of cpuid2cpuflags now reports more flags, including "bmi1". However, AFAICT the correct flag name (in gcc man page, and grepping through PORTDIR is just "bmi").
Am I missing something? Or should I report a bug?
You have correctly determined that the correct compiler flag name is
"bmi". You then repeated yourself twice (I don't know why?) by
clarifying that PORTDIR also uses "bmi" when passing compiler flags.
But I don't know why you care.
cpuid2cpuflags lists valid USE="cpu_flags_x86_{xxx}" values, nothing to
do with compiler flags. Last week, no such cpu_flags_x86_bmi existed --
and nor did cpu_flags_x86_bmi1.
Today, the latter exists, added to Gentoo by the same person who added
it to cpuid2cpuflags.
You may question his taste in naming style, if you truly wish, but I
would find myself hard pressed to see a "typo". It is not "incorrect".
Michael,
On Thu, 29 May 2025 10:05:40 +0100 you wrote:
...
Should I be checking the cpuid2cpuflags every time gcc is upgraded, or are new CPU flags on old CPUs a relatively rare event?
According to my understanding of
https://wiki.gentoo.org/wiki/CPU_FLAGS_*
I would suggest running
echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags
once per mainborard when installing Gentoo on it for the first time.
Sincerely,
Rainer
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:42:31 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,570 |