[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1026968: gcc-12: fix support for loong64



Source: gcc-12
Version: 12.2.0-10
Severity: wishlist

Dear Maintainer,

  In #1023785, the patch is now no longer suitable

  1.It should be modified as follow.

--- a/src/gcc/config/loongarch/t-linux
+++ b/src/gcc/config/loongarch/t-linux
@@ -32,22 +32,19 @@ ifneq ($(call if_multiarch,yes),yes)
 else
     # Only define MULTIARCH_DIRNAME when multiarch is enabled,
     # or it would always introduce ${target} into the search path.
-    MULTIARCH_DIRNAME = $(LA_MULTIARCH_TRIPLET)
+    MULTIARCH_DIRNAME = $(call if_multiarch,loongarch64-linux-gnuf64)
 endif

 # Don't define MULTILIB_OSDIRNAMES if multilib is disabled.
 ifeq ($(filter LA_DISABLE_MULTILIB,$(tm_defines)),)

     MULTILIB_OSDIRNAMES = \
-      mabi.lp64d=../lib64$\
-      $(call if_multiarch,:loongarch64-linux-gnuf64)
+      mabi.lp64d=../lib$(call if_multiarch,:loongarch64-linux-gnuf64)

     MULTILIB_OSDIRNAMES += \
-      mabi.lp64f=../lib64/f32$\
-      $(call if_multiarch,:loongarch64-linux-gnuf32)
+      mabi.lp64f=../lib$(call if_multiarch,:loongarch64-linux-gnuf32)

     MULTILIB_OSDIRNAMES += \
-      mabi.lp64s=../lib64/sf$\
-      $(call if_multiarch,:loongarch64-linux-gnusf)
+      mabi.lp64s=../lib$(call if_multiarch,:loongarch64-linux-gnusf)
 endif


    2. gcc didn't enable with_pie, It should add loong64
    https://salsa.debian.org/toolchain-team/gcc/-/blob/gcc-12-debian/debian/rules.defs#L1434-L1438


Reply to: