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.

58 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0042-Backport-of-patch-of-the-GCC-11-to-avoid-the-GNU-Att.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 27a633f79c9a0248ce673ff2d9c397e136427b01 Mon Sep 17 00:00:00 2001
  17. From: None <@>
  18. Date: Wed, 21 Oct 2020 17:35:50 +0000
  19. Subject: Backport of patch of the GCC 11 to avoid the GNU Attributes into
  20. libgcc
  21. source: https://gcc.gnu.org/pipermail/gcc-patches/2020-September/554770.html
  22. The -mno-gnu-attribute avoids the linker emit an error when check
  23. the type of long double 128bit.
  24. Signed-off-by: Gustavo L F Walbon <gwalbon@linux.ibm.com>
  25. Signed-off-by: Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
  26. ---
  27. main/gcc/t-float128 | 11 +++++++++++
  28. 1 file changed, 11 insertions(+)
  29. diff --git a/libgcc/config/rs6000/t-float128 b/libgcc/config/rs6000/t-float128
  30. index d5413445..b4e1afab 100644
  31. --- a/libgcc/config/rs6000/t-float128
  32. +++ b/libgcc/config/rs6000/t-float128
  33. @@ -69,6 +69,17 @@ $(fp128_ppc_obj) : INTERNAL_CFLAGS += $(FP128_CFLAGS_SW)
  34. $(fp128_obj) : $(fp128_includes)
  35. $(fp128_obj) : $(srcdir)/config/rs6000/quad-float128.h
  36. +# If we are switching the default long double type, we need to use
  37. +# -mno-gnu-attribute so that the __ibm128 support functions don't signal a
  38. +# linker error since the default long double is now IEEE 128-bit instead of IBM
  39. +# 128-bit.
  40. +ibm-ldouble$(objext) : INTERNAL_CFLAGS += -mno-gnu-attribute
  41. +
  42. +CFLAGS_TF_DECIMAL = -mno-gnu-attribute -Wno-psabi -mabi=ibmlongdouble
  43. +CFLAGS_KF_DECIMAL = -mno-gnu-attribute -Wno-psabi -mabi=ieeelongdouble
  44. +CFLAGS_KF_DECIMAL_SW = $(CFLAGS_KF_DECIMAL) -mno-float128-hardware
  45. +$(TF_DECIMAL_OBJS) : INTERNAL_CFLAGS += $(CFLAGS_TF_DECIMAL)
  46. +
  47. $(fp128_softfp_src) : $(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@)) $(fp128_dep)
  48. @src="$(srcdir)/soft-fp/$(subst -sw,,$(subst kf,tf,$@))"; \
  49. echo "Create $@"; \
  50. --
  51. 2.29.0