diff options
author | Eric Botcazou <ebotcazou@libertysurf.fr> | 2003-06-05 09:50:42 +0200 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2003-06-05 07:50:42 +0000 |
commit | c6cc7e13f4226edc7078d610fa18e55676e0a4f6 (patch) | |
tree | 6130a8c7475f7487e7804b9127229b9e17bb67b2 /gcc | |
parent | 3aa07c6de03acb89a44cf480bc4a3cfb0e2365cc (diff) | |
download | gcc-c6cc7e13f4226edc7078d610fa18e55676e0a4f6.zip gcc-c6cc7e13f4226edc7078d610fa18e55676e0a4f6.tar.gz gcc-c6cc7e13f4226edc7078d610fa18e55676e0a4f6.tar.bz2 |
re PR target/10663 ([Solaris] New configure check aborts with Sun tools.)
PR target/10663
* configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
assembler and linker output to /dev/null.
Use a 'sed' construct instead of 'grep -A1'.
* configure: Regenerate.
Co-Authored-By: Paolo Bonzini <bonzini@gnu.org>
From-SVN: r67479
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 9 | ||||
-rwxr-xr-x | gcc/configure | 4 | ||||
-rw-r--r-- | gcc/configure.in | 4 |
3 files changed, 13 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a057fc2..8697fa6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,12 @@ +2003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr> + Paolo Bonzini <bonzini@gnu.org> + + PR target/10663 + * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect + assembler and linker output to /dev/null. + Use a 'sed' construct instead of 'grep -A1'. + * configure: Regenerate. + 2003-06-04 Richard Henderson <rth@redhat.com> * config/i386/i386.c (struct ix86_address): Add seg. diff --git a/gcc/configure b/gcc/configure index 16613e7..1c61e56 100755 --- a/gcc/configure +++ b/gcc/configure @@ -8467,9 +8467,9 @@ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ - conftest2.o conftest3.o; then + conftest2.o conftest3.o > /dev/null 2>&1; then gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ - | grep -A1 myfoosect` + | sed -e '/myfoosect/!d' -e N` if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then gcc_cv_ld_ro_rw_mix=read-only diff --git a/gcc/configure.in b/gcc/configure.in index e087d32..0db3687 100644 --- a/gcc/configure.in +++ b/gcc/configure.in @@ -2603,9 +2603,9 @@ elif test x$gcc_cv_as != x -a x$gcc_cv_ld != x -a x$gcc_cv_objdump != x ; then && $gcc_cv_as -o conftest2.o conftest2.s > /dev/null 2>&1 \ && $gcc_cv_as -o conftest3.o conftest3.s > /dev/null 2>&1 \ && $gcc_cv_ld -shared -o conftest1.so conftest1.o \ - conftest2.o conftest3.o; then + conftest2.o conftest3.o > /dev/null 2>&1; then gcc_cv_ld_ro_rw_mix=`$gcc_cv_objdump -h conftest1.so \ - | grep -A1 myfoosect` + | sed -e '/myfoosect/!d' -e N` if echo "$gcc_cv_ld_ro_rw_mix" | grep CONTENTS > /dev/null; then if echo "$gcc_cv_ld_ro_rw_mix" | grep READONLY > /dev/null; then gcc_cv_ld_ro_rw_mix=read-only |