2023-07-17 06:43:13 +00:00
|
|
|
From 453a815bf2844971a91eaef800af188d9e86b784 Mon Sep 17 00:00:00 2001
|
2018-12-12 17:14:55 +00:00
|
|
|
From: Szabolcs Nagy <nsz@port70.net>
|
|
|
|
Date: Sat, 24 Oct 2015 20:09:53 +0000
|
2023-07-25 20:18:13 +00:00
|
|
|
Subject: [PATCH 12/35] libgcc_s
|
2018-12-12 17:14:55 +00:00
|
|
|
|
|
|
|
---
|
2022-08-13 15:17:36 +00:00
|
|
|
gcc/config/i386/i386-expand.cc | 4 ++--
|
|
|
|
libgcc/config/i386/cpuinfo.c | 6 +++---
|
|
|
|
libgcc/config/i386/t-linux | 2 +-
|
2018-12-12 17:14:55 +00:00
|
|
|
3 files changed, 6 insertions(+), 6 deletions(-)
|
|
|
|
|
2022-08-13 15:17:36 +00:00
|
|
|
diff --git a/gcc/config/i386/i386-expand.cc b/gcc/config/i386/i386-expand.cc
|
2023-05-15 08:15:31 +00:00
|
|
|
index 0d817fc3f3b..2e99db00db9 100644
|
2022-08-13 15:17:36 +00:00
|
|
|
--- a/gcc/config/i386/i386-expand.cc
|
|
|
|
+++ b/gcc/config/i386/i386-expand.cc
|
2023-05-15 08:15:31 +00:00
|
|
|
@@ -12691,10 +12691,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
|
2018-12-12 17:14:55 +00:00
|
|
|
{
|
|
|
|
case IX86_BUILTIN_CPU_INIT:
|
|
|
|
{
|
2022-08-13 15:17:36 +00:00
|
|
|
- /* Make it call __cpu_indicator_init in libgcc. */
|
|
|
|
+ /* Make it call __cpu_indicator_init in libgcc.a. */
|
2018-12-12 17:14:55 +00:00
|
|
|
tree call_expr, fndecl, type;
|
2022-08-13 15:17:36 +00:00
|
|
|
type = build_function_type_list (integer_type_node, NULL_TREE);
|
2018-12-12 17:14:55 +00:00
|
|
|
- fndecl = build_fn_decl ("__cpu_indicator_init", type);
|
|
|
|
+ fndecl = build_fn_decl ("__cpu_indicator_init_local", type);
|
2022-08-13 15:17:36 +00:00
|
|
|
call_expr = build_call_expr (fndecl, 0);
|
2018-12-12 17:14:55 +00:00
|
|
|
return expand_expr (call_expr, target, mode, EXPAND_NORMAL);
|
|
|
|
}
|
|
|
|
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
|
2023-05-15 08:15:31 +00:00
|
|
|
index 50b6d8248a2..724ced402a1 100644
|
2018-12-12 17:14:55 +00:00
|
|
|
--- a/libgcc/config/i386/cpuinfo.c
|
|
|
|
+++ b/libgcc/config/i386/cpuinfo.c
|
2021-11-25 09:09:10 +00:00
|
|
|
@@ -63,7 +63,7 @@ __cpu_indicator_init (void)
|
|
|
|
__cpu_features2);
|
2018-12-12 17:14:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
-#if defined SHARED && defined USE_ELF_SYMVER
|
|
|
|
-__asm__ (".symver __cpu_indicator_init, __cpu_indicator_init@GCC_4.8.0");
|
|
|
|
-__asm__ (".symver __cpu_model, __cpu_model@GCC_4.8.0");
|
|
|
|
+#ifndef SHARED
|
|
|
|
+int __cpu_indicator_init_local (void)
|
|
|
|
+ __attribute__ ((weak, alias ("__cpu_indicator_init")));
|
|
|
|
#endif
|
|
|
|
diff --git a/libgcc/config/i386/t-linux b/libgcc/config/i386/t-linux
|
2020-08-21 10:18:02 +00:00
|
|
|
index 8506a635790..564296f788e 100644
|
2018-12-12 17:14:55 +00:00
|
|
|
--- a/libgcc/config/i386/t-linux
|
|
|
|
+++ b/libgcc/config/i386/t-linux
|
|
|
|
@@ -3,5 +3,5 @@
|
|
|
|
# t-slibgcc-elf-ver and t-linux
|
|
|
|
SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/i386/libgcc-glibc.ver
|
|
|
|
|
|
|
|
-HOST_LIBGCC2_CFLAGS += -mlong-double-80 -DUSE_ELF_SYMVER $(CET_FLAGS)
|
|
|
|
+HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS)
|
|
|
|
CRTSTUFF_T_CFLAGS += $(CET_FLAGS)
|
2023-05-15 08:15:31 +00:00
|
|
|
--
|
2023-06-09 18:45:27 +00:00
|
|
|
2.41.0
|
2023-05-15 08:15:31 +00:00
|
|
|
|