Messages in this thread | | | Date | Mon, 01 Jun 2009 11:57:18 -0700 | From | "H. Peter Anvin" <> | Subject | Re: [PATCH 0/4] amd64_edac: misc fixes |
| |
Borislav Petkov wrote: > Actually, popcnt got added to gas in July 2006 so checking the gas > version should suffice, IMHO.
gas is part of binutils.
> Anyway, I proposed something similar before but Andrew suggested that we > should simply slap in the opcode so we don't need the Kbuild changes. > The advantage of the approach is that it works unconditionally on all > toolchains and introduces less code changes. Hmm...
That really sucks, though, in the long run. I personally prefer to have the "right thing" -- which in this case is probably gcc intrinsics -- and then a fallback that will gradually fall out of use.
-hpa
| |