public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Small configure.ac PATCH for aix configury
@ 2012-10-11 15:19 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2012-10-11 15:19 UTC (permalink / raw)
  To: gcc-patches List

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

The check for .ref support on AIX used the wrong syntax, leading to 
broken output from autoconf.

Tested by configuring a cross-compiler, applying to trunk as obvious.

[-- Attachment #2: aix-config.patch --]
[-- Type: text/x-patch, Size: 1124 bytes --]

commit 885339b51d3221bcceabeaf9b2e5f39664ad947d
Author: Jason Merrill <jason@redhat.com>
Date:   Thu Oct 11 09:01:49 2012 -0400

            * configure.ac (gcc_cv_as_aix_ref): Fix typo.
            * configure: Regenerate.

diff --git a/gcc/configure b/gcc/configure
index a7cc645..387de5b 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -25363,8 +25363,8 @@ if test "${gcc_cv_as_aix_ref+set}" = set; then :
 else
   gcc_cv_as_aix_ref=no
     if test $in_tree_gas = yes; then
-    if test $gcc_cv_gas_vers -ge `expr \( \( 2.21.0 \* 1000 \) + gcc_cv_as_aix_ref=yes \) \* 1000 + `
-  then :
+    if test $gcc_cv_gas_vers -ge `expr \( \( 2 \* 1000 \) + 21 \) \* 1000 + 0`
+  then gcc_cv_as_aix_ref=yes
 fi
   elif test x$gcc_cv_as != x; then
     $as_echo '	.csect stuff[rw]
diff --git a/gcc/configure.ac b/gcc/configure.ac
index f57f3cd..b6c049b 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -3893,7 +3893,7 @@ LCF0:
     case $target in
       *-*-aix*)
 	gcc_GAS_CHECK_FEATURE([.ref support],
-	  gcc_cv_as_aix_ref, [2.21.0],,
+	  gcc_cv_as_aix_ref, [2,21,0],,
 	  [	.csect stuff[[rw]]
 	     stuff:
 		.long 1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-11 15:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-11 15:19 Small configure.ac PATCH for aix configury Jason Merrill

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).