This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: configury assembler features
On Mon, Apr 08, 2002 at 11:27:58AM +0930, Alan Modra wrote:
> On Sun, Apr 07, 2002 at 10:06:56PM -0300, Alexandre Oliva wrote:
> > On Apr 7, 2002, Alan Modra <amodra@bigpond.net.au> wrote:
> >
> > > This would be nice, but the top level Makefile.in uses
> >
> > > AS = as
> > > LD = ld
> > > etc.
> >
> > So what? The top-level configure substitutes them regardless.
>
> Blush. So it does. Assuming the following passes bootstrap etc., is
> it OK for mainline and branch?
>
> * configure.in (gcc_cv_as, gcc_cv_ld): Search install paths when
> build != host too.
> * configure: Regenerate
Hmm, fired that off a bit quick. The code that sets gcc_cv_nm and
gcc_cv_objdump should also lose the build != host test, I think.
Also, when running configure to generate auto-build.h, we should be
using target_alias and build_alias. Otherwise, I find it looking
for tools like powerpc64-unknown-linux-gnu-as instead of
powerpc64-linux-as.
* configure.in (auto-build.h): Use target_alias and build_alias
when running configure.
(gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
(gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
* configure: Regenerate.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
Index: gcc/configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.582
diff -u -p -r1.582 configure.in
--- gcc/configure.in 4 Apr 2002 02:48:11 -0000 1.582
+++ gcc/configure.in 8 Apr 2002 02:41:06 -0000
@@ -882,7 +882,7 @@ else
saved_CFLAGS="${CFLAGS}"
CC="${CC_FOR_BUILD}" CFLAGS="${CFLAGS_FOR_BUILD}" \
${realsrcdir}/configure \
- --target=$target --host=$build --build=$build
+ --target=$target_alias --host=$build_alias --build=$build_alias
CFLAGS="${saved_CFLAGS}"
# We just finished tests for the build machine, so rename
@@ -1222,7 +1222,7 @@ changequote(,)dnl
changequote([,])dnl
fi
-if test "x$gcc_cv_as" = x -a x$build = x$host; then
+if test "x$gcc_cv_as" = x; then
# Search the same directories that the installed compiler will
# search. Else we may find the wrong assembler and lose. If we
# do not find a suitable assembler binary, then try the user's
@@ -1318,7 +1318,7 @@ changequote(,)dnl
changequote([,])dnl
fi
-if test "x$gcc_cv_ld" = x -a x$build = x$host; then
+if test "x$gcc_cv_ld" = x; then
# Search the same directories that the installed compiler will
# search. Else we may find the wrong linker and lose. If we
# do not find a suitable linker binary, then try the user's
@@ -1387,12 +1387,10 @@ fi
AC_MSG_CHECKING(what nm to use)
if test -x nm$host_exeext; then
gcc_cv_nm=./nm$host_exeext
-elif test x$build = x$host; then
- if test "x$program_prefix" != xNONE; then
- gcc_cv_nm=${program_prefix}nm$host_exeext
- else
- gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
- fi
+elif test "x$program_prefix" != xNONE; then
+ gcc_cv_nm=${program_prefix}nm$host_exeext
+else
+ gcc_cv_nm=`echo nm | sed ${program_transform_name}`$host_exeext
fi
AC_MSG_RESULT($gcc_cv_nm)
@@ -1400,12 +1398,10 @@ AC_MSG_RESULT($gcc_cv_nm)
AC_MSG_CHECKING(what objdump to use)
if test -x objdump$host_exeext; then
gcc_cv_objdump=./objdump$host_exeext
-elif test x$build = x$host; then
- if test "x$program_prefix" != xNONE; then
- gcc_cv_objdump=${program_prefix}objdump$host_exeext
- else
- gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
- fi
+elif test "x$program_prefix" != xNONE; then
+ gcc_cv_objdump=${program_prefix}objdump$host_exeext
+else
+ gcc_cv_objdump=`echo objdump | sed ${program_transform_name}`$host_exeext
fi
AC_MSG_RESULT($gcc_cv_objdump)