Removed v850 sanitization.
authorNick Clifton <nickc@redhat.com>
Wed, 3 Sep 1997 23:06:11 +0000 (23:06 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 3 Sep 1997 23:06:11 +0000 (23:06 +0000)
gas/.Sanitize
gas/ChangeLog
gas/Makefile.am
gas/Makefile.in
gas/config/.Sanitize
gas/configure
gas/configure.in

index 9854571d73d3fe68c8a2419186b1f3bb0f6174eb..1333b2ee9dc16bf568a90f171f480fc5061a4f88 100644 (file)
@@ -168,23 +168,23 @@ else
 fi
 
 
-v850_files="ChangeLog configure.in configure Makefile.am Makefile.in write.c"
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
+v850_files="ChangeLog configure.in configure"
+if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
        for i in $v850_files ; do
-               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Keeping v850 stuff in $i
+                               echo Keeping v850eq stuff in $i
                        fi
                fi
        done
 else
        for i in $v850_files ; do
-               if test ! -d $i && (grep sanitize-v850 $i > /dev/null) ; then
+               if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
                        if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"v850\" from $i...
+                               echo Removing traces of \"v850eq\" from $i...
                        fi
                        cp $i new
-                       sed '/start\-sanitize\-v850/,/end-\sanitize\-v850/d' < $i > new
+                       sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/d' < $i > new
                        if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
                                if [ -n "${verbose}" ] ; then
                                        echo Caching $i in .Recover...
@@ -221,32 +221,6 @@ else
                fi
        done
 fi
-if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
-       for i in $v850_files ; do
-               if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Keeping v850eq stuff in $i
-                       fi
-               fi
-       done
-else
-       for i in $v850_files ; do
-               if test ! -d $i && (grep sanitize-v850eq $i > /dev/null) ; then
-                       if [ -n "${verbose}" ] ; then
-                               echo Removing traces of \"v850eq\" from $i...
-                       fi
-                       cp $i new
-                       sed '/start\-sanitize\-v850eq/,/end-\sanitize\-v850eq/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
 
 r5900_files="ChangeLog"
 if ( echo $* | grep keep\-r5900 > /dev/null ) ; then
index fd3a63de9e079be11d70cda4915fc3156631797e..e9e5ea97e1b8acc3ab30a4a87494d3459a985229 100644 (file)
@@ -26,7 +26,6 @@ Tue Sep  2 15:40:56 1997  Andrew Cagney  <cagney@b1.cygnus.com>
        * config/tc-v850.c (md_assemble): Use opcode->name instead of
        opcode->opcode as the sentinal. Zero is a valid opcode.
 
-start-sanitize-v850
 Tue Aug 26 16:51:14 1997  Ian Lance Taylor  <ian@cygnus.com>
 
        * doc/as.texinfo (Machine Dependencies): Add v850 to menu.
@@ -37,7 +36,6 @@ Tue Aug 26 09:46:22 1997  Nick Clifton  <nickc@cygnus.com>
        * doc/c-v850.texi (V850 Opcodes): Correct name for tiny data area
        pointer. 
 
-end-sanitize-v850
 Tue Aug 26 12:23:25 1997  Ian Lance Taylor  <ian@cygnus.com>
 
        * expr.c (integer_constant): If BFD64, don't make a bignum if the
@@ -56,14 +54,12 @@ Tue Aug 26 12:23:25 1997  Ian Lance Taylor  <ian@cygnus.com>
        for a WORD_PREFIX_OPCODE, change it to ADDR_PREFIX_OPCODE if this
        is jcxz or a loop instruction.
 
-start-sanitize-v850
 Mon Aug 25 16:04:14 1997  Nick Clifton  <nickc@cygnus.com>
 
        * config/tc-v850.c (pre_defined_registers): Add 'hp' as alias for
        r2.
        (md_begin): Set up machine architecture and type.
 
-end-sanitize-v850
 Mon Aug 25 14:25:48 1997  Ian Lance Taylor  <ian@cygnus.com>
 
        * symbols.c (resolve_symbol_value): Store the value back into the
@@ -76,7 +72,6 @@ Mon Aug 25 14:25:48 1997  Ian Lance Taylor  <ian@cygnus.com>
        * subsegs.c (subseg_set_rest): Change 5000 to chunksize when
        calling obstack_begin.
 
-start-sanitize-v850
 Mon Aug 25 11:21:48 1997  Nick Clifton  <nickc@cygnus.com>
 
        * config/tc-v850.c (md_assemble): Restore input_line_pointer upon
@@ -106,20 +101,17 @@ Fri Aug 22 10:45:33 1997  Nick Clifton  <nickc@cygnus.com>
        * config/tc-v850.c (parse_register_list): Add support for curly
        brace syntax.
        (cc_names): Add "e" and "ne" conditions.
-end-sanitize-v850
 
 Thu Aug 21 11:00:36 1997  Nick Clifton  <nickc@cygnus.com>
 
        * app.c (do_scrub_chars): Support a double dash as starting a
        comment that extends to end of line.
 
-start-sanitize-v850
 Thu Aug 21 10:54:27 1997  Nick Clifton  <nickc@cygnus.com>
 
        * config/tc-v850.c (v850_section, v850_bss, v850_offset): New
        functions.
        (md_pseudo_table): New pseudo ops: .bss, .offset, .section
-end-sanitize-v850
 
 Thu Aug 21 00:59:53 1997  Doug Evans  <dje@canuck.cygnus.com>
 
@@ -233,7 +225,6 @@ Fri Aug 15 14:00:13 1997  Ian Lance Taylor  <ian@cygnus.com>
        * ecoff.h (ecoff_generate_asm_line_stab): Don't declare.
        * doc/as.texinfo, doc/as.1: Document --gstabs.
 
-start-sanitize-v850
 Wed Aug 13 18:58:56 1997  Nick Clifton  <nickc@cygnus.com>
 
 start-sanitize-v850e
@@ -258,7 +249,6 @@ start-sanitize-v850e
        
        * config/tc-v850.c (md_assemble): Fix error recovery to reload
        text of entire opcode. 
-end-sanitize-v850
 
 Tue Aug 12 10:27:34 1997  Richard Henderson  <rth@cygnus.com>
 
@@ -352,7 +342,6 @@ Sun Aug  3 23:23:59 1997  Richard Henderson  <rth@cygnus.com>
         * config/tc-alpha.c (s_alpha_ucons): New function.
         (md_pseudo_table): Add unaligned data pseudos for DWARF.
 
-start-sanitize-v850
 Thu Jul 31 15:13:43 1997  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (md_assemble): Ignore the rest of the current
@@ -368,7 +357,6 @@ Tue Jul 29 14:20:43 1997  Jeffrey A Law  (law@cygnus.com)
        * config/tc-v850.c (md_assemble): Turn on fx_no_overflow for
        LO16, HI16 and HI16_S relocs.
 
-end-sanitize-v850
 Mon Jul 28 18:41:41 1997  Rob Savoye  <rob@chinadoll.cygnus.com>
 
         * configure.in: Use CYGWIN and EXEEXT autoconf macro to look for
@@ -421,12 +409,10 @@ Tue Jul 22 13:25:13 1997  Ian Lance Taylor  <ian@cygnus.com>
        * config/tc-m68k.c (md_apply_fix_2): Check for PC relative reloc
        code if BFD_ASSEMBLER.
 
-start-sanitize-v850
 Mon Jul 21 08:57:17 1997  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (system_registers): Fix ordering of registers.
 
-end-sanitize-v850
 start-sanitize-tic80
 Tue Jul 15 16:29:54 1997  Fred Fish  <fnf@cygnus.com>
 
@@ -2273,14 +2259,12 @@ Thu Jan  2 13:37:29 1997  Ian Lance Taylor  <ian@cygnus.com>
        (mips_elf_final_processing): Likewise.
        (ELF_TC_SPECIAL_SECTIONS): Likewise.
 
-start-sanitize-v850
 Tue Dec 31 15:12:35 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * config/tc-v850.c (md_assemble): If this is sst.{h,w} or
        sld.{h,w} and the operand is relocatable, adjust the adend by
        shifting it right one bit.
 
-end-sanitize-v850
 Tue Dec 31 12:56:41 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * read.c (read_a_source_file): Check mri_pending_align after
@@ -2743,7 +2727,6 @@ Wed Oct 30 20:15:35 1996  Ian Lance Taylor  <ian@cygnus.com>
        * doc/internals.texi: Rewrite, and add a lot of documentation.
        * doc/Makefile.in (internals.info): New target.
 
-start-sanitize-v850
 Wed Oct 30 14:55:57 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.h (tc_fix_adjustable): Don't adjust relocs
@@ -2770,7 +2753,6 @@ Tue Oct 29 12:28:16 1996  Jeffrey A Law  (law@cygnus.com)
        operand.  If it does, allocate frag with frag_var and don't
        do any fixups.
 
-end-sanitize-v850
 Mon Oct 28 10:48:40 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
        * config/tc-d10v.h (md_cleanup): New function.  This is needed to
@@ -2785,7 +2767,6 @@ Fri Oct 25 00:01:00 1996  Ian Lance Taylor  <ian@cygnus.com>
        * write.c (fix_new_exp): Use make_expr_symbol to build an
        expression symbol for a complex fixup.
 
-start-sanitize-v850
 Thu Oct 24 14:31:04 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (v850_reloc_prefix): Several disgusting
@@ -2805,13 +2786,11 @@ Thu Oct 24 14:31:04 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.h (tc_fix_adjustable): Don't adjust TDA relocs.
 
-end-sanitize-v850
 Wed Oct 23 18:20:29 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * config/tc-ppc.c (md_apply_fix3): Give a better warning message
        for an unknown relocation type.
 
-start-sanitize-v850
 Wed Oct 23 16:21:28 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (md_pseudo_table): Add .word; allocates
@@ -2822,7 +2801,6 @@ Tue Oct 22 22:01:25 1996  Jeffrey A Law  (law@cygnus.com)
        * config/tc-v850.c (md_assemble): Handle TDAOFF relocs
        differently for movea & sst/sld insns.
 
-end-sanitize-v850
 Tue Oct 22 17:09:32 1996  Michael Meissner  <meissner@tiktok.cygnus.com>
 
        * config/tc-d10v.c (parallel_ok): Don't allow illegal combinations
@@ -2865,7 +2843,6 @@ Thu Oct 17 17:55:17 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * Makefile.in ($(OBJS)): Depend upon libiberty.h.
 
-start-sanitize-v850
 Wed Oct 16 11:28:31 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (v850_reloc_prefix): Recognize zdaoff, tdaoff
@@ -2886,7 +2863,6 @@ Tue Oct 15 23:19:00 1996  Jeffrey A Law  (law@cygnus.com)
        (md_pcrel_from_section): New function.
        * config/tc-v850.h (MD_PCREL_FROM_SECTION): Define.
 
-end-sanitize-v850
 Mon Oct 14 13:59:12 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * config/tc-mips.c (load_register): Add cast to offsetT when using
@@ -3039,13 +3015,11 @@ Tue Oct  1 12:37:48 1996  Ian Lance Taylor  <ian@cygnus.com>
        (alpha_macros): Move to top of file.  Make static.
        (alpha_num_macros): Move to top of file.
 
-start-sanitize-v850
 Tue Oct  1 09:36:19 1996  Stu Grossman  (grossman@critters.cygnus.com)
 
        * tc-v850.h:  Define LOCAL_LABEL to recognise _.L_* symbols
        generated by DWARF.
 
-end-sanitize-v850
 Sat Sep 28 03:38:08 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * listing.c (list_symbol_table): Remove bogus code in BFD64 case,
@@ -3183,7 +3157,6 @@ Tue Sep  3 13:52:56 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
        * config/tc-d10v.c: Added changes to support function
        pointers and "@word" syntax.
 
-start-sanitize-v850
 Tue Sep  3 11:57:18 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c: Remove commented out and #if 0'd code.
@@ -3220,7 +3193,6 @@ Fri Aug 30 18:35:26 1996  J.T. Conklin  <jtc@hippo.cygnus.com>
        (md_apply_fix3): handle fixups/relocs.
        * config/tc-v850.h (MD_PCREL_FROM_SECTION): Removed definition.
        
-end-sanitize-v850
 Fri Aug 30 18:12:00 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        Add SH ELF support.
@@ -3274,7 +3246,6 @@ Fri Aug 30 14:47:38 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
        * config/tc-d10v.c (find_opcode): Fix problem with calculating 
        branch sizes in across sections.
 
-start-sanitize-v850
 Fri Aug 30 00:44:13 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-850.c (md_assemble): Handle hi() correctly.  Handle
@@ -3285,7 +3256,6 @@ Wed Aug 28 23:11:08 1996  Jeffrey A Law  (law@cygnus.com)
        * config/tc-v850.c (md_begin): Deal with end of opcode
        table marker.
 
-end-sanitize-v850
 Wed Aug 28 19:20:04 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
        * config/tc-d10v.c (find_opcode): Fix a bug which could generate
@@ -3335,7 +3305,6 @@ Fri Aug 23 11:40:47 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
        * doc/c-d10v.texi: Fix typo. 
 
-start-sanitize-v850
 Fri Aug 23 10:41:32 1996  Jeffrey A Law  (law@cygnus.com)
 
        * config/tc-v850.c (md_assemble): Correct bit masking for
@@ -3364,7 +3333,6 @@ Fri Aug 23 10:41:32 1996  Jeffrey A Law  (law@cygnus.com)
        opcode doesn't want a register, then we don't have a match.
        (md_assemble): Get size of the instruction from the opcode table.
 
-end-sanitize-v850
 Thu Aug 22 10:20:30 1996  Ian Lance Taylor  <ian@cygnus.com>
 
        * configure.in: Set and substitute HLDENV.
@@ -3380,7 +3348,6 @@ Thu Aug 22 10:50:00 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
        * config/tc-d10v.c: Fix a reloc bug caused by my last change. 
        * doc/c-d10v.texi: Cleanup.
        
-start-sanitize-v850
 Tue Aug 20 15:15:16 1996  J.T. Conklin  <jtc@hippo.cygnus.com>
 
        * config/tc-v850.c: New file.
@@ -3388,7 +3355,6 @@ Tue Aug 20 15:15:16 1996  J.T. Conklin  <jtc@hippo.cygnus.com>
        * configure (v850-*-elf): New target.
        * configure.in (v850-*-elf): New target.
        
-end-sanitize-v850
 Wed Aug 21 15:50:54 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
 
        * doc/c-d10v.texi: New file.
index 547f14655e4c6a9e7e5f1ceb0a13e43c102f0e3f..b1b61c95e10f9fd5178efad1cb96729af38d0820 100644 (file)
@@ -54,6 +54,7 @@ CPU_TYPES = \
        tahoe \
        vax \
        w65 \
+       v850 \
        z8k
 
 # Object format types.  This is only used for dependency information.
@@ -198,6 +199,7 @@ TARGET_CPU_CFILES = \
        config/tc-tahoe.c \
        config/tc-vax.c \
        config/tc-w65.c \
+       config/tc-v850.c \
        config/tc-z8k.c
 
 TARGET_CPU_HFILES = \
@@ -224,6 +226,7 @@ TARGET_CPU_HFILES = \
        config/tc-tahoe.h \
        config/tc-vax.h \
        config/tc-w65.h \
+       config/tc-v850.h \
        config/tc-z8k.h
 
 # OBJ files in config
@@ -391,13 +394,13 @@ check-DEJAGNU: site.exp
        cp site.exp testsuite/site.exp
        rootme=`pwd`; export rootme; \
        srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
-       cd testsuite; \
        EXPECT=${EXPECT} ; export EXPECT ; \
        if [ -f $(top_builddir)/../expect/expect ]; then \
          TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
          export TCL_LIBRARY; \
        fi; \
        runtest=$(RUNTEST); \
+       cd testsuite; \
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
          $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
                $(RUNTESTFLAGS); \
@@ -498,10 +501,12 @@ cgen.o: cgen.c cgen-opc.h subsegs.h \
 
 MOSTLYCLEANFILES = $(STAGESTUFF) core stamp-mk.com \
        testsuite/*.o testsuite/*.out testsuite/gas.log testsuite/gas.sum \
-       testsuite/site.exp
+       testsuite/site.exp site.bak site.exp stage stage1 stage2
 
 CLEANFILES = dep.sed .tcdep .objdep .dep2 .dep1 .depa .dep .depdir
 
+DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-opc.h
+
 .PHONY: install-exec-local install-data-local
 
 install-exec-local: $(noinst_PROGRAMS)
@@ -780,10 +785,6 @@ dep-am: .dep
 
 .PHONY: dep dep-in dep-am
 
-# start-sanitize-arc
-TCDEP_arc_elf = $(INCDIR)/opcode/arc.h
-# end-sanitize-arc
-
 # DO NOT DELETE THIS LINE -- mkdep uses it.
 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
 
@@ -1042,6 +1043,10 @@ TCDEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h subsegs.h \
   $(INCDIR)/obstack.h $(srcdir)/../opcodes/w65-opc.h
+TCDEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h subsegs.h \
+  $(INCDIR)/obstack.h 
 TCDEP_z8k_coff = $(srcdir)/../opcodes/z8k-opc.h $(srcdir)/config/obj-coff.h \
   $(srcdir)/config/tc-z8k.h $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
@@ -1266,6 +1271,10 @@ OBJDEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h subsegs.h \
   $(INCDIR)/obstack.h $(INCDIR)/aout/aout64.h
+OBJDEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h subsegs.h \
+  $(INCDIR)/obstack.h $(INCDIR)/aout/aout64.h
 OBJDEP_z8k_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-z8k.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/obstack.h subsegs.h
@@ -1437,6 +1446,9 @@ DEP_w65_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-w65.h \
 DEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h
+DEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h
 DEP_z8k_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-z8k.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h \
   $(INCDIR)/bfdlink.h
index 37b808a01dd4a40a91d8b98b5e5310e5d97ba603..49302c9c1fc410bfe6885af02a72f426d0d07b37 100644 (file)
@@ -128,6 +128,7 @@ CPU_TYPES = \
        tahoe \
        vax \
        w65 \
+       v850 \
        z8k
 
 # Object format types.  This is only used for dependency information.
@@ -272,6 +273,7 @@ TARGET_CPU_CFILES = \
        config/tc-tahoe.c \
        config/tc-vax.c \
        config/tc-w65.c \
+       config/tc-v850.c \
        config/tc-z8k.c
 
 TARGET_CPU_HFILES = \
@@ -298,6 +300,7 @@ TARGET_CPU_HFILES = \
        config/tc-tahoe.h \
        config/tc-vax.h \
        config/tc-w65.h \
+       config/tc-v850.h \
        config/tc-z8k.h
 
 # OBJ files in config
@@ -455,10 +458,12 @@ itbl_test_LDADD = itbl-test-ops.o itbl-test.o $(GASLIBS) @LEXLIB@
 
 MOSTLYCLEANFILES = $(STAGESTUFF) core stamp-mk.com \
        testsuite/*.o testsuite/*.out testsuite/gas.log testsuite/gas.sum \
-       testsuite/site.exp
+       testsuite/site.exp site.bak site.exp stage stage1 stage2
 
 CLEANFILES = dep.sed .tcdep .objdep .dep2 .dep1 .depa .dep .depdir
 
+DISTCLEANFILES = targ-cpu.h obj-format.h targ-env.h itbl-cpu.h cgen-opc.h
+
 against=stage2
 
 # Automatic dependency computation.  This is a real pain, because the
@@ -468,9 +473,6 @@ against=stage2
 DEP_FILE_DEPS =  $(CFILES) $(HFILES) $(TARGET_CPU_CFILES) \
        $(TARGET_CPU_HFILES) $(OBJ_FORMAT_CFILES) $(OBJ_FORMAT_HFILES)
 
-# start-sanitize-arc
-TCDEP_arc_elf = $(INCDIR)/opcode/arc.h
-
 # IF YOU PUT ANYTHING HERE IT WILL GO AWAY
 TCDEP_a29k_aout = $(srcdir)/config/obj-aout.h $(srcdir)/config/tc-a29k.h \
   $(BFDDIR)/libaout.h $(INCDIR)/bfdlink.h $(INCDIR)/opcode/a29k.h
@@ -688,6 +690,10 @@ TCDEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h subsegs.h \
   $(INCDIR)/obstack.h $(srcdir)/../opcodes/w65-opc.h
+TCDEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h subsegs.h \
+  $(INCDIR)/obstack.h 
 TCDEP_z8k_coff = $(srcdir)/../opcodes/z8k-opc.h $(srcdir)/config/obj-coff.h \
   $(srcdir)/config/tc-z8k.h $(INCDIR)/coff/internal.h \
   $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h $(INCDIR)/bfdlink.h
@@ -912,6 +918,10 @@ OBJDEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h subsegs.h \
   $(INCDIR)/obstack.h $(INCDIR)/aout/aout64.h
+OBJDEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h subsegs.h \
+  $(INCDIR)/obstack.h $(INCDIR)/aout/aout64.h
 OBJDEP_z8k_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-z8k.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/obstack.h subsegs.h
@@ -1083,6 +1093,9 @@ DEP_w65_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-w65.h \
 DEP_w65_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
   $(INCDIR)/bfdlink.h $(srcdir)/config/tc-w65.h
+DEP_v850_elf = $(srcdir)/config/obj-elf.h $(BFDDIR)/elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(srcdir)/config/tc-v850.h
 DEP_z8k_coff = $(srcdir)/config/obj-coff.h $(srcdir)/config/tc-z8k.h \
   $(INCDIR)/coff/internal.h $(INCDIR)/coff/z8k.h $(BFDDIR)/libcoff.h \
   $(INCDIR)/bfdlink.h
@@ -1158,7 +1171,7 @@ config.status: $(srcdir)/configure
 $(srcdir)/configure: @MAINT@$(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
        cd $(srcdir) && $(AUTOCONF)
 
-config.h: stamp-h ; @true
+config.h: stamp-h ; @:
 stamp-h: $(srcdir)/config.in $(top_builddir)/config.status
        cd $(top_builddir) \
          && CONFIG_FILES= CONFIG_HEADERS=config.h:config.in \
@@ -1479,13 +1492,13 @@ check-DEJAGNU: site.exp
        cp site.exp testsuite/site.exp
        rootme=`pwd`; export rootme; \
        srcdir=`cd ${srcdir}; pwd` ; export srcdir ; \
-       cd testsuite; \
        EXPECT=${EXPECT} ; export EXPECT ; \
        if [ -f $(top_builddir)/../expect/expect ]; then \
          TCL_LIBRARY=`cd $(top_srcdir)/../tcl/library && pwd`; \
          export TCL_LIBRARY; \
        fi; \
        runtest=$(RUNTEST); \
+       cd testsuite; \
        if $(SHELL) -c "$$runtest --version" > /dev/null 2>&1; then \
          $$runtest --tool $(DEJATOOL) --srcdir $${srcdir}/testsuite \
                $(RUNTESTFLAGS); \
@@ -1840,7 +1853,6 @@ dep-am: .dep
        $(SHELL) $(srcdir)/../move-if-change tmp-Makefile.am $(srcdir)/Makefile.am
 
 .PHONY: dep dep-in dep-am
-# end-sanitize-arc
 
 # DO NOT DELETE THIS LINE -- mkdep uses it.
 # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
index 9b80bd04f08892c26fb786ba2ebfb5530a289475..5dd99176bf945eeac62fc9795b43e521e5120ff9 100644 (file)
@@ -31,22 +31,6 @@ else
        lose_these_too="${d30v_files} ${lose_these_too}"
 fi
 
-v850_files="tc-v850.c tc-v850.h"
-
-if ( echo $* | grep keep\-v850 > /dev/null ) ; then
-       keep_these_too="${v850_files} ${keep_these_too}"
-else
- if ( echo $* | grep keep\-v850e > /dev/null ) ; then
-       keep_these_too="${v850_files} ${keep_these_too}"
- else
-  if ( echo $* | grep keep\-v850eq > /dev/null ) ; then
-       keep_these_too="${v850_files} ${keep_these_too}"
-  else
-       lose_these_too="${v850_files} ${lose_these_too}"
-  fi
- fi
-fi
-
 tic80_files="tc-tic80.c tc-tic80.h"
 
 if ( echo $* | grep keep\-tic80 > /dev/null ) ; then
@@ -149,6 +133,8 @@ tc-vax.c
 tc-vax.h
 tc-w65.c
 tc-w65.h
+tc-v850.c
+tc-v850.h
 tc-z8k.c
 tc-z8k.h
 te-386bsd.h
index 24a0809675c8aaa9ee315e63fffe1458a98f136f..a75e14054423cb363e7039e9909e8b24cfea1692 100755 (executable)
@@ -1289,6 +1289,7 @@ for this_target in $target $canon_targets ; do
     eval `echo $this_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/cpu=\1 vendor=\2 os=\3/'`
 
     # check for architecture variants
+    endian=
     case ${cpu} in
       armeb)           cpu_type=arm endian=big ;;
       arm*)            cpu_type=arm endian=little ;;
@@ -1312,11 +1313,21 @@ for this_target in $target $canon_targets ; do
 
     if test ${this_target} = $target ; then
       target_cpu_type=${cpu_type}
+      if test x${endian} = xbig; then
+       cat >> confdefs.h <<\EOF
+#define TARGET_BYTES_BIG_ENDIAN 1
+EOF
+
+      elif test x${endian} = xlittle; then
+       cat >> confdefs.h <<\EOF
+#define TARGET_BYTES_BIG_ENDIAN 0
+EOF
+
+      fi
     elif test ${target_cpu_type} != ${cpu_type} ; then
       continue
     fi
 
-    targ=${cpu_type}
     generic_target=${cpu_type}-$vendor-$os
     dev=no
     bfd_gas=no
@@ -1324,10 +1335,10 @@ for this_target in $target $canon_targets ; do
 
     # assign object format
     case ${generic_target} in
-      a29k-*-coff)          fmt=coff targ=ebmon29k ;;
-      a29k-amd-udi)         fmt=coff targ=ebmon29k ;;
-      a29k-amd-ebmon)       fmt=coff targ=ebmon29k ;;
-      a29k-nyu-sym1)        fmt=coff targ=ebmon29k ;;
+      a29k-*-coff)          fmt=coff ;;
+      a29k-amd-udi)         fmt=coff ;;
+      a29k-amd-ebmon)       fmt=coff ;;
+      a29k-nyu-sym1)        fmt=coff ;;
       a29k-*-vxworks*)      fmt=coff ;;
 
       alpha-*-*vms*)       fmt=evax ;;
@@ -1341,16 +1352,11 @@ for this_target in $target $canon_targets ; do
       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
 # end-sanitize-arc
 
-      arm-*-riscix*)       fmt=aout targ=arm-lit em=riscix ;;
-      arm-*-aout)          fmt=aout
-                           case "$endian" in
-                             big)      targ=arm-big ;;
-                             *)        targ=arm-lit ;;
-                           esac
-                           ;;
+      arm-*-riscix*)       fmt=aout em=riscix ;;
+      arm-*-aout)          fmt=aout ;;
       arm-*-coff | thumb-*-coff)           fmt=coff ;;
       arm-*-riscix*)        fmt=aout ;;
-      arm-*-pe)             fmt=coff targ=armcoff em=pe ;;
+      arm-*-pe)             fmt=coff em=pe ;;
 
       d10v-*-*)                    fmt=elf bfd_gas=yes ;;
 # start-sanitize-d30v
@@ -1367,135 +1373,117 @@ for this_target in $target $canon_targets ; do
 
       h8300-*-coff)         fmt=coff ;;
 
-      i386-ibm-aix*)        fmt=coff targ=i386coff
-                            em=i386aix ;;
+      i386-ibm-aix*)        fmt=coff em=i386aix ;;
       i386-sequent-bsd*)    fmt=aout em=dynix bfd_gas=yes ;;
       i386-*-bsd*)          fmt=aout em=386bsd ;;
       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
-      i386-*-linux*coff*)   fmt=coff em=linux
-                            targ=i386coff ;;
+      i386-*-linux*coff*)   fmt=coff em=linux ;;
       i386-*-linux*)        fmt=elf em=linux ;;
-      i386-*-lynxos*)       fmt=coff targ=i386coff
-                            em=lynx ;;
+      i386-*-lynxos*)       fmt=coff em=lynx ;;
       i386-*-sysv4* | i386-*-solaris* | i386-*-elf | i386-*-freebsdelf*)
                            fmt=elf ;;
-      i386-*-sco*elf*)      fmt=elf targ=sco5 ;;
+      i386-*-sco*elf*)      fmt=elf
+                           if test ${this_target} = $target; then
+                               cat >> confdefs.h <<\EOF
+#define SCO_ELF 1
+EOF
+
+                           fi
+                           ;;
       i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
-                           fmt=coff targ=i386coff ;;
+                           fmt=coff ;;
       i386-*-vsta)          fmt=aout ;;
       i386-*-msdosdjgpp* | i386-*-go32*)
-                           fmt=coff targ=coffgo32 em=go32;;
-      i386-*-rtems*)        fmt=coff targ=i386coff ;;
+                           fmt=coff em=go32;;
+      i386-*-rtems*)        fmt=coff ;;
       i386-*-gnu*)          fmt=elf ;;
       i386-*-mach*)
                            fmt=aout em=mach bfd_gas=yes ;;
       i386-*-msdos*)        fmt=aout ;;
       i386-*-moss*)        fmt=elf ;;
-      i386-*-pe)            fmt=coff targ=i386coff em=pe ;;
-      i386-*-cygwin32)      fmt=coff targ=i386coff em=pe bfd_gas=yes ;;
-      i386-*-*nt)           fmt=coff targ=i386coff em=pe ;;
+      i386-*-pe)            fmt=coff em=pe ;;
+      i386-*-cygwin32)      fmt=coff em=pe bfd_gas=yes ;;
+      i386-*-*nt)           fmt=coff em=pe ;;
       i960-*-bout)          fmt=bout ;;
-      i960-*-coff)          fmt=coff em=ic960 targ=ic960coff ;;
-      i960-*-rtems*)        fmt=coff em=ic960 targ=ic960coff ;;
+      i960-*-coff)          fmt=coff em=ic960 ;;
+      i960-*-rtems*)        fmt=coff em=ic960 ;;
       i960-*-nindy*)        fmt=bout ;;
       i960-*-vxworks4*)     fmt=bout ;;
       i960-*-vxworks5.0)    fmt=bout ;;
-      i960-*-vxworks5.*)    fmt=coff em=ic960 targ=ic960coff ;;
+      i960-*-vxworks5.*)    fmt=coff em=ic960 ;;
       i960-*-vxworks*)      fmt=bout ;;
 
       m32r-*-*)                    fmt=elf bfd_gas=yes ;;
 
       m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
                            fmt=aout em=sun3 ;;
-      m68k-motorola-sysv*)  fmt=coff targ=m68kcoff em=delta ;;
-      m68k-bull-sysv3*)     fmt=coff targ=m68kcoff em=dpx2 ;;
-      m68k-apollo-*)        fmt=coff targ=apollo em=apollo ;;
+      m68k-motorola-sysv*)  fmt=coff em=delta ;;
+      m68k-bull-sysv3*)     fmt=coff em=dpx2 ;;
+      m68k-apollo-*)        fmt=coff em=apollo ;;
       m68k-*-sysv4*) # must be before -sysv*
                            fmt=elf em=svr4 ;;
       m68k-*-elf*)         fmt=elf ;;
       m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
-                           fmt=coff targ=m68kcoff ;;
+                           fmt=coff ;;
       m68k-*-hpux*)         fmt=hp300 em=hp300 ;;
       m68k-*-linux*aout*)   fmt=aout em=linux ;;
       m68k-*-linux*)       fmt=elf em=linux ;;
-      m68k-*-lynxos*)       fmt=coff targ=m68kcoff
-                            em=lynx ;;
+      m68k-*-lynxos*)       fmt=coff em=lynx ;;
       m68k-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes ;;
       m68k-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes ;;
-      m68k-apple-aux*)      fmt=coff targ=m68kcoff em=aux ;;
+      m68k-apple-aux*)      fmt=coff em=aux ;;
       m68k-*-psos*)         fmt=elf em=psos;;
 
-      m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;;
-      m88k-*-coff*)         fmt=coff targ=m88kcoff ;;
+      m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
+      m88k-*-coff*)         fmt=coff ;;
 
       # don't change em like *-*-bsd does
-      mips-dec-netbsd*)            fmt=elf targ=mips-lit endian=little ;;
-      mips-dec-openbsd*)    fmt=elf targ=mips-lit endian=little ;;
-      mips-dec-bsd*)        fmt=aout targ=mips-lit ;;
-      mips-sony-bsd*)       fmt=ecoff targ=mips-big ;;
+      mips-dec-netbsd*)            fmt=elf endian=little ;;
+      mips-dec-openbsd*)    fmt=elf endian=little ;;
+      mips-dec-bsd*)        fmt=aout ;;
+      mips-sony-bsd*)       fmt=ecoff ;;
       mips-*-bsd*)          { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;;
-      mips-*-ultrix*)       fmt=ecoff targ=mips-lit endian=little ;;
-      mips-*-osf*)          fmt=ecoff targ=mips-lit endian=little ;;
-      mips-*-ecoff*)        fmt=ecoff 
-                           case "$endian" in
-                           big) targ=mips-big ;;
-                           *)   targ=mips-lit ;;
-                           esac
-                           ;;
-      mips-*-ecoff*)        fmt=ecoff targ=mips-big ;;
-      mips-*-irix6*)       fmt=elf targ=mips-big ;;
-      mips-*-irix5*)        fmt=elf targ=mips-big ;;
-      mips-*-irix*)         fmt=ecoff targ=mips-big ;;
-      mips-*-lnews*)        fmt=ecoff targ=mips-lit em=lnews ;;
-      mips-*-riscos*)       fmt=ecoff targ=mips-big ;;
-      mips-*-sysv*)         fmt=ecoff targ=mips-big ;;
+      mips-*-ultrix*)       fmt=ecoff endian=little ;;
+      mips-*-osf*)          fmt=ecoff endian=little ;;
+      mips-*-ecoff*)        fmt=ecoff ;;
+      mips-*-ecoff*)        fmt=ecoff ;;
+      mips-*-irix6*)       fmt=elf ;;
+      mips-*-irix5*)        fmt=elf ;;
+      mips-*-irix*)         fmt=ecoff ;;
+      mips-*-lnews*)        fmt=ecoff em=lnews ;;
+      mips-*-riscos*)       fmt=ecoff ;;
+      mips-*-sysv*)         fmt=ecoff ;;
       mips-*-elf* | mips-*-rtems* | mips-*-linux* | mips-*-gnu* | mips-*-openbsd*)
-                           fmt=elf 
-                           case "$endian" in
-                           big) targ=mips-big ;;
-                           *)   targ=mips-lit ;;
-                           esac
-                           ;;
+                           fmt=elf ;;
       mn10200-*-*)         fmt=elf bfd_gas=yes ;;
       mn10300-*-*)         fmt=elf bfd_gas=yes ;;
       ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*)
-                           fmt=coff em=pe 
-                           case "$endian" in
-                           big) targ=ppc-big ;;
-                           *)   targ=ppc-lit ;;
-                           esac
-                            ;;
+                           fmt=coff em=pe ;;
       ppc-*-aix*)           fmt=coff ;;
       ppc-*-beos*)          fmt=coff ;;
       ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
-                           fmt=elf
-                           case "$endian" in
-                           big)  targ=ppc-big ;;
-                           *)    targ=ppc-lit ;;
-                           esac
-                           ;;
+                           fmt=elf ;;
       ppc-*-linux*)        fmt=elf
                            case "$endian" in
-                           big)  targ=ppc-big ;;
+                           big)  ;;
                            *)    { echo "configure: error: Linux must be configured big endian" 1>&2; exit 1; } ;;
                            esac
                            ;;
       ppc-*-solaris*)      fmt=elf
-                           case "$endian" in
-                           big)  { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; } ;;
-                           *)    targ=ppc-sol ;;
-                           esac
-                           ;;
-      ppc-*-rtems*)
-                           fmt=elf
-                           case "$endian" in
-                           big)  targ=ppc-big ;;
-                           *)    targ=ppc-lit ;;
-                           esac
+                           if test ${this_target} = $target; then
+                               cat >> confdefs.h <<\EOF
+#define TARGET_SOLARIS_COMMENT 1
+EOF
+
+                           fi
+                           if test x${endian} = xbig; then
+                               { echo "configure: error: Solaris must be configured little endian" 1>&2; exit 1; }
+                           fi
                            ;;
+      ppc-*-rtems*)        fmt=elf ;;
       ppc-*-macos* | ppc-*-mpw*)
                            fmt=coff em=macos ;;
       ppc-*-netware*)       fmt=elf em=ppcnw ;;
@@ -1522,12 +1510,17 @@ for this_target in $target $canon_targets ; do
       sparc-*-openbsd*)     fmt=aout em=nbsd bfd_gas=yes ;;
 
 # start-sanitize-tic80
-      tic80-*-*)           fmt=coff targ=tic80coff;;
+      tic80-*-*)           fmt=coff ;;
 # end-sanitize-tic80
-# start-sanitize-v850
       v850-*-*)                    fmt=elf bfd_gas=yes ;;
-
-# end-sanitize-v850
+# start-sanitize-v850e
+      v850e-*-*)           fmt=elf bfd_gas=yes
+                           target_cpu_type=v850 ;;
+# end-sanitize-v850e
+# start-sanitize-v850eq
+      v850eq-*-*)          fmt=elf bfd_gas=yes
+                           target_cpu_type=v850 ;;
+# end-sanitize-v850eq
       vax-*-bsd* | vax-*-ultrix*)
                            fmt=aout ;;
       vax-*-vms)            fmt=vms ;;
@@ -1641,7 +1634,6 @@ EOF
     if test $this_target = $target ; then
       primary_bfd_gas=$bfd_gas
       obj_format=$fmt
-      gas_target=$targ
       te_file=$em
 
       if test $bfd_gas = no ; then
@@ -1701,14 +1693,6 @@ if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
   { echo "configure: error: GAS does not have support for object file format ${obj_format}" 1>&2; exit 1; }
 fi
 
-# and target makefile frag
-
-target_frag=${srcdir}/config/${gas_target}.mt
-if test ! -r ${target_frag}; then
-  target_frag=/dev/null # ick! but subst_file can't be conditionalized
-fi
-
-
 case ${user_bfd_gas}-${primary_bfd_gas} in
   yes-yes | no-no)
     # We didn't override user's choice.
@@ -1960,7 +1944,7 @@ EOF
 # Extract the first word of "gcc", so it can be a program name with args.
 set dummy gcc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1964: checking for $ac_word" >&5
+echo "configure:1943: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -1989,7 +1973,7 @@ if test -z "$CC"; then
   # Extract the first word of "cc", so it can be a program name with args.
 set dummy cc; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1993: checking for $ac_word" >&5
+echo "configure:1972: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2037,7 +2021,7 @@ fi
 fi
 
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
-echo "configure:2041: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
+echo "configure:2020: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 
 ac_ext=c
 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
@@ -2047,11 +2031,11 @@ ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
 cross_compiling=$ac_cv_prog_cc_cross
 
 cat > conftest.$ac_ext <<EOF
-#line 2051 "configure"
+#line 2030 "configure"
 #include "confdefs.h"
 main(){return(0);}
 EOF
-if { (eval echo configure:2055: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2034: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   ac_cv_prog_cc_works=yes
   # If we can't run a trivial program, we are probably using a cross compiler.
   if (./conftest; exit) 2>/dev/null; then
@@ -2071,12 +2055,12 @@ if test $ac_cv_prog_cc_works = no; then
   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 fi
 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
-echo "configure:2075: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
+echo "configure:2054: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 cross_compiling=$ac_cv_prog_cc_cross
 
 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:2080: checking whether we are using GNU C" >&5
+echo "configure:2059: checking whether we are using GNU C" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2085,7 +2069,7 @@ else
   yes;
 #endif
 EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2089: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:2068: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
   ac_cv_prog_gcc=yes
 else
   ac_cv_prog_gcc=no
@@ -2100,7 +2084,7 @@ if test $ac_cv_prog_gcc = yes; then
   ac_save_CFLAGS="$CFLAGS"
   CFLAGS=
   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:2104: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:2083: checking whether ${CC-cc} accepts -g" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2138,7 +2122,7 @@ fi
 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 # ./install, which can be erroneously created by make from ./install.sh.
 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
-echo "configure:2142: checking for a BSD compatible install" >&5
+echo "configure:2121: checking for a BSD compatible install" >&5
 if test -z "$INSTALL"; then
 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -2193,7 +2177,7 @@ do
 # Extract the first word of "$ac_prog", so it can be a program name with args.
 set dummy $ac_prog; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2197: checking for $ac_word" >&5
+echo "configure:2176: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2225,7 +2209,7 @@ test -n "$YACC" || YACC="yacc"
 # Extract the first word of "flex", so it can be a program name with args.
 set dummy flex; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2229: checking for $ac_word" >&5
+echo "configure:2208: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2258,7 +2242,7 @@ then
   *) ac_lib=l ;;
   esac
   echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
-echo "configure:2262: checking for yywrap in -l$ac_lib" >&5
+echo "configure:2241: checking for yywrap in -l$ac_lib" >&5
 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -2266,7 +2250,7 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-l$ac_lib  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 2270 "configure"
+#line 2249 "configure"
 #include "confdefs.h"
 /* Override any gcc2 internal prototype to avoid an error.  */
 /* We use char because int might match the return type of a gcc2
@@ -2277,7 +2261,7 @@ int main() {
 yywrap()
 ; return 0; }
 EOF
-if { (eval echo configure:2281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2260: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
@@ -2300,7 +2284,7 @@ fi
 fi
 
 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
-echo "configure:2304: checking how to run the C preprocessor" >&5
+echo "configure:2283: checking how to run the C preprocessor" >&5
 # On Suns, sometimes $CPP names a directory.
 if test -n "$CPP" && test -d "$CPP"; then
   CPP=
@@ -2315,13 +2299,13 @@ else
   # On the NeXT, cc -E runs the code through the compiler's parser,
   # not just through cpp.
   cat > conftest.$ac_ext <<EOF
-#line 2319 "configure"
+#line 2298 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2325: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2304: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out`
 if test -z "$ac_err"; then
   :
@@ -2332,13 +2316,13 @@ else
   rm -rf conftest*
   CPP="${CC-cc} -E -traditional-cpp"
   cat > conftest.$ac_ext <<EOF
-#line 2336 "configure"
+#line 2315 "configure"
 #include "confdefs.h"
 #include <assert.h>
 Syntax Error
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2342: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out`
 if test -z "$ac_err"; then
   :
@@ -2361,7 +2345,7 @@ fi
 echo "$ac_t""$CPP" 1>&6
 
 echo $ac_n "checking lex output file root""... $ac_c" 1>&6
-echo "configure:2365: checking lex output file root" >&5
+echo "configure:2344: checking lex output file root" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_lex_root'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2382,7 +2366,7 @@ echo "$ac_t""$ac_cv_prog_lex_root" 1>&6
 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
 
 echo $ac_n "checking whether yytext is a pointer""... $ac_c" 1>&6
-echo "configure:2386: checking whether yytext is a pointer" >&5
+echo "configure:2365: checking whether yytext is a pointer" >&5
 if eval "test \"`echo '$''{'ac_cv_prog_lex_yytext_pointer'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2394,14 +2378,14 @@ echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
 ac_save_LIBS="$LIBS"
 LIBS="$LIBS $LEXLIB"
 cat > conftest.$ac_ext <<EOF
-#line 2398 "configure"
+#line 2377 "configure"
 #include "confdefs.h"
 `cat $LEX_OUTPUT_ROOT.c`
 int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:2405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2384: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   ac_cv_prog_lex_yytext_pointer=yes
 else
@@ -2424,7 +2408,7 @@ fi
 
 
 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
-echo "configure:2428: checking whether to enable maintainer-specific portions of Makefiles" >&5
+echo "configure:2407: checking whether to enable maintainer-specific portions of Makefiles" >&5
     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
 if test "${enable_maintainer_mode+set}" = set; then
   enableval="$enable_maintainer_mode"
@@ -2442,19 +2426,19 @@ fi
   
 
 echo $ac_n "checking for Cygwin32 environment""... $ac_c" 1>&6
-echo "configure:2446: checking for Cygwin32 environment" >&5
+echo "configure:2425: checking for Cygwin32 environment" >&5
 if eval "test \"`echo '$''{'am_cv_cygwin32'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2451 "configure"
+#line 2430 "configure"
 #include "confdefs.h"
 
 int main() {
 int main () { return __CYGWIN32__; }
 ; return 0; }
 EOF
-if { (eval echo configure:2458: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2437: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   am_cv_cygwin32=yes
 else
@@ -2472,7 +2456,7 @@ CYGWIN32=
 test "$am_cv_cygwin32" = yes && CYGWIN32=yes
 
 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:2476: checking for executable suffix" >&5
+echo "configure:2455: checking for executable suffix" >&5
 if eval "test \"`echo '$''{'am_cv_exeext'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2500,17 +2484,17 @@ for ac_hdr in string.h stdlib.h memory.h strings.h unistd.h stdarg.h varargs.h e
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:2504: checking for $ac_hdr" >&5
+echo "configure:2483: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2509 "configure"
+#line 2488 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:2514: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:2493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -2540,7 +2524,7 @@ done
 # Put this here so that autoconf's "cross-compiling" message doesn't confuse
 # people who are not cross-compiling but are compiling cross-assemblers.
 echo $ac_n "checking whether compiling a cross-assembler""... $ac_c" 1>&6
-echo "configure:2544: checking whether compiling a cross-assembler" >&5
+echo "configure:2523: checking whether compiling a cross-assembler" >&5
 if test "${host}" = "${target}"; then
   cross_gas=no
 else
@@ -2555,19 +2539,19 @@ echo "$ac_t""$cross_gas" 1>&6
 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
 # for constant arguments.  Useless!
 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
-echo "configure:2559: checking for working alloca.h" >&5
+echo "configure:2538: checking for working alloca.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2564 "configure"
+#line 2543 "configure"
 #include "confdefs.h"
 #include <alloca.h>
 int main() {
 char *p = alloca(2 * sizeof(int));
 ; return 0; }
 EOF
-if { (eval echo configure:2571: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2550: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   ac_cv_header_alloca_h=yes
 else
@@ -2588,12 +2572,12 @@ EOF
 fi
 
 echo $ac_n "checking for alloca""... $ac_c" 1>&6
-echo "configure:2592: checking for alloca" >&5
+echo "configure:2571: checking for alloca" >&5
 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2597 "configure"
+#line 2576 "configure"
 #include "confdefs.h"
 
 #ifdef __GNUC__
@@ -2616,7 +2600,7 @@ int main() {
 char *p = (char *) alloca(1);
 ; return 0; }
 EOF
-if { (eval echo configure:2620: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   ac_cv_func_alloca_works=yes
 else
@@ -2648,12 +2632,12 @@ EOF
 
 
 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
-echo "configure:2652: checking whether alloca needs Cray hooks" >&5
+echo "configure:2631: checking whether alloca needs Cray hooks" >&5
 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2657 "configure"
+#line 2636 "configure"
 #include "confdefs.h"
 #if defined(CRAY) && ! defined(CRAY2)
 webecray
@@ -2678,12 +2662,12 @@ echo "$ac_t""$ac_cv_os_cray" 1>&6
 if test $ac_cv_os_cray = yes; then
 for ac_func in _getb67 GETB67 getb67; do
   echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2682: checking for $ac_func" >&5
+echo "configure:2661: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2687 "configure"
+#line 2666 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2706,7 +2690,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:2710: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2689: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2733,7 +2717,7 @@ done
 fi
 
 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
-echo "configure:2737: checking stack direction for C alloca" >&5
+echo "configure:2716: checking stack direction for C alloca" >&5
 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -2741,7 +2725,7 @@ else
   ac_cv_c_stack_direction=0
 else
   cat > conftest.$ac_ext <<EOF
-#line 2745 "configure"
+#line 2724 "configure"
 #include "confdefs.h"
 find_stack_direction ()
 {
@@ -2760,7 +2744,7 @@ main ()
   exit (find_stack_direction() < 0);
 }
 EOF
-if { (eval echo configure:2764: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
+if { (eval echo configure:2743: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
 then
   ac_cv_c_stack_direction=1
 else
@@ -2782,21 +2766,21 @@ EOF
 fi
 
 echo $ac_n "checking for inline""... $ac_c" 1>&6
-echo "configure:2786: checking for inline" >&5
+echo "configure:2765: checking for inline" >&5
 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_cv_c_inline=no
 for ac_kw in inline __inline__ __inline; do
   cat > conftest.$ac_ext <<EOF
-#line 2793 "configure"
+#line 2772 "configure"
 #include "confdefs.h"
 
 int main() {
 } $ac_kw foo() {
 ; return 0; }
 EOF
-if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:2779: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_c_inline=$ac_kw; break
 else
@@ -2826,12 +2810,12 @@ esac
 for ac_func in unlink remove
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2830: checking for $ac_func" >&5
+echo "configure:2809: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2835 "configure"
+#line 2814 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2854,7 +2838,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:2858: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2837: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2883,12 +2867,12 @@ done
 for ac_func in sbrk
 do
 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:2887: checking for $ac_func" >&5
+echo "configure:2866: checking for $ac_func" >&5
 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2892 "configure"
+#line 2871 "configure"
 #include "confdefs.h"
 /* System header to define __stub macros and hopefully few prototypes,
     which can conflict with char $ac_func(); below.  */
@@ -2911,7 +2895,7 @@ $ac_func();
 
 ; return 0; }
 EOF
-if { (eval echo configure:2915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2894: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   eval "ac_cv_func_$ac_func=yes"
 else
@@ -2940,12 +2924,12 @@ done
 # enough, but on some of those systems, the assert macro relies on requoting
 # working properly!
 echo $ac_n "checking for working assert macro""... $ac_c" 1>&6
-echo "configure:2944: checking for working assert macro" >&5
+echo "configure:2923: checking for working assert macro" >&5
 if eval "test \"`echo '$''{'gas_cv_assert_ok'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 2949 "configure"
+#line 2928 "configure"
 #include "confdefs.h"
 #include <assert.h>
 #include <stdio.h>
@@ -2961,7 +2945,7 @@ assert (a == b
 
 ; return 0; }
 EOF
-if { (eval echo configure:2965: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:2944: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_assert_ok=yes
 else
@@ -3002,12 +2986,12 @@ gas_test_headers="
 "
 
 echo $ac_n "checking whether declaration is required for strstr""... $ac_c" 1>&6
-echo "configure:3006: checking whether declaration is required for strstr" >&5
+echo "configure:2985: checking whether declaration is required for strstr" >&5
 if eval "test \"`echo '$''{'gas_cv_decl_needed_strstr'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3011 "configure"
+#line 2990 "configure"
 #include "confdefs.h"
 $gas_test_headers
 int main() {
@@ -3018,7 +3002,7 @@ x = (f) strstr;
 
 ; return 0; }
 EOF
-if { (eval echo configure:3022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3001: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_decl_needed_strstr=no
 else
@@ -3039,12 +3023,12 @@ EOF
 
 
 echo $ac_n "checking whether declaration is required for malloc""... $ac_c" 1>&6
-echo "configure:3043: checking whether declaration is required for malloc" >&5
+echo "configure:3022: checking whether declaration is required for malloc" >&5
 if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3048 "configure"
+#line 3027 "configure"
 #include "confdefs.h"
 $gas_test_headers
 int main() {
@@ -3055,7 +3039,7 @@ x = (f) malloc;
 
 ; return 0; }
 EOF
-if { (eval echo configure:3059: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3038: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_decl_needed_malloc=no
 else
@@ -3076,12 +3060,12 @@ EOF
 
 
 echo $ac_n "checking whether declaration is required for free""... $ac_c" 1>&6
-echo "configure:3080: checking whether declaration is required for free" >&5
+echo "configure:3059: checking whether declaration is required for free" >&5
 if eval "test \"`echo '$''{'gas_cv_decl_needed_free'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3085 "configure"
+#line 3064 "configure"
 #include "confdefs.h"
 $gas_test_headers
 int main() {
@@ -3092,7 +3076,7 @@ x = (f) free;
 
 ; return 0; }
 EOF
-if { (eval echo configure:3096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3075: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_decl_needed_free=no
 else
@@ -3113,12 +3097,12 @@ EOF
 
 
 echo $ac_n "checking whether declaration is required for sbrk""... $ac_c" 1>&6
-echo "configure:3117: checking whether declaration is required for sbrk" >&5
+echo "configure:3096: checking whether declaration is required for sbrk" >&5
 if eval "test \"`echo '$''{'gas_cv_decl_needed_sbrk'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3122 "configure"
+#line 3101 "configure"
 #include "confdefs.h"
 $gas_test_headers
 int main() {
@@ -3129,7 +3113,7 @@ x = (f) sbrk;
 
 ; return 0; }
 EOF
-if { (eval echo configure:3133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_decl_needed_sbrk=no
 else
@@ -3153,12 +3137,12 @@ EOF
 # for it?
 
 echo $ac_n "checking whether declaration is required for errno""... $ac_c" 1>&6
-echo "configure:3157: checking whether declaration is required for errno" >&5
+echo "configure:3136: checking whether declaration is required for errno" >&5
 if eval "test \"`echo '$''{'gas_cv_decl_needed_errno'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 3162 "configure"
+#line 3141 "configure"
 #include "confdefs.h"
 
 #ifdef HAVE_ERRNO_H
@@ -3173,7 +3157,7 @@ x = (f) errno;
 
 ; return 0; }
 EOF
-if { (eval echo configure:3177: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
+if { (eval echo configure:3156: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
   rm -rf conftest*
   gas_cv_decl_needed_errno=no
 else
@@ -3357,8 +3341,6 @@ s%@RANLIB@%$RANLIB%g
 s%@LD@%$LD%g
 s%@LN_S@%$LN_S%g
 s%@LIBTOOL@%$LIBTOOL%g
-/@target_frag@/r $target_frag
-s%@target_frag@%%g
 s%@extra_objects@%$extra_objects%g
 s%@target_cpu_type@%$target_cpu_type%g
 s%@obj_format@%$obj_format%g
index fcf5c5cff0dde17f342e81c77306a112fbaf7682..0aab6a58c66007cd2609bdc2e2c4bbe19c688fd4 100644 (file)
@@ -66,6 +66,7 @@ changequote(,)dnl
 changequote([,])dnl
 
     # check for architecture variants
+    endian=
     case ${cpu} in
       armeb)           cpu_type=arm endian=big ;;
       arm*)            cpu_type=arm endian=little ;;
@@ -91,11 +92,15 @@ changequote([,])dnl
 
     if test ${this_target} = $target ; then
       target_cpu_type=${cpu_type}
+      if test x${endian} = xbig; then
+       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 1)
+      elif test x${endian} = xlittle; then
+       AC_DEFINE(TARGET_BYTES_BIG_ENDIAN, 0)
+      fi
     elif test ${target_cpu_type} != ${cpu_type} ; then
       continue
     fi
 
-    targ=${cpu_type}
     generic_target=${cpu_type}-$vendor-$os
     dev=no
     bfd_gas=no
@@ -103,10 +108,10 @@ changequote([,])dnl
 
     # assign object format
     case ${generic_target} in
-      a29k-*-coff)          fmt=coff targ=ebmon29k ;;
-      a29k-amd-udi)         fmt=coff targ=ebmon29k ;;
-      a29k-amd-ebmon)       fmt=coff targ=ebmon29k ;;
-      a29k-nyu-sym1)        fmt=coff targ=ebmon29k ;;
+      a29k-*-coff)          fmt=coff ;;
+      a29k-amd-udi)         fmt=coff ;;
+      a29k-amd-ebmon)       fmt=coff ;;
+      a29k-nyu-sym1)        fmt=coff ;;
       a29k-*-vxworks*)      fmt=coff ;;
 
       alpha-*-*vms*)       fmt=evax ;;
@@ -120,16 +125,11 @@ changequote([,])dnl
       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
 # end-sanitize-arc
 
-      arm-*-riscix*)       fmt=aout targ=arm-lit em=riscix ;;
-      arm-*-aout)          fmt=aout
-                           case "$endian" in
-                             big)      targ=arm-big ;;
-                             *)        targ=arm-lit ;;
-                           esac
-                           ;;
+      arm-*-riscix*)       fmt=aout em=riscix ;;
+      arm-*-aout)          fmt=aout ;;
       arm-*-coff | thumb-*-coff)           fmt=coff ;;
       arm-*-riscix*)        fmt=aout ;;
-      arm-*-pe)             fmt=coff targ=armcoff em=pe ;;
+      arm-*-pe)             fmt=coff em=pe ;;
 
       d10v-*-*)                    fmt=elf bfd_gas=yes ;;
 # start-sanitize-d30v
@@ -146,135 +146,111 @@ changequote([,])dnl
 
       h8300-*-coff)         fmt=coff ;;
 
-      i386-ibm-aix*)        fmt=coff targ=i386coff
-                            em=i386aix ;;
+      i386-ibm-aix*)        fmt=coff em=i386aix ;;
       i386-sequent-bsd*)    fmt=aout em=dynix bfd_gas=yes ;;
       i386-*-bsd*)          fmt=aout em=386bsd ;;
       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
-      i386-*-linux*coff*)   fmt=coff em=linux
-                            targ=i386coff ;;
+      i386-*-linux*coff*)   fmt=coff em=linux ;;
       i386-*-linux*)        fmt=elf em=linux ;;
-      i386-*-lynxos*)       fmt=coff targ=i386coff
-                            em=lynx ;;
+      i386-*-lynxos*)       fmt=coff em=lynx ;;
       i386-*-sysv4* | i386-*-solaris* | i386-*-elf | i386-*-freebsdelf*)
                            fmt=elf ;;
-      i386-*-sco*elf*)      fmt=elf targ=sco5 ;;
+      i386-*-sco*elf*)      fmt=elf
+                           if test ${this_target} = $target; then
+                               AC_DEFINE(SCO_ELF)
+                           fi
+                           ;;
       i386-*-coff | i386-*-sysv* | i386-*-sco* | i386-*-isc*)
-                           fmt=coff targ=i386coff ;;
+                           fmt=coff ;;
       i386-*-vsta)          fmt=aout ;;
       i386-*-msdosdjgpp* | i386-*-go32*)
-                           fmt=coff targ=coffgo32 em=go32;;
-      i386-*-rtems*)        fmt=coff targ=i386coff ;;
+                           fmt=coff em=go32;;
+      i386-*-rtems*)        fmt=coff ;;
       i386-*-gnu*)          fmt=elf ;;
       i386-*-mach*)
                            fmt=aout em=mach bfd_gas=yes ;;
       i386-*-msdos*)        fmt=aout ;;
       i386-*-moss*)        fmt=elf ;;
-      i386-*-pe)            fmt=coff targ=i386coff em=pe ;;
-      i386-*-cygwin32)      fmt=coff targ=i386coff em=pe bfd_gas=yes ;;
-      i386-*-*nt)           fmt=coff targ=i386coff em=pe ;;
+      i386-*-pe)            fmt=coff em=pe ;;
+      i386-*-cygwin32)      fmt=coff em=pe bfd_gas=yes ;;
+      i386-*-*nt)           fmt=coff em=pe ;;
       i960-*-bout)          fmt=bout ;;
-      i960-*-coff)          fmt=coff em=ic960 targ=ic960coff ;;
-      i960-*-rtems*)        fmt=coff em=ic960 targ=ic960coff ;;
+      i960-*-coff)          fmt=coff em=ic960 ;;
+      i960-*-rtems*)        fmt=coff em=ic960 ;;
       i960-*-nindy*)        fmt=bout ;;
       i960-*-vxworks4*)     fmt=bout ;;
       i960-*-vxworks5.0)    fmt=bout ;;
-      i960-*-vxworks5.*)    fmt=coff em=ic960 targ=ic960coff ;;
+      i960-*-vxworks5.*)    fmt=coff em=ic960 ;;
       i960-*-vxworks*)      fmt=bout ;;
 
       m32r-*-*)                    fmt=elf bfd_gas=yes ;;
 
       m68k-*-vxworks* | m68k-ericsson-ose | m68k-*-sunos*)
                            fmt=aout em=sun3 ;;
-      m68k-motorola-sysv*)  fmt=coff targ=m68kcoff em=delta ;;
-      m68k-bull-sysv3*)     fmt=coff targ=m68kcoff em=dpx2 ;;
-      m68k-apollo-*)        fmt=coff targ=apollo em=apollo ;;
+      m68k-motorola-sysv*)  fmt=coff em=delta ;;
+      m68k-bull-sysv3*)     fmt=coff em=dpx2 ;;
+      m68k-apollo-*)        fmt=coff em=apollo ;;
       m68k-*-sysv4*) # must be before -sysv*
                            fmt=elf em=svr4 ;;
       m68k-*-elf*)         fmt=elf ;;
       m68k-*-coff | m68k-*-sysv* | m68k-*-rtems*)
-                           fmt=coff targ=m68kcoff ;;
+                           fmt=coff ;;
       m68k-*-hpux*)         fmt=hp300 em=hp300 ;;
       m68k-*-linux*aout*)   fmt=aout em=linux ;;
       m68k-*-linux*)       fmt=elf em=linux ;;
-      m68k-*-lynxos*)       fmt=coff targ=m68kcoff
-                            em=lynx ;;
+      m68k-*-lynxos*)       fmt=coff em=lynx ;;
       m68k-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes ;;
       m68k-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes ;;
-      m68k-apple-aux*)      fmt=coff targ=m68kcoff em=aux ;;
+      m68k-apple-aux*)      fmt=coff em=aux ;;
       m68k-*-psos*)         fmt=elf em=psos;;
 
-      m88k-motorola-sysv3*) fmt=coff targ=m88kcoff em=delt88 ;;
-      m88k-*-coff*)         fmt=coff targ=m88kcoff ;;
+      m88k-motorola-sysv3*) fmt=coff em=delt88 ;;
+      m88k-*-coff*)         fmt=coff ;;
 
       # don't change em like *-*-bsd does
-      mips-dec-netbsd*)            fmt=elf targ=mips-lit endian=little ;;
-      mips-dec-openbsd*)    fmt=elf targ=mips-lit endian=little ;;
-      mips-dec-bsd*)        fmt=aout targ=mips-lit ;;
-      mips-sony-bsd*)       fmt=ecoff targ=mips-big ;;
+      mips-dec-netbsd*)            fmt=elf endian=little ;;
+      mips-dec-openbsd*)    fmt=elf endian=little ;;
+      mips-dec-bsd*)        fmt=aout ;;
+      mips-sony-bsd*)       fmt=ecoff ;;
       mips-*-bsd*)          AC_MSG_ERROR(Unknown vendor for mips-bsd configuration.) ;;
-      mips-*-ultrix*)       fmt=ecoff targ=mips-lit endian=little ;;
-      mips-*-osf*)          fmt=ecoff targ=mips-lit endian=little ;;
-      mips-*-ecoff*)        fmt=ecoff 
-                           case "$endian" in
-                           big) targ=mips-big ;;
-                           *)   targ=mips-lit ;;
-                           esac
-                           ;;
-      mips-*-ecoff*)        fmt=ecoff targ=mips-big ;;
-      mips-*-irix6*)       fmt=elf targ=mips-big ;;
-      mips-*-irix5*)        fmt=elf targ=mips-big ;;
-      mips-*-irix*)         fmt=ecoff targ=mips-big ;;
-      mips-*-lnews*)        fmt=ecoff targ=mips-lit em=lnews ;;
-      mips-*-riscos*)       fmt=ecoff targ=mips-big ;;
-      mips-*-sysv*)         fmt=ecoff targ=mips-big ;;
+      mips-*-ultrix*)       fmt=ecoff endian=little ;;
+      mips-*-osf*)          fmt=ecoff endian=little ;;
+      mips-*-ecoff*)        fmt=ecoff ;;
+      mips-*-ecoff*)        fmt=ecoff ;;
+      mips-*-irix6*)       fmt=elf ;;
+      mips-*-irix5*)        fmt=elf ;;
+      mips-*-irix*)         fmt=ecoff ;;
+      mips-*-lnews*)        fmt=ecoff em=lnews ;;
+      mips-*-riscos*)       fmt=ecoff ;;
+      mips-*-sysv*)         fmt=ecoff ;;
       mips-*-elf* | mips-*-rtems* | mips-*-linux* | mips-*-gnu* | mips-*-openbsd*)
-                           fmt=elf 
-                           case "$endian" in
-                           big) targ=mips-big ;;
-                           *)   targ=mips-lit ;;
-                           esac
-                           ;;
+                           fmt=elf ;;
       mn10200-*-*)         fmt=elf bfd_gas=yes ;;
       mn10300-*-*)         fmt=elf bfd_gas=yes ;;
       ppc-*-pe | ppc-*-cygwin32 | ppc-*-winnt*)
-                           fmt=coff em=pe 
-                           case "$endian" in
-                           big) targ=ppc-big ;;
-                           *)   targ=ppc-lit ;;
-                           esac
-                            ;;
+                           fmt=coff em=pe ;;
       ppc-*-aix*)           fmt=coff ;;
       ppc-*-beos*)          fmt=coff ;;
       ppc-*-*bsd* | ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*)
-                           fmt=elf
-                           case "$endian" in
-                           big)  targ=ppc-big ;;
-                           *)    targ=ppc-lit ;;
-                           esac
-                           ;;
+                           fmt=elf ;;
       ppc-*-linux*)        fmt=elf
                            case "$endian" in
-                           big)  targ=ppc-big ;;
+                           big)  ;;
                            *)    AC_MSG_ERROR(Linux must be configured big endian) ;;
                            esac
                            ;;
       ppc-*-solaris*)      fmt=elf
-                           case "$endian" in
-                           big)  AC_MSG_ERROR(Solaris must be configured little endian) ;;
-                           *)    targ=ppc-sol ;;
-                           esac
-                           ;;
-      ppc-*-rtems*)
-                           fmt=elf
-                           case "$endian" in
-                           big)  targ=ppc-big ;;
-                           *)    targ=ppc-lit ;;
-                           esac
+                           if test ${this_target} = $target; then
+                               AC_DEFINE(TARGET_SOLARIS_COMMENT)
+                           fi
+                           if test x${endian} = xbig; then
+                               AC_MSG_ERROR(Solaris must be configured little endian)
+                           fi
                            ;;
+      ppc-*-rtems*)        fmt=elf ;;
       ppc-*-macos* | ppc-*-mpw*)
                            fmt=coff em=macos ;;
       ppc-*-netware*)       fmt=elf em=ppcnw ;;
@@ -301,12 +277,16 @@ changequote([,])dnl
       sparc-*-openbsd*)     fmt=aout em=nbsd bfd_gas=yes ;;
 
 # start-sanitize-tic80
-      tic80-*-*)           fmt=coff targ=tic80coff;;
+      tic80-*-*)           fmt=coff ;;
 # end-sanitize-tic80
-# start-sanitize-v850
       v850-*-*)                    fmt=elf bfd_gas=yes ;;
 
-# end-sanitize-v850
+# start-sanitize-v850e
+      v850e-*-*)           fmt=elf bfd_gas=yes ;;
+# end-sanitize-v850e
+# start-sanitize-v850eq
+      v850eq-*-*)          fmt=elf bfd_gas=yes ;;
+# end-sanitize-v850eq
       vax-*-bsd* | vax-*-ultrix*)
                            fmt=aout ;;
       vax-*-vms)            fmt=vms ;;
@@ -411,7 +391,6 @@ changequote([,])dnl
     if test $this_target = $target ; then
       primary_bfd_gas=$bfd_gas
       obj_format=$fmt
-      gas_target=$targ
       te_file=$em
 
       if test $bfd_gas = no ; then
@@ -474,14 +453,6 @@ if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
   AC_MSG_ERROR(GAS does not have support for object file format ${obj_format})
 fi
 
-# and target makefile frag
-
-target_frag=${srcdir}/config/${gas_target}.mt
-if test ! -r ${target_frag}; then
-  target_frag=/dev/null # ick! but subst_file can't be conditionalized
-fi
-AC_SUBST_FILE(target_frag)
-
 case ${user_bfd_gas}-${primary_bfd_gas} in
   yes-yes | no-no)
     # We didn't override user's choice.