This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Configure patch
- To: egcs-patches at egcs dot cygnus dot com
- Subject: Configure patch
- From: Nathan Sidwell <nathan at acm dot org>
- Date: Thu, 26 Aug 1999 16:35:42 +0100
- Reply-To: nathan at compsci dot bristol dot ac dot uk
Hi,
the attached patch replaces some cases of
if ! <something>; then
with
if <something>; then : else
because solaris shell doesn't understand the ! (and as this is checking
some sparc features, it's rather sun-centric :-)
ok to install?
nathan
--
Dr Nathan Sidwell :: Computer Science Department :: Bristol University
I have seen the death of PhotoShop -- it is called GIMP
nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk
1999-08-26 Nathan Sidwell <nathan@acm.org>
* configure.in: Don't use shell ! to negate exit codes
Index: egcs/gcc/configure.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/configure.in,v
retrieving revision 1.277
diff -c -3 -p -r1.277 configure.in
*** configure.in 1999/08/24 13:58:40 1.277
--- configure.in 1999/08/26 15:32:23
*************** case "$target" in
*** 4235,4243 ****
echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
gcc_cv_as_flags64="-xarch=v9"
! if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_flags64="-64"
! if ! $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
gcc_cv_as_flags64=""
fi
fi
--- 4235,4247 ----
echo "or %g1, %lo(ab) + 12, %g1" > conftest.s
echo "or %g1, %lo(ab + 12), %g1" > conftest1.s
gcc_cv_as_flags64="-xarch=v9"
! if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
! :
! else
gcc_cv_as_flags64="-64"
! if $gcc_cv_as $gcc_cv_as_flags64 -o conftest.o conftest.s > /dev/null 2>&1; then
! :
! else
gcc_cv_as_flags64=""
fi
fi