public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* AARCH64 configure check for gas -mabi support
@ 2013-12-04 21:03 Kugan
  2013-12-06 16:18 ` Yufeng Zhang
  0 siblings, 1 reply; 14+ messages in thread
From: Kugan @ 2013-12-04 21:03 UTC (permalink / raw)
  To: gcc-patches; +Cc: config-patches, Marcus Shawcroft, patches

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi,

gcc trunk aarch64 bootstrapping fails with gas version 2.23.2 (with
error message similar to cannot compute suffix of object files) as this
particular version does not support -mabi=lp64. It succeeds with later
versions of gas that supports -mabi.

Attached patch add checking for -mabi=lp64 and prompts upgradation. Is
this Ok?

Thanks,
Kugan

+2013-12-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
+	* configure.ac: Add checks for aarch64 assembler -mabi support.
+	* configure: Regenerate.
+

[-- Attachment #2: p.txt --]
[-- Type: text/plain, Size: 2128 bytes --]

diff --git a/gcc/configure b/gcc/configure
index fdf0cd0..17b6e85 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -24057,6 +24057,38 @@ $as_echo "#define HAVE_AS_NO_MUL_BUG_ABORT_OPTION 1" >>confdefs.h
 fi
     ;;
 
+ aarch64-*-*)
+    { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for -mabi option" >&5
+$as_echo_n "checking assembler for -mabi option... " >&6; }
+if test "${gcc_cv_as_aarch64_mabi+set}" = set; then :
+  $as_echo_n "(cached) " >&6
+else
+  gcc_cv_as_aarch64_mabi=no
+  if test x$gcc_cv_as != x; then
+    $as_echo '.text' > conftest.s
+    if { ac_try='$gcc_cv_as $gcc_cv_as_flags -mabi=lp64 -o conftest.o conftest.s >&5'
+  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
+  (eval $ac_try) 2>&5
+  ac_status=$?
+  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
+  test $ac_status = 0; }; }
+    then
+	gcc_cv_as_aarch64_mabi=yes
+    else
+      echo "configure: failed program was" >&5
+      cat conftest.s >&5
+    fi
+    rm -f conftest.o conftest.s
+  fi
+fi
+{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_aarch64_mabi" >&5
+$as_echo "$gcc_cv_as_aarch64_mabi" >&6; }
+
+    if test x$gcc_cv_as_aarch64_mabi = xno; then
+	as_fn_error "Assembler support for -mabi=lp64 is required. Upgrade the Assembler." "$LINENO" 5
+    fi
+    ;;
+
   sparc*-*-*)
     { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for .register" >&5
 $as_echo_n "checking assembler for .register... " >&6; }
diff --git a/gcc/configure.ac b/gcc/configure.ac
index 91a22d5..730ada0 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3532,6 +3532,15 @@ case "$target" in
 		[Define if your assembler supports the -no-mul-bug-abort option.])])
     ;;
 
+ aarch64-*-*)
+    gcc_GAS_CHECK_FEATURE([-mabi option],
+      gcc_cv_as_aarch64_mabi,,
+      [-mabi=lp64], [.text],,,)
+    if test x$gcc_cv_as_aarch64_mabi = xno; then
+	AC_MSG_ERROR([Assembler support for -mabi=lp64 is required. Upgrade the Assembler.])
+    fi
+    ;;
+
   sparc*-*-*)
     gcc_GAS_CHECK_FEATURE([.register], gcc_cv_as_sparc_register_op,,,
       [.register %g2, #scratch],,

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2019-06-20 10:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-04 21:03 AARCH64 configure check for gas -mabi support Kugan
2013-12-06 16:18 ` Yufeng Zhang
2013-12-09 11:20   ` Kugan
2013-12-09 21:57     ` Yufeng Zhang
2013-12-10  6:21       ` Kugan
2013-12-10 11:29         ` Yufeng Zhang
2013-12-10 20:23           ` Kugan
2013-12-11 12:27             ` Marcus Shawcroft
2013-12-11 12:58               ` Christophe Lyon
2019-06-20 10:04                 ` Thomas Schwinge
2019-06-20 10:49                   ` Kugan Vivekanandarajah
2014-06-30  9:44             ` Gerald Pfeifer
2014-06-30  9:53               ` Yufeng Zhang
2014-07-05 22:13                 ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).