This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for gdb/configure.in for multiple targ_archs returned from config.bfd


Doing
".../configure --target=powerpc-unknown-eabi && make"
reveals that ${targ_archs} returned from config.bfd can have
multiple *_arch:s.  Compilation fails for gdb/arch-utils.c;
DEFAULT_BFD_ARCH is replaced by two *_arch:s.

Note that ${targ_archs} is not a default single component for
BFD:s needs; gdb needs to select one itself.  Probably the first
one is good enough.

I'm not subscribed to gdb-patches so please CC any comments.
(I'm just a GCC hacker trying to apply
<URL:http://gcc.gnu.org/ml/gcc-bugs/2000-01/msg00347.html> to
add to my virtual build farm.)

gdb/ChangeLog:
Sat Jun 10 17:54:04 2000  Hans-Peter Nilsson  <hp@axis.com>

	* configure.in (targ_archs): Clear out secondary components.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gdb/configure.in,v
retrieving revision 1.35
diff -c -p -r1.35 configure.in
*** configure.in	2000/06/09 03:35:09	1.35
--- configure.in	2000/06/10 16:10:29
*************** dnl use BFD to determine the default arc
*** 80,85 ****
--- 80,89 ----
  dnl (bfd_vec->byteorder provides the latter).
  targ=${target}
  . ${srcdir}/../bfd/config.bfd
+ 
+ dnl We only want the first arch, if there is more than one.
+ targ_archs=`echo ${targ_archs} | sed -e 's/ .*//;'`
+ 
  if test x"${targ_archs}" != x ; then
      AC_DEFINE_UNQUOTED(DEFAULT_BFD_ARCH, ${targ_archs})
  fi

brgds, H-P

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]