This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug dynamic-link/19762] New: HAS_CPU_FEATURE/HAS_ARCH_FEATURE are easy to misuse
- From: "hjl.tools at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 03 Mar 2016 23:27:47 +0000
- Subject: [Bug dynamic-link/19762] New: HAS_CPU_FEATURE/HAS_ARCH_FEATURE are easy to misuse
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=19762
Bug ID: 19762
Summary: HAS_CPU_FEATURE/HAS_ARCH_FEATURE are easy to misuse
Product: glibc
Version: 2.23
Status: NEW
Severity: normal
Priority: P2
Component: dynamic-link
Assignee: unassigned at sourceware dot org
Reporter: hjl.tools at gmail dot com
Target Milestone: ---
There are bits and indices into cpuid and feature arrays of
struct cpu_features. It is very easy to use bits and indices
of cpuid on feature array, especially in assembly codes. For
example, sysdeps/i386/i686/multiarch/bcopy.S has
HAS_CPU_FEATURE (Fast_Rep_String)
which should be
HAS_ARCH_FEATURE (Fast_Rep_String)
--
You are receiving this mail because:
You are on the CC list for the bug.