public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch] gas/configure.in: Use right string inequality operator and set right file
@ 2000-07-12  9:24 Hans-Peter Nilsson
  2000-07-12 19:12 ` [patch] gas/configure.in: Use right string inequality operatorand " Alan Modra
  0 siblings, 1 reply; 4+ messages in thread
From: Hans-Peter Nilsson @ 2000-07-12  9:24 UTC (permalink / raw)
  To: binutils; +Cc: kk

One bug cancelled the other for a recent change.  An invalid
operator was used for string compare, so te_file was never set
to the wrong value.  Setting te_file to multi would cause
te-multi.h to be referenced, but it does not exist anymore;
te-generic.h is the one to use (identical contents).

An alternative approach would be to delete the whole "if", since
it would never be executed; I'm not really sure why te_file is
set here at all.  Note also that te-tmips.h is effectively the
same as te-generic.h anyway.  A comment from Koundinya or Alan
would be helpful.

Or, Ok to commit?

2000-07-12  Hans-Peter Nilsson  <hp@axis.com>

	* configure.in (DEFAULT_EMULATION setting): Use operator != for
	string inequality test, not -ne.  Set te_file to generic, not
	multi.
	* configure: Regenerate.

Index: configure.in
===================================================================
RCS file: /cvs/src/src/gas/configure.in,v
retrieving revision 1.34
diff -p -c -r1.34 configure.in
*** configure.in	2000/07/09 08:16:21	1.34
--- configure.in	2000/07/12 15:22:33
*************** if test `set . $emfiles ; shift ; echo $
*** 736,744 ****
    case "${obj_format}${emfiles}" in
      multi* | *mips*)
    # if te_file is tmips, that means the target is mips-*-sysv4*MP* and we do
!   # not set it to multi.
!       if [[ $te_file -ne "tmips" ]]; then
!         te_file=multi
        fi
        extra_objects="$extra_objects $emfiles"
        AC_DEFINE(USE_EMULATIONS, 1, [Use emulation support?]) ;;
--- 741,749 ----
    case "${obj_format}${emfiles}" in
      multi* | *mips*)
    # if te_file is tmips, that means the target is mips-*-sysv4*MP* and we do
!   # not set it to generic.
!       if [[ $te_file != "tmips" ]]; then
!         te_file=generic
        fi
        extra_objects="$extra_objects $emfiles"
        AC_DEFINE(USE_EMULATIONS, 1, [Use emulation support?]) ;;

brgds, H-P

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2000-07-13  7:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-12  9:24 [patch] gas/configure.in: Use right string inequality operator and set right file Hans-Peter Nilsson
2000-07-12 19:12 ` [patch] gas/configure.in: Use right string inequality operatorand " Alan Modra
2000-07-13  4:03   ` Hans-Peter Nilsson
2000-07-13  7:56     ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).