OSDN Git Service

* configure.ac: Fix sparc GOTDATA_OP bug check.
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 05:40:32 +0000 (05:40 +0000)
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 26 Mar 2010 05:40:32 +0000 (05:40 +0000)
* configure: Rebuild.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157741 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/configure
gcc/configure.ac

index 0dc5a9f..0b2de21 100644 (file)
@@ -1,3 +1,8 @@
+2010-03-26  David S. Miller  <davem@davemloft.net>
+
+       * configure.ac: Fix sparc GOTDATA_OP bug check.
+       * configure: Rebuild.
+
 2010-03-26  Alan Modra  <amodra@gmail.com>
 
        * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
index f5cb4fe..2e022ed 100755 (executable)
@@ -22557,12 +22557,19 @@ bar:
   test $ac_status = 0; }; }
     then
        if test x$gcc_cv_ld != x \
-       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
-       && (test x$gnu_ld_flag = xno \
-           || (test x$gcc_cv_objdump != x \
-               && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
-                  | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1)); then
-        gcc_cv_as_sparc_gotdata_op=yes
+       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+         if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
+           if test x$gcc_cv_objdump != x; then
+             if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
+                | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
+              gcc_cv_as_sparc_gotdata_op=no
+             else
+              gcc_cv_as_sparc_gotdata_op=yes
+             fi
+           fi
+         else
+          gcc_cv_as_sparc_gotdata_op=yes
+         fi
        fi
        rm -f conftest
     else
index 6eee49b..ac4ca70 100644 (file)
@@ -3000,12 +3000,19 @@ bar:
        xor    %g1, %gdop_lox10(foo), %g1
        ld    [[%l7 + %g1]], %g2, %gdop(foo)],
       [if test x$gcc_cv_ld != x \
-       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1 \
-       && (test x$gnu_ld_flag = xno \
-           || (test x$gcc_cv_objdump != x \
-               && $gcc_cv_objdump -s -j .text conftest.o 2> /dev/null \
-                  | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1)); then
-        gcc_cv_as_sparc_gotdata_op=yes
+       && $gcc_cv_ld -o conftest conftest.o -G > /dev/null 2>&1; then
+         if $gcc_cv_ld -v | grep GNU >/dev/null 2>&1; then
+           if test x$gcc_cv_objdump != x; then
+             if $gcc_cv_objdump -s -j .text conftest 2> /dev/null \
+                | grep ' 03000004 82186004 c405c001'> /dev/null 2>&1; then
+              gcc_cv_as_sparc_gotdata_op=no
+             else
+              gcc_cv_as_sparc_gotdata_op=yes
+             fi
+           fi
+         else
+          gcc_cv_as_sparc_gotdata_op=yes
+         fi
        fi
        rm -f conftest],
       [AC_DEFINE(HAVE_AS_SPARC_GOTDATA_OP, 1,