Improve machine name parsing for v850 and SH.
done
fi
+sh4_files="ChangeLog config.bfd archures.c bfd-in2.h cpu-sh.c"
+if ( echo $* | grep keep\-sh4 > /dev/null ) ; then
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Keeping sh4 stuff in $i
+ fi
+ fi
+ done
+else
+ for i in $sh4_files ; do
+ if test ! -d $i && (grep sanitize-sh4 $i > /dev/null) ; then
+ if [ -n "${verbose}" ] ; then
+ echo Removing traces of \"sh4\" from $i...
+ fi
+ cp $i new
+ sed '/start\-sanitize\-sh4/,/end-\sanitize\-sh4/d' < $i > new
+ if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+ if [ -n "${verbose}" ] ; then
+ echo Caching $i in .Recover...
+ fi
+ mv $i .Recover
+ fi
+ mv new $i
+ fi
+ done
+fi
+
tic80_files="ChangeLog Makefile.in Makefile.am archures.c bfd-in2.h config.bfd configure configure.in targets.c coffcode.h coffswap.h"
if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
for i in $tic80_files ; do
+Thu Aug 28 17:01:09 1997 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * cpu-v850.c: Remove "plain" from v850 printable name.
+ (scan): Use strcasecmp.
+
+ * archures.c (bfd_mach_v850): Define.
+
+ * cpu-sh.c (scan_mach): Compare with table instead of hardwired to
+ just sh/SH, use strcasecmp.
+ (arch_info_struct): Add entries for sh3 et.al.
+
+ * archures.c (bfd_mach_sh, ...): Define.
+
Wed Aug 27 17:33:07 1997 Andrew Cagney <cagney@b1.cygnus.com>
* archures.c (bfd_archures_list): Always NULL terminate the list.
.#define bfd_mach_z8002 2
. bfd_arch_h8500, {* Hitachi H8/500 *}
. bfd_arch_sh, {* Hitachi SH *}
+.#define bfd_mach_sh 0
+.#define bfd_mach_sh3 0x30
+.#define bfd_mach_sh3e 0x3e
+. {* start-sanitize-sh4 *}
+.#define bfd_mach_sh4 0x40
+. {* end-sanitize-sh4 *}
. bfd_arch_alpha, {* Dec Alpha *}
. bfd_arch_arm, {* Advanced Risc Machines ARM *}
.#define bfd_mach_arm_2 1
. {* end-sanitize-tic80 *}
. {* start-sanitize-v850 *}
. bfd_arch_v850, {* NEC V850 *}
+.#define bfd_mach_v850 0
. {* start-sanitize-v850e *}
-.#define bfd_mach_v850e 'E'
+.#define bfd_mach_v850e 'E'
. {* end-sanitize-v850e *}
. {* start-sanitize-v850eq *}
.#define bfd_mach_v850eq 'Q'
#define bfd_mach_z8002 2
bfd_arch_h8500, /* Hitachi H8/500 */
bfd_arch_sh, /* Hitachi SH */
+#define bfd_mach_sh 0
+#define bfd_mach_sh3 0x30
+#define bfd_mach_sh3e 0x3e
+ /* start-sanitize-sh4 */
+#define bfd_mach_sh4 0x40
+ /* end-sanitize-sh4 */
bfd_arch_alpha, /* Dec Alpha */
bfd_arch_arm, /* Advanced Risc Machines ARM */
#define bfd_mach_arm_2 1
/* end-sanitize-tic80 */
/* start-sanitize-v850 */
bfd_arch_v850, /* NEC V850 */
+#define bfd_mach_v850 0
/* start-sanitize-v850e */
-#define bfd_mach_v850e 'E'
+#define bfd_mach_v850e 'E'
/* end-sanitize-v850e */
/* start-sanitize-v850eq */
#define bfd_mach_v850eq 'Q'
enum bfd_architecture arch;
/* First test for an exact match */
- if (strcmp (string, info->printable_name) == 0)
+ if (strcasecmp (string, info->printable_name) == 0)
return true;
/* See how much of the supplied string matches with the
8, /* 8 bits in a byte */
bfd_arch_v850,
bfd_mach_v850e,
- "v850e",
+ "v850",
"v850e",
2,
false,
8, /* 8 bits in a byte */
bfd_arch_v850,
bfd_mach_v850eq,
- "v850eq",
+ "v850",
"v850eq",
2,
false,
32, /* 32 bits in an address */
8, /* 8 bits in a byte */
bfd_arch_v850,
- 0, /* only 1 machine */
+ bfd_mach_v850,
+ "v850",
"v850",
- "plain v850",
2,
true, /* the default */
bfd_default_compatible,