summaryrefslogtreecommitdiff
path: root/gcc/configure
diff options
context:
space:
mode:
authordavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-26 05:40:32 +0000
committerdavem <davem@138bc75d-0d04-0410-961f-82ee72b054a4>2010-03-26 05:40:32 +0000
commitdd84455f529c680c52cfa11c513bd6ef279859c5 (patch)
treee2dc68e9ce4747c4a8b5542ce15f1aa8bf9878af /gcc/configure
parentc845395b142732d6f3c947bb2d25bc6c3154294c (diff)
downloadgcc-dd84455f529c680c52cfa11c513bd6ef279859c5.tar.gz
* configure.ac: Fix sparc GOTDATA_OP bug check.
* configure: Rebuild. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157741 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/configure')
-rwxr-xr-xgcc/configure19
1 files changed, 13 insertions, 6 deletions
diff --git a/gcc/configure b/gcc/configure
index f5cb4fec813..2e022ed3ae5 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -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