grub-devel
[Top][All Lists]
Advanced

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

[PATCH] LoongArch: Eliminate cmodel compilation warnings


From: Xiaotian Wu
Subject: [PATCH] LoongArch: Eliminate cmodel compilation warnings
Date: Thu, 24 Aug 2023 21:04:01 +0800

In the configure phase, the "-mcmodel=large" CFLAGS passed the test, but
because it has not been implemented in gcc, the following warning will appear
when compiling:

    gcc: warning: 'large' is not supported, now cmodel is set to 'normal'
---
 configure.ac | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 27c5918fa..a5e5f54cf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1262,8 +1262,7 @@ AC_SUBST(TARGET_LDFLAGS_OLDMAGIC)
 
 LDFLAGS="$TARGET_LDFLAGS"
 
-if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test 
"$target_cpu" = riscv64 \
-  || test "$target_cpu" = loongarch64 ; then
+if test "$target_cpu" = x86_64 || test "$target_cpu" = sparc64 || test 
"$target_cpu" = riscv64 ; then
   # Use large model to support 4G memory
   AC_CACHE_CHECK([whether option -mcmodel=large works], grub_cv_cc_mcmodel, [
     CFLAGS="$TARGET_CFLAGS -mcmodel=large"
-- 
2.41.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]