[PATCH] x86: Remove __ASSEMBLER__ check in init-arch.h

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

[PATCH] x86: Remove __ASSEMBLER__ check in init-arch.h

Sourceware - libc-alpha mailing list
I am checking in this patch shortly.


commit 430388d5dc0e1861b869096f4f5d946d7d74232a
Author: H.J. Lu <[hidden email]>
Date:   Fri Aug 3 08:04:49 2018 -0700

    x86: Don't include <init-arch.h> in assembly codes

removed all usages of <init-arch.h> from assembly codes, we can remove
__ASSEMBLER__ check in init-arch.h.
 sysdeps/x86/init-arch.h | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sysdeps/x86/init-arch.h b/sysdeps/x86/init-arch.h
index d6f59cf962..a174229941 100644
--- a/sysdeps/x86/init-arch.h
+++ b/sysdeps/x86/init-arch.h
@@ -15,11 +15,7 @@
    License along with the GNU C Library; if not, see
    <https://www.gnu.org/licenses/>.  */
-#ifdef  __ASSEMBLER__
-# include <cpu-features.h>
-# include <ldsodefs.h>
+#include <ldsodefs.h>
 #include <ifunc-init.h>
 #include <isa.h>