From patchwork Wed Dec 4 21:03:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kugan Vivekanandarajah X-Patchwork-Id: 22041 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f200.google.com (mail-pd0-f200.google.com [209.85.192.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8417D23FCB for ; Wed, 4 Dec 2013 21:03:39 +0000 (UTC) Received: by mail-pd0-f200.google.com with SMTP id p10sf44162136pdj.7 for ; Wed, 04 Dec 2013 13:03:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:message-id:date:from:user-agent :mime-version:to:cc:subject:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe:content-type; bh=zJ35LbB+UQYqDETyPsokFouPnd/ASRN3Mc4rXXY7aWg=; b=A2/YFM6Uo7kxnEjYRxkP4ttqwwmReLdtFWUL5awLWk3evOZyetKd9Clw5JICD/PInp pU4x9QupegZhdomp/xlm1cJfxRhV/YHPOR0bF+4QnqQwSkubGMWQjux7vYB0Ilyu6rJl AE9yIw2VexkVg2ZPUGw0gLVJqdqUP2QN0CSbjiM5Ay3ZZFHDUQQygQeXEvI/ufFzKK/N qTJ28NupqDws5KrzgvSKyBYJbKbcWSnovNPDtVa9LrLQu/I6Gc/SE0kyqfGt/Asd2Vdy uIzz/i+AvOLjtGKxsmF/pC7ycG7RpWaQ6wHnJofPQ5iDRRvm+jYz+q11m3RXEq6hrCoi aRvA== X-Gm-Message-State: ALoCoQlJvhV7WHg1idlQcurx+8uUKnDbFwOtP56Mk4HVw5yagps39h/37zfJ0D3tEEBA9CikQN7V X-Received: by 10.66.218.99 with SMTP id pf3mr26133667pac.8.1386191018140; Wed, 04 Dec 2013 13:03:38 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.121.98 with SMTP id lj2ls536186qeb.45.gmail; Wed, 04 Dec 2013 13:03:38 -0800 (PST) X-Received: by 10.58.168.205 with SMTP id zy13mr10494808veb.19.1386191017971; Wed, 04 Dec 2013 13:03:37 -0800 (PST) Received: from mail-vc0-f170.google.com (mail-vc0-f170.google.com [209.85.220.170]) by mx.google.com with ESMTPS id de6si33291017vcb.109.2013.12.04.13.03.37 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:03:37 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.170; Received: by mail-vc0-f170.google.com with SMTP id ht10so12270474vcb.29 for ; Wed, 04 Dec 2013 13:03:37 -0800 (PST) X-Received: by 10.59.10.227 with SMTP id ed3mr17074ved.43.1386191017655; Wed, 04 Dec 2013 13:03:37 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp323973vcz; Wed, 4 Dec 2013 13:03:36 -0800 (PST) X-Received: by 10.68.230.228 with SMTP id tb4mr48082149pbc.108.1386191016380; Wed, 04 Dec 2013 13:03:36 -0800 (PST) Received: from mail-pb0-f42.google.com (mail-pb0-f42.google.com [209.85.160.42]) by mx.google.com with ESMTPS id d2si18879177pba.1.2013.12.04.13.03.34 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:03:36 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.42 is neither permitted nor denied by best guess record for domain of kugan.vivekanandarajah@linaro.org) client-ip=209.85.160.42; Received: by mail-pb0-f42.google.com with SMTP id uo5so24434004pbc.29 for ; Wed, 04 Dec 2013 13:03:34 -0800 (PST) X-Received: by 10.66.121.164 with SMTP id ll4mr83484171pab.48.1386191014792; Wed, 04 Dec 2013 13:03:34 -0800 (PST) Received: from [192.168.0.100] ([120.158.68.146]) by mx.google.com with ESMTPSA id wd6sm160176571pab.3.2013.12.04.13.03.31 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 04 Dec 2013 13:03:34 -0800 (PST) Message-ID: <529F98A0.8020503@linaro.org> Date: Thu, 05 Dec 2013 08:03:28 +1100 From: Kugan User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" CC: config-patches@gnu.org, Marcus Shawcroft , "patches@linaro.org" Subject: AARCH64 configure check for gas -mabi support X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: kugan.vivekanandarajah@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.170 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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 + * configure.ac: Add checks for aarch64 assembler -mabi support. + * configure: Regenerate. + 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],,