OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
2.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0013-libgcc_s.patch
  5. # Copyright (C) 2020 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. From d31721459e363e49dfe0a7797300864d9cef92f0 Mon Sep 17 00:00:00 2001
  17. From: Szabolcs Nagy <nsz@port70.net>
  18. Date: Sat, 24 Oct 2015 20:09:53 +0000
  19. Subject: [PATCH 13/30] libgcc_s
  20. ---
  21. gcc/config/i386/i386-expand.c | 4 ++--
  22. libgcc/config/i386/cpuinfo.c | 6 +++---
  23. libgcc/config/i386/t-linux | 2 +-
  24. 3 files changed, 6 insertions(+), 6 deletions(-)
  25. diff --git a/gcc/config/i386/i386-expand.c b/gcc/config/i386/i386-expand.c
  26. index 6c759b01edf..8cf0e069e1c 100644
  27. --- a/gcc/config/i386/i386-expand.c
  28. +++ b/gcc/config/i386/i386-expand.c
  29. @@ -10948,10 +10948,10 @@ ix86_expand_builtin (tree exp, rtx target, rtx subtarget,
  30. {
  31. case IX86_BUILTIN_CPU_INIT:
  32. {
  33. - /* Make it call __cpu_indicator_init in libgcc. */
  34. + /* Make it call __cpu_indicator_init_local in libgcc.a. */
  35. tree call_expr, fndecl, type;
  36. type = build_function_type_list (integer_type_node, NULL_TREE);
  37. - fndecl = build_fn_decl ("__cpu_indicator_init", type);
  38. + fndecl = build_fn_decl ("__cpu_indicator_init_local", type);
  39. call_expr = build_call_expr (fndecl, 0);
  40. return expand_expr (call_expr, target, mode, EXPAND_NORMAL);
  41. }
  42. diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
  43. index cf5f0884bb4..ed0381e7744 100644
  44. --- a/libgcc/config/i386/cpuinfo.c
  45. +++ b/libgcc/config/i386/cpuinfo.c
  46. @@ -510,7 +510,7 @@ __cpu_indicator_init (void)
  47. return 0;
  48. }
  49. -#if defined SHARED && defined USE_ELF_SYMVER
  50. -__asm__ (".symver __cpu_indicator_init, __cpu_indicator_init@GCC_4.8.0");
  51. -__asm__ (".symver __cpu_model, __cpu_model@GCC_4.8.0");
  52. +#ifndef SHARED
  53. +int __cpu_indicator_init_local (void)
  54. + __attribute__ ((weak, alias ("__cpu_indicator_init")));
  55. #endif
  56. diff --git a/libgcc/config/i386/t-linux b/libgcc/config/i386/t-linux
  57. index 8506a635790..564296f788e 100644
  58. --- a/libgcc/config/i386/t-linux
  59. +++ b/libgcc/config/i386/t-linux
  60. @@ -3,5 +3,5 @@
  61. # t-slibgcc-elf-ver and t-linux
  62. SHLIB_MAPFILES = libgcc-std.ver $(srcdir)/config/i386/libgcc-glibc.ver
  63. -HOST_LIBGCC2_CFLAGS += -mlong-double-80 -DUSE_ELF_SYMVER $(CET_FLAGS)
  64. +HOST_LIBGCC2_CFLAGS += -mlong-double-80 $(CET_FLAGS)
  65. CRTSTUFF_T_CFLAGS += $(CET_FLAGS)
  66. --
  67. 2.27.0