about summary refs log tree commit diff
path: root/sysdeps/x86_64
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-04-10 12:01:30 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-04-10 12:01:45 -0700
commitfda19e04387359e1bc8c30f0eda5a61d976942ff (patch)
tree569fd5b3d616e2a7b0b14c096cbea110d01d2877 /sysdeps/x86_64
parent6d4adeb700840bab65165223e058ddc459cf07b8 (diff)
downloadglibc-fda19e04387359e1bc8c30f0eda5a61d976942ff.tar.gz
glibc-fda19e04387359e1bc8c30f0eda5a61d976942ff.tar.xz
glibc-fda19e04387359e1bc8c30f0eda5a61d976942ff.zip
Add sysdeps/x86/dl-procinfo.c
Add sysdeps/x86/dl-procinfo.c for x86 version of processor capability
information to reduce duplication between i386 and x86_64 dl-procinfo.c.

	* sysdeps/i386/dl-procinfo.c: Include
	<sysdeps/x86/dl-procinfo.c>.
	* sysdeps/x86_64/dl-procinfo.c: Likewise.
	* sysdeps/x86/dl-procinfo.c: New file.
Diffstat (limited to 'sysdeps/x86_64')
-rw-r--r--sysdeps/x86_64/dl-procinfo.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/sysdeps/x86_64/dl-procinfo.c b/sysdeps/x86_64/dl-procinfo.c
index a76624fb06..17ae800a37 100644
--- a/sysdeps/x86_64/dl-procinfo.c
+++ b/sysdeps/x86_64/dl-procinfo.c
@@ -39,19 +39,7 @@
 # define PROCINFO_CLASS
 #endif
 
-#if !defined PROCINFO_DECL && defined SHARED
-  ._dl_x86_cpu_features
-#else
-PROCINFO_CLASS struct cpu_features _dl_x86_cpu_features
-#endif
-#ifndef PROCINFO_DECL
-= { }
-#endif
-#if !defined SHARED || defined PROCINFO_DECL
-;
-#else
-,
-#endif
+#include <sysdeps/x86/dl-procinfo.c>
 
 #undef PROCINFO_DECL
 #undef PROCINFO_CLASS