wok-next view gcc/stuff/patches/203-libgcc_s.patch @ rev 21688

updated glu (9.0.0 -> 9.0.1)
author Hans-G?nter Theisgen
date Mon Jun 29 17:17:08 2020 +0100 (2020-06-29)
parents
children
line source
1 From 9e3eab51e518018d9d99b3123598b1e2322a6af3 Mon Sep 17 00:00:00 2001
2 From: Szabolcs Nagy <nsz@port70.net>
3 Date: Sat, 24 Oct 2015 20:09:53 +0000
4 Subject: [PATCH 3/6] libgcc_s
6 ---
7 gcc/config/i386/i386.c | 4 ++--
8 libgcc/config/i386/cpuinfo.c | 6 +++---
9 libgcc/config/i386/t-linux | 2 +-
10 3 files changed, 6 insertions(+), 6 deletions(-)
12 diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
13 index 3d044e8..82523e1 100644
14 --- a/gcc/config/i386/i386.c
15 +++ b/gcc/config/i386/i386.c
16 @@ -40269,10 +40269,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
17 {
18 case IX86_BUILTIN_CPU_INIT:
19 {
20 - /* Make it call __cpu_indicator_init in libgcc. */
21 + /* Make it call __cpu_indicator_init_local in libgcc.a. */
22 tree call_expr, fndecl, type;
23 type = build_function_type_list (integer_type_node, NULL_TREE);
24 - fndecl = build_fn_decl ("__cpu_indicator_init", type);
25 + fndecl = build_fn_decl ("__cpu_indicator_init_local", type);
26 call_expr = build_call_expr (fndecl, 0);
27 return expand_expr (call_expr, target, mode, EXPAND_NORMAL);
28 }
29 diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
30 index 8c2248d..6c82f15 100644
31 --- a/libgcc/config/i386/cpuinfo.c
32 +++ b/libgcc/config/i386/cpuinfo.c
33 @@ -485,7 +485,7 @@ __cpu_indicator_init (void)
34 return 0;
35 }
37 -#if defined SHARED && defined USE_ELF_SYMVER
38 -__asm__ (".symver __cpu_indicator_init, __cpu_indicator_init@GCC_4.8.0");
39 -__asm__ (".symver __cpu_model, __cpu_model@GCC_4.8.0");
40 +#ifndef SHARED
41 +int __cpu_indicator_init_local (void)
42 + __attribute__ ((weak, alias ("__cpu_indicator_init")));
43 #endif
44 diff --git a/libgcc/config/i386/t-linux b/libgcc/config/i386/t-linux
45 index 11bb46e..4f47f7b 100644
46 --- a/libgcc/config/i386/t-linux
47 +++ b/libgcc/config/i386/t-linux
48 @@ -3,5 +3,5 @@
49 # t-slibgcc-elf-ver and t-linux
50 SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/i386/libgcc-glibc.ver
52 -HOST_LIBGCC2_CFLAGS += -mlong-double-80 -DUSE_ELF_SYMVER $(CET_FLAGS)
53 +HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS)
54 CRTSTUFF_T_CFLAGS += $(CET_FLAGS)
55 --
56 2.8.1