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.

137 lines
6.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../musl/pkg/gcc/0025-use-pure-64-bit-configuration-where-appropriate.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 f73cf8d2f8f4eee71fc2ba850672e69f509a4486 Mon Sep 17 00:00:00 2001
  17. From: Ariadne Conill <ariadne@dereferenced.org>
  18. Date: Fri, 21 Aug 2020 07:04:40 +0000
  19. Subject: [PATCH 25/30] use pure 64-bit configuration where appropriate
  20. ---
  21. gcc/config/aarch64/t-aarch64-linux | 2 +-
  22. gcc/config/i386/t-linux64 | 4 ++--
  23. gcc/config/rs6000/t-linux | 6 ++++--
  24. gcc/config/rs6000/t-linux64 | 4 ++--
  25. gcc/config/rs6000/t-linux64bele | 4 ++--
  26. gcc/config/rs6000/t-linux64lebe | 4 ++--
  27. gcc/config/s390/t-linux64 | 4 ++--
  28. 7 files changed, 15 insertions(+), 13 deletions(-)
  29. diff --git a/gcc/config/aarch64/t-aarch64-linux b/gcc/config/aarch64/t-aarch64-linux
  30. index 83e59e33b85..6ec56fdf6a8 100644
  31. --- a/gcc/config/aarch64/t-aarch64-linux
  32. +++ b/gcc/config/aarch64/t-aarch64-linux
  33. @@ -22,7 +22,7 @@ LIB1ASMSRC = aarch64/lib1funcs.asm
  34. LIB1ASMFUNCS = _aarch64_sync_cache_range
  35. AARCH_BE = $(if $(findstring TARGET_BIG_ENDIAN_DEFAULT=1, $(tm_defines)),_be)
  36. -MULTILIB_OSDIRNAMES = mabi.lp64=../lib64$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu)
  37. +MULTILIB_OSDIRNAMES = mabi.lp64=../lib
  38. MULTIARCH_DIRNAME = $(call if_multiarch,aarch64$(AARCH_BE)-linux-gnu)
  39. MULTILIB_OSDIRNAMES += mabi.ilp32=../libilp32$(call if_multiarch,:aarch64$(AARCH_BE)-linux-gnu_ilp32)
  40. diff --git a/gcc/config/i386/t-linux64 b/gcc/config/i386/t-linux64
  41. index 1171e218578..256f8c079ba 100644
  42. --- a/gcc/config/i386/t-linux64
  43. +++ b/gcc/config/i386/t-linux64
  44. @@ -33,6 +33,6 @@
  45. comma=,
  46. MULTILIB_OPTIONS = $(subst $(comma),/,$(TM_MULTILIB_CONFIG))
  47. MULTILIB_DIRNAMES = $(patsubst m%, %, $(subst /, ,$(MULTILIB_OPTIONS)))
  48. -MULTILIB_OSDIRNAMES = m64=../lib64$(call if_multiarch,:x86_64-linux-gnu)
  49. -MULTILIB_OSDIRNAMES+= m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:i386-linux-gnu)
  50. +MULTILIB_OSDIRNAMES = m64=../lib
  51. +MULTILIB_OSDIRNAMES+= m32=../lib32
  52. MULTILIB_OSDIRNAMES+= mx32=../libx32$(call if_multiarch,:x86_64-linux-gnux32)
  53. diff --git a/gcc/config/rs6000/t-linux b/gcc/config/rs6000/t-linux
  54. index aeb7440c492..ab14c455d8d 100644
  55. --- a/gcc/config/rs6000/t-linux
  56. +++ b/gcc/config/rs6000/t-linux
  57. @@ -2,7 +2,8 @@
  58. # or soft-float.
  59. ifeq (,$(filter $(with_cpu),$(SOFT_FLOAT_CPUS))$(findstring soft,$(with_float)))
  60. ifneq (,$(findstring powerpc64,$(target)))
  61. -MULTILIB_OSDIRNAMES := .=../lib64$(call if_multiarch,:powerpc64-linux-gnu)
  62. +MULTILIB_OSDIRNAMES := m64=../lib
  63. +MULTILIB_OSDIRNAMES += m32=../lib32
  64. else
  65. MULTIARCH_DIRNAME := $(call if_multiarch,powerpc-linux-gnu)
  66. endif
  67. @@ -10,7 +11,8 @@ ifneq (,$(findstring powerpcle,$(target)))
  68. MULTIARCH_DIRNAME := $(subst -linux,le-linux,$(MULTIARCH_DIRNAME))
  69. endif
  70. ifneq (,$(findstring powerpc64le,$(target)))
  71. -MULTILIB_OSDIRNAMES := $(subst -linux,le-linux,$(MULTILIB_OSDIRNAMES))
  72. +MULTILIB_OSDIRNAMES := m64=../lib
  73. +MULTILIB_OSDIRNAMES += m32=../lib32
  74. endif
  75. endif
  76. diff --git a/gcc/config/rs6000/t-linux64 b/gcc/config/rs6000/t-linux64
  77. index 264a7e27524..d1e460811cc 100644
  78. --- a/gcc/config/rs6000/t-linux64
  79. +++ b/gcc/config/rs6000/t-linux64
  80. @@ -28,8 +28,8 @@
  81. MULTILIB_OPTIONS := m64/m32
  82. MULTILIB_DIRNAMES := 64 32
  83. MULTILIB_EXTRA_OPTS :=
  84. -MULTILIB_OSDIRNAMES := m64=../lib64$(call if_multiarch,:powerpc64-linux-gnu)
  85. -MULTILIB_OSDIRNAMES += m32=$(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:powerpc-linux-gnu)
  86. +MULTILIB_OSDIRNAMES := m64=../lib
  87. +MULTILIB_OSDIRNAMES += m32=../lib32
  88. rs6000-linux.o: $(srcdir)/config/rs6000/rs6000-linux.c
  89. $(COMPILE) $<
  90. diff --git a/gcc/config/rs6000/t-linux64bele b/gcc/config/rs6000/t-linux64bele
  91. index 97c1ee6fb4d..08d72639cb6 100644
  92. --- a/gcc/config/rs6000/t-linux64bele
  93. +++ b/gcc/config/rs6000/t-linux64bele
  94. @@ -2,6 +2,6 @@
  95. MULTILIB_OPTIONS += mlittle
  96. MULTILIB_DIRNAMES += le
  97. -MULTILIB_OSDIRNAMES += $(subst =,.mlittle=,$(subst lible32,lib32le,$(subst lible64,lib64le,$(subst lib,lible,$(subst -linux,le-linux,$(MULTILIB_OSDIRNAMES))))))
  98. -MULTILIB_OSDIRNAMES += $(subst $(if $(findstring 64,$(target)),m64,m32).,,$(filter $(if $(findstring 64,$(target)),m64,m32).mlittle%,$(MULTILIB_OSDIRNAMES)))
  99. +MULTILIB_OSDIRNAMES = m64=../lib
  100. +MULTILIB_OSDIRNAMES+= m32=../lib32
  101. MULTILIB_MATCHES := ${MULTILIB_MATCHES_ENDIAN}
  102. diff --git a/gcc/config/rs6000/t-linux64lebe b/gcc/config/rs6000/t-linux64lebe
  103. index 2e63bdb9fc9..c6e1c5db65d 100644
  104. --- a/gcc/config/rs6000/t-linux64lebe
  105. +++ b/gcc/config/rs6000/t-linux64lebe
  106. @@ -2,6 +2,6 @@
  107. MULTILIB_OPTIONS += mbig
  108. MULTILIB_DIRNAMES += be
  109. -MULTILIB_OSDIRNAMES += $(subst =,.mbig=,$(subst libbe32,lib32be,$(subst libbe64,lib64be,$(subst lib,libbe,$(subst le-linux,-linux,$(MULTILIB_OSDIRNAMES))))))
  110. -MULTILIB_OSDIRNAMES += $(subst $(if $(findstring 64,$(target)),m64,m32).,,$(filter $(if $(findstring 64,$(target)),m64,m32).mbig%,$(MULTILIB_OSDIRNAMES)))
  111. +MULTILIB_OSDIRNAMES := m64=../lib
  112. +MULTILIB_OSDIRNAMES += m32=../lib32
  113. MULTILIB_MATCHES := ${MULTILIB_MATCHES_ENDIAN}
  114. diff --git a/gcc/config/s390/t-linux64 b/gcc/config/s390/t-linux64
  115. index cc6ab367072..7f498ee1cdc 100644
  116. --- a/gcc/config/s390/t-linux64
  117. +++ b/gcc/config/s390/t-linux64
  118. @@ -7,5 +7,5 @@
  119. MULTILIB_OPTIONS = m64/m31
  120. MULTILIB_DIRNAMES = 64 32
  121. -MULTILIB_OSDIRNAMES = ../lib64$(call if_multiarch,:s390x-linux-gnu)
  122. -MULTILIB_OSDIRNAMES += $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,../lib)$(call if_multiarch,:s390-linux-gnu)
  123. +MULTILIB_OSDIRNAMES = m64=../lib
  124. +MULTILIB_OSDIRNAMES+= m32=../lib32
  125. --
  126. 2.27.0