From b35711c4d84befa3e743addb26163c42c5c17296 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 25 Mar 1998 19:00:21 +0000 Subject: [PATCH] Wed Mar 25 13:59:24 1998 Andreas Schwab * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha and call bfd_default_set_arch_mach to do the real work. Wed Mar 25 13:59:05 1998 Ian Lance Taylor * evax-alpha.c (evax_close_and_cleanup): Remove unused local variables er and er1. --- bfd/ChangeLog | 8 ++++++++ bfd/evax-alpha.c | 9 +++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 31735fdf8a3..a7be9f9cd4d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +Wed Mar 25 13:59:24 1998 Andreas Schwab + + * evax-alpha.c (evax_set_arch_mach): Only accept bfd_arch_alpha + and call bfd_default_set_arch_mach to do the real work. + Wed Mar 25 10:41:35 1998 Richard Henderson * bout.c (BALX): Include return register g14 as part of the insn. @@ -6,6 +11,9 @@ Wed Mar 25 10:41:35 1998 Richard Henderson Wed Mar 25 11:19:28 1998 Ian Lance Taylor + * evax-alpha.c (evax_close_and_cleanup): Remove unused local + variables er and er1. + * cpu-v850.c: Include . (scan): Case isdigit argument to unsigned char. diff --git a/bfd/evax-alpha.c b/bfd/evax-alpha.c index 8c8a04585db..542901f9a75 100644 --- a/bfd/evax-alpha.c +++ b/bfd/evax-alpha.c @@ -1,5 +1,5 @@ /* evax-alpha.c -- BFD back-end for ALPHA EVAX (openVMS/Alpha) files. - Copyright 1996, 1997 Free Software Foundation, Inc. + Copyright 1996, 1997, 1998 Free Software Foundation, Inc. Written by Klaus K"ampf (kkaempf@progis.de) of proGIS Softwareentwicklung, Aachen, Germany @@ -513,7 +513,6 @@ evax_close_and_cleanup (abfd) { asection *sec; evax_section *es, *es1; - evax_reloc *er, *er1; int i; #if EVAX_DEBUG @@ -1574,9 +1573,11 @@ evax_set_arch_mach (abfd, arch, mach) #if EVAX_DEBUG evax_debug (1, "evax_set_arch_mach(%p, %d, %ld)\n", abfd, arch, mach); #endif - abfd->arch_info = bfd_scan_arch("alpha"); + if (arch != bfd_arch_alpha + && arch != bfd_arch_unknown) + return false; - return true; + return bfd_default_set_arch_mach (abfd, arch, mach); } -- 2.30.2