binutils-gdb.git
30 years ago * ldlang.c (lang_for_each_statement_worker,
Ian Lance Taylor [Tue, 14 Dec 1993 22:20:35 +0000 (22:20 +0000)]
* ldlang.c (lang_for_each_statement_worker,
lang_for_each_statement): Forgot to use PARAMS.

30 years ago * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
Jeff Law [Tue, 14 Dec 1993 07:36:15 +0000 (07:36 +0000)]
    * elf32-hppa.c (hppa_elf_gen_reloc_type): Handle 'T' field
        selectors for PIC code.

        * som.c (hppa_som_gen_reloc_type): Handle 'T' field selectors.
        (som_write_fixups): Handle R_DLT_REL, R_FSEL, R_RSEL, R_LSEL
        relocations needed by PIC.

30 years ago * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
Jeff Law [Tue, 14 Dec 1993 07:34:37 +0000 (07:34 +0000)]
    * config/tc-hppa.c (md_apply_fix): Do not call hppa_field_adjust
        for any of the 'T' field selectors.

30 years ago Implement support for Chill POWERSETs.
Per Bothner [Tue, 14 Dec 1993 04:32:51 +0000 (04:32 +0000)]
Implement support for Chill POWERSETs.
* ch-exp.y (operand_2):  Implement 'Element IN PowerSet'.
* ch-typeprint.c (chill_type_print_base):  Handle POWERSETs.
* ch-valprint.c (chill_val_print):  Handle TYPE_CODE_SET.
* eval.c (evaluate_subexp):  Implement BINOP_IN.
* expression.h (enum exp_opcode):  Added BINOP_IN.
* gdbtypes.c (create_set_type), gdbtypes.h:  New function.
* stabsread.c (read_type):  If 'S', create a set type.
* valarith.c (value_bit_index, value_in), value.h:  New functions,
for indexing in SETs.

30 years ago * Makefile.in: Added .PHONY targets where appropriate. Added some
Ian Lance Taylor [Mon, 13 Dec 1993 19:46:45 +0000 (19:46 +0000)]
* Makefile.in: Added .PHONY targets where appropriate.  Added some
comments.  Also:
(gcclibdir, version): Removed unused variables.
(DEP): New variable, set to mkdep.
(ALL_CFLAGS): New variable.  Used in .c.o target.
(CFILES, HFILES, GENERATED_CFILES, GENERATED_HFILES): New
variables.
(HEADERS, MANSOURCES, LDCSOURCES, GENERATED_SOURCES,
GENERATED_HEADERS, LDSOURCES, BFD_SOURCES, SOURCES): Removed
mostly obsolete variables.  Adjusted remaining uses.
(DEF_EMUL): Removed variable.
(ldmain.o): Handle undefined EMUL error correctly.
(ldemul-list.h): Depend on config.status rather than Makefile.
Create via temporary file.
(ver960.c, roll, make): Removed obsolete targets.
(.dep, .dep1, dep.sed, dep, dep-in): New targets.  Used to rebuild
dependencies.

30 years agoNew file used for rebuilding dependencies.
Ian Lance Taylor [Mon, 13 Dec 1993 19:37:22 +0000 (19:37 +0000)]
New file used for rebuilding dependencies.

30 years ago * paread.c (pa_symfile_init): Check for the existance of stabs
Fred Fish [Mon, 13 Dec 1993 14:46:21 +0000 (14:46 +0000)]
* paread.c (pa_symfile_init): Check for the existance of stabs
after DBX_TEXT_SECT has been initialized.

30 years agoMore gcc lint.
Ian Lance Taylor [Sun, 12 Dec 1993 00:54:14 +0000 (00:54 +0000)]
More gcc lint.

30 years ago * readline.c (rl_getc): If GO32, trim high bit from getkey,
Steve Chamberlain [Sun, 12 Dec 1993 00:31:44 +0000 (00:31 +0000)]
* readline.c (rl_getc): If GO32, trim high bit from getkey,
otherwise fancy PC keys cause grief.

30 years ago * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
Steve Chamberlain [Sun, 12 Dec 1993 00:08:33 +0000 (00:08 +0000)]
    * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.
* config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
extra frame info now.
* config/sh/sh.h (NOP): Define NOP insn.
* config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.

30 years ago * config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
Steve Chamberlain [Sun, 12 Dec 1993 00:07:12 +0000 (00:07 +0000)]
* config/z8k/tm-z8k.h (BIG): is now sim_z8001_mode.
* config/z8k/z8ksim.mt (TDEPFILES): Add remote-sim.o to list.

30 years ago * config/sh/sh.h (NOP): Define NOP insn.
Steve Chamberlain [Sun, 12 Dec 1993 00:05:54 +0000 (00:05 +0000)]
* config/sh/sh.h (NOP): Define NOP insn.

30 years ago * config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
Steve Chamberlain [Sun, 12 Dec 1993 00:05:25 +0000 (00:05 +0000)]
* config/h8500/tm-h8500.h (REGISTER_BYTES, REGISTER_BYTE,
REGISTER_NAMES): update to new view.  (INIT_EXTRA_FRAME_INFO): No
extra frame info now.

30 years ago * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
Steve Chamberlain [Sun, 12 Dec 1993 00:03:31 +0000 (00:03 +0000)]
    * config/h8300/tm-h8300.h (BREAKPOINT): Insn changed to sleep.
(DECP_PC_AFTER_BREAK): Now is 0.

30 years ago * ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
Steve Chamberlain [Sun, 12 Dec 1993 00:00:53 +0000 (00:00 +0000)]
* ser-go32.c: Lint. (strncasecmp): Removed, now in libiberty.
(go32_readchar): Special handling for faster polling. (async
structure): Volatile.
* h8300-tdep.c (print_register_hook): Allocate and use the right
number bytes for the raw register.
* h8500-tdep.c (regoff, frame_find_saved_reg, examine_prologue):
deleted. (h8500_register_size, h8500_register_virtual_type, ):
Use new way of counting registers.
* remote-e7000.c (echo_index): deleted. (expect): Better handling
of user interrupts. (expect_prompt): Remove never used log file
support. (want, want_nopc): Add support for H8/300H.
(fetch_regs_from_dump): Treat \r and \n as whitespace.
(e7000_drain): Send an "end" command before waiting for output to
stop.  (e7000_wait): Cope with H8/300H, better handling of user
interrupts.  (why_stop, expect_n, sub2_from_pc): New function.
* remote-utils.c (gr_load_image): call fflush and QUIT more regularly.
* utils.c (notice_quit): New function for polling for user interrupts.

30 years ago Made many changes to eliminate gcc warnings. Made various
Ian Lance Taylor [Sat, 11 Dec 1993 22:55:55 +0000 (22:55 +0000)]
Made many changes to eliminate gcc warnings.  Made various
cosmetic changes, declared various things in header files, removed
various extern declarations from .c files.  No substantive
changes.

30 years ago * ldlang.c (lang_process): Ifdef out final call to
Ian Lance Taylor [Sat, 11 Dec 1993 22:46:15 +0000 (22:46 +0000)]
* ldlang.c (lang_process): Ifdef out final call to
lang_size_sections again (reverting change of Nove 2), since it
breaks the Sun4 linker.

30 years ago * config/tc-h8500.c (build_bytes): Get reloc type right for a
Steve Chamberlain [Sat, 11 Dec 1993 19:28:41 +0000 (19:28 +0000)]
* config/tc-h8500.c (build_bytes): Get reloc type right for a
%page operation. (md_assemble): Don't modify input_line_pointer.
(mdcoff_sizemachdep): New function.
* config/tc-h8500.h (TC_COFF_SIZEMACHDEP): New macro.
* config/tc-z8k.c (get_operand): Delete bogus check.

30 years agoRecognise SH.
Steve Chamberlain [Sat, 11 Dec 1993 19:21:19 +0000 (19:21 +0000)]
Recognise SH.

30 years ago * config.sub: Match any flavor of SH.
Steve Chamberlain [Sat, 11 Dec 1993 19:18:41 +0000 (19:18 +0000)]
* config.sub: Match any flavor of SH.

30 years ago * stabsread.c (read_array_type): Allow negative array bounds,
Fred Fish [Sat, 11 Dec 1993 01:27:23 +0000 (01:27 +0000)]
* stabsread.c (read_array_type):  Allow negative array bounds,
without interpreting that to mean "adjustable."
* ch-valprint.c (chill_val_print):  Handle RANGE types.
* ch-typeprint.c (chill_type_print_base):  Handle BOOL.
Handle variant records.  Handle RANGE types.

30 years ago * nlmheader.y (command): Accept MAP and FULLMAP without arguments.
Ian Lance Taylor [Fri, 10 Dec 1993 19:29:10 +0000 (19:29 +0000)]
* nlmheader.y (command): Accept MAP and FULLMAP without arguments.
* nlmconv.c (main): Change error message for MAP and FULLMAP.

30 years ago * nlmconv.c (main): Warn about imported symbols that are not in
Ian Lance Taylor [Fri, 10 Dec 1993 05:51:25 +0000 (05:51 +0000)]
* nlmconv.c (main): Warn about imported symbols that are not in
the IMPORT list even if the IMPORT keyword is not used.

Fixes PR 4006.

30 years ago * nlmconv.c (debug, unlink_on_exit): New static variables.
Ian Lance Taylor [Fri, 10 Dec 1993 05:33:49 +0000 (05:33 +0000)]
* nlmconv.c (debug, unlink_on_exit): New static variables.
(long_options): Add "debug" and "linker".
(main): Handle -d and -l arguments.  Make command line input and
output files optional.  Parse the command file before opening the
BFD's, which requires storing more information in local variables.
If INPUT names multiple files, link them together.  Use OUTPUT for
the output file name if not named on command line.
(show_usage): Changed for new options.
(link_inputs): New function to automatically invoke linker to
handle multiple INPUT files.
(choose_temp_base_try, choose_temp_base, pexecute): New functions,
mostly copied from gcc/gcc.c.
* nlmconv.h (input_files, output_file): Declare.
* nlmheader.y (input_files, output_file): Define.
(command): Support INPUT with a string_list argument.  Support
OUTPUT.
(string_list): Renamed from module_list.
* Makefile.in (nlmconv.o): Define LD_NAME based on
program_transform_name.

Fixes PR 3974.

30 years agooutput-file.c, write.c changes
Ken Raeburn [Thu, 9 Dec 1993 01:13:10 +0000 (01:13 +0000)]
output-file.c, write.c changes

30 years ago(number_to_chars_*): Delete bogus range checks.
Ken Raeburn [Thu, 9 Dec 1993 01:08:37 +0000 (01:08 +0000)]
(number_to_chars_*): Delete bogus range checks.

30 years ago * gas/m68k/disperr.s: New test.
Jeff Law [Wed, 8 Dec 1993 22:32:05 +0000 (22:32 +0000)]
    * gas/m68k/disperr.s: New test.
        * gas/m68k/all.exp: Run it.

30 years ago * nlmheader.y (nlmheader_identify): New function. Use it to print
Ian Lance Taylor [Wed, 8 Dec 1993 18:10:11 +0000 (18:10 +0000)]
* nlmheader.y (nlmheader_identify): New function.  Use it to print
the program name just once, instead of with every error message.

Fixes PR 3973.

30 years agoChange remite-e7000.c to remote-e7000.c.
Ian Lance Taylor [Wed, 8 Dec 1993 05:53:58 +0000 (05:53 +0000)]
Change remite-e7000.c to remote-e7000.c.

30 years agoTypo
Ian Lance Taylor [Wed, 8 Dec 1993 05:08:04 +0000 (05:08 +0000)]
Typo

30 years ago * config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
Ian Lance Taylor [Wed, 8 Dec 1993 05:06:48 +0000 (05:06 +0000)]
* config/mips/idt.mt: Use tm-idt.h instead of tm-bigmips.h.
* config/mips/idtl.mt: Use tm-idtl.h instead of tm-mips.h.
* config/mipos/tm-idt.h, config/mips/tm-idtl.h: New files; use
different BREAKPOINT value for IDT.

30 years agoTue Dec 7 16:02:53 1993 Steve Chamberlain (sac@jonny.cygnus.com)
Steve Chamberlain [Wed, 8 Dec 1993 00:12:02 +0000 (00:12 +0000)]
Tue Dec  7 16:02:53 1993  Steve Chamberlain  (sac@jonny.cygnus.com)

* config/tc-sh.c (md_convert_frag): Truncate disps before calling
md_number_to_chars.  (md_assemble): Don't modify
input_line_pointer.

30 years ago * nlmcode.h: Fixes to avoid compiler warnings...
Stu Grossman [Tue, 7 Dec 1993 23:49:32 +0000 (23:49 +0000)]
* nlmcode.h:  Fixes to avoid compiler warnings...

30 years ago * mipsread.c: Include bfd.h and coff/sym.h.
Ian Lance Taylor [Tue, 7 Dec 1993 23:42:56 +0000 (23:42 +0000)]
* mipsread.c: Include bfd.h and coff/sym.h.

30 years ago * libnlm.h (nlm_backend_data): Removed macro definition.
Ian Lance Taylor [Tue, 7 Dec 1993 23:13:43 +0000 (23:13 +0000)]
* libnlm.h (nlm_backend_data): Removed macro definition.
(nlm_alpha_backend_data): Adjusted accordingly.

30 years agoset the other three terminal state pieces for systems that HAVE_SGTTY
K. Richard Pixley [Tue, 7 Dec 1993 00:41:42 +0000 (00:41 +0000)]
set the other three terminal state pieces for systems that HAVE_SGTTY

30 years ago * nlmconv.c (long_options): Changed --header-info to --header-file
Ian Lance Taylor [Mon, 6 Dec 1993 21:12:48 +0000 (21:12 +0000)]
* nlmconv.c (long_options): Changed --header-info to --header-file
to match documentation and usage message.

30 years ago* config/tc-h8300.c (md_assemble): Don't update input_line_pointer.
David Edelsohn [Mon, 6 Dec 1993 19:50:09 +0000 (19:50 +0000)]
* config/tc-h8300.c (md_assemble): Don't update input_line_pointer.

30 years ago * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
Jeff Law [Mon, 6 Dec 1993 19:21:51 +0000 (19:21 +0000)]
    * config/obj-som.[ch] (obj_read_begin_hook): Remove last change.
        Breaks with the HP compilers.

        * config/tc-hppa.c (struct call_info): Remove fields which were
        set but never used.  Remove all code which sets those fields.
        (struct subspace_dictionary_chain): Likewise.
        (struct space_dictionary_chain): Likewise.
        (pa_desc): Delete useless function.  Delete all references.
        (hppa_tc_make_sections): No need to count the number of symbols for
        the symbol extension section.

30 years ago * configure.in: Recognize mips* for all mips targets.
Ian Lance Taylor [Mon, 6 Dec 1993 18:34:07 +0000 (18:34 +0000)]
* configure.in: Recognize mips* for all mips targets.
(mips*el-*-elf*, mips*-*-elf*): New targets; use idt and idtl.

30 years ago Added Irix 5 support.
Ian Lance Taylor [Mon, 6 Dec 1993 17:31:05 +0000 (17:31 +0000)]
Added Irix 5 support.
* configure.in (mips-sgi-irix5*): New host and target.  Use irix5
for both.
* config/mips/irix5.mh, config/mips/irix5.mt,
config/mips/xm-irix5.h, config/mips/nm-irix5.h,
config/mips/tm-irix5.h, irix5-nat.c: New files for Irix 5 support.
* mdebugread.c: New file, split out of mipsread.c.  Added
elfmdebug_build_psymtabs routine.  Added some checks on external
symbols.  Changed code to keep ecoff_debug_info and
ecoff_debug_swap structs in the psymtab and in global pointers
rather than retrieving them from the bfd.  Also changed to keep
the pending list with the psymtab rather than the objfile (each
psymtab for a single objfile points to the same pending list).
* mipsread.c: Bulk of file moved into mdebugread.c, leaving just
the sym_fns.
* Makefile.in (SFILES): Added mdebugread.c.
(OBS): Added mdebugread.o.
(mdebugread.o): New target.
* symfile.h: Declare mdebug_build_psymtabs and
elfmdebug_build_psymtabs.
* elfread.c (struct elfinfo): Added mdebugsect field.
(elf_locate_sections): Remember location of .mdebug section.
(elf_symfile_read): Call elfmdebug_build_psymtabs on .mdebug
section.
* infrun.c (AT_FUNCTION_START): Set to 0 if not already defined.
(wait_for_inferior): Use AT_FUNCTION_START if it is defined to see
if PC is at the start of a function.
* mips-tdep.c (read_next_frame_reg): Use SIGFRAME_REG_SIZE, and
give it a default definition.
(mips_skip_prologue): Skip instructions which initialize $gp
register.
(in_sigtramp): New procedure, moved in from mipsread.c.
* config/mips/tm-mips.h: Declare in_sigtramp.

30 years ago * serial.h (serial_fdopen): Make parameter const to match
Ian Lance Taylor [Mon, 6 Dec 1993 17:18:06 +0000 (17:18 +0000)]
* serial.h (serial_fdopen): Make parameter const to match
function definition.

30 years agoNew files for Irix 5 support.
Ian Lance Taylor [Mon, 6 Dec 1993 17:12:23 +0000 (17:12 +0000)]
New files for Irix 5 support.

30 years ago * config/obj-som.c (obj_som_version): Pass version string to
Jeff Law [Mon, 6 Dec 1993 08:55:06 +0000 (08:55 +0000)]
    * config/obj-som.c (obj_som_version): Pass version string to
        SOM BFD backend.
        (obj_som_copyright): New function.  Much like obj_som_version.

        * config/tc-hppa.c (obj_copyright): Define as appropriate for
        SOM and ELF.
        (pa_copyright): Just a stub now.

30 years ago * som.c (som_begin_writing): Flesh out code for handling simple
Jeff Law [Mon, 6 Dec 1993 08:53:53 +0000 (08:53 +0000)]
    * som.c (som_begin_writing): Flesh out code for handling simple
        auxiliary headers.
        (bfd_som_attach_aux_hdr): New function.

        * som.h (struct somdata): Add fields for attaching version and
        copyright headers.  Add accessor macros.

30 years ago * config/obj-som.c (obj_read_begin_hook): Delete unused function.
Jeff Law [Mon, 6 Dec 1993 07:19:13 +0000 (07:19 +0000)]
    * config/obj-som.c (obj_read_begin_hook): Delete unused function.
        * config/obj-som.h (obj_read_begin_hook): Provide dummy definition.
        (TARGET_SYMBOL_FIELDS): Delete.  SOM isn't making use of them.

30 years agoUnsnarl xref for h8 config (while making sure it still works for "all" config)
Roland Pesch [Mon, 6 Dec 1993 07:14:16 +0000 (07:14 +0000)]
Unsnarl xref for h8 config (while making sure it still works for "all" config)

30 years ago * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected
Jeff Law [Mon, 6 Dec 1993 06:55:48 +0000 (06:55 +0000)]
    * som.c (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Add protected
        definitions for old versions of HPUX which fail to define them.
        (som_hppa_howto_talbe): Add R_DLT_REL, R_AUX_UNWIND, and R_SEC_STMT
        now that they're safe.  Delete bogus R_STATEMENT relocations.

30 years ago * som.c (som_hppa_howto_table): Add missing R_END_TRY. Delete
Jeff Law [Mon, 6 Dec 1993 03:33:06 +0000 (03:33 +0000)]
    * som.c (som_hppa_howto_table): Add missing R_END_TRY.  Delete
        extra R_DATA_OVERRIDE.
        (hppa_som_gen_reloc_type): Generate a relocation for the rounding
        mode selector if needed.
        (som_write_fixups): Handle requests for a change in the default
        rounding mode.  Rounding modes do not consume input bytes, but
        are just markers much like R_ENTRY and R_EXIT.

30 years ago * gas/hppa/reloc/roundmode.s: New test.
Jeff Law [Mon, 6 Dec 1993 03:26:33 +0000 (03:26 +0000)]
    * gas/hppa/reloc/roundmode.s: New test.
        * gas/hppa/reloc/reloc.exp: Run it.  Fix typo in last change.

30 years ago * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
Jeff Law [Mon, 6 Dec 1993 03:24:49 +0000 (03:24 +0000)]
    * config/tc-hppa.c (tc_gen_reloc, SOM version): Handle relocation
        expansion due to rounding mode selectors.  Handle R_[RDSN]_MODE
        relocations for selecting the current rounding mode.

30 years ago * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
Jeff Law [Mon, 6 Dec 1993 01:07:03 +0000 (01:07 +0000)]
    * config/tc-hppa.c (evaluate_absolute): Support e_rrsel and
        e_rlsel field selectors.

30 years ago * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
Jeff Law [Sun, 5 Dec 1993 09:32:06 +0000 (09:32 +0000)]
    * objdump.c (dump_relocs): Avoid dereferencing a NULL sym_ptr_ptr
        in a relocation.

30 years ago * elf32-hppa.c: (elf_hppa_howto_table): PLABEL and DLT
Jeff Law [Sun, 5 Dec 1993 03:46:12 +0000 (03:46 +0000)]
    * elf32-hppa.c: (elf_hppa_howto_table):  PLABEL and DLT
        relocations are not pc-relative.

30 years ago Fri Dec 3 09:55:17 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
Jeff Law [Sun, 5 Dec 1993 03:41:25 +0000 (03:41 +0000)]
    Fri Dec  3 09:55:17 1993  Pete Hoogenboom  (hoogen@cs.utah.edu)

        * hppa_stubs.h: (BLE_N_XXX_0_31):  New instruction used in
        linker stub code.
        (COPY_2_31):  Likewise.

30 years agoFix a few typos.
John Gilmore [Sat, 4 Dec 1993 03:13:48 +0000 (03:13 +0000)]
Fix a few typos.

30 years ago * config/solaris2.mh (HDEFINES): Remove -Dconst=
Ian Lance Taylor [Fri, 3 Dec 1993 23:42:59 +0000 (23:42 +0000)]
* config/solaris2.mh (HDEFINES): Remove -Dconst=
* hosts/solaris.h: If not __GNUC__, define const as empty.

30 years ago * config/mips/irix4.mh: Enable ser-tcp.o.
Stu Grossman [Fri, 3 Dec 1993 22:22:05 +0000 (22:22 +0000)]
* config/mips/irix4.mh:  Enable ser-tcp.o.

30 years ago Fri Dec 3 09:47:30 1993 Pete Hoogenboom (hoogen@cs.utah.edu)
Jeff Law [Fri, 3 Dec 1993 19:20:30 +0000 (19:20 +0000)]
    Fri Dec  3 09:47:30 1993  Pete Hoogenboom  (hoogen@cs.utah.edu)

        * tc-hppa.c: (tc_gen_reloc): Addend for a plabel relocation should
        be either 0 or 2 (no static link or static link required).  Always
        assume no static link.

30 years ago * config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
Jeff Law [Fri, 3 Dec 1993 18:57:28 +0000 (18:57 +0000)]
* config/tc-hppa.c (md_apply_fix): Delete old wrapper function.
(md_apply_fix_1): Rename to md_apply_fix.  Fix argument decls.
Fix comments in various places.  Always return a value.
Avoid dereferencing a NULL fx_addsy.
(hppa_force_relocation): Avoid dereferencing a NULL fx_addsy.

30 years ago * config/unix.exp: Add global before seeing if the variables for
Rob Savoye [Fri, 3 Dec 1993 04:07:15 +0000 (04:07 +0000)]
* config/unix.exp: Add global before seeing if the variables for
nm, objdump, and size exist.

30 years ago * Makefile.in: Remove some stuff from the site.exp file.
Rob Savoye [Fri, 3 Dec 1993 04:06:44 +0000 (04:06 +0000)]
    * Makefile.in: Remove some stuff from the site.exp file.
        * config/unix.exp: Add global before seeing if the variables for
        nm, objdump, and size exist.

30 years agoDeleted RCS crap, since it frequently seems to wind up being the only
Ken Raeburn [Fri, 3 Dec 1993 03:12:35 +0000 (03:12 +0000)]
Deleted RCS crap, since it frequently seems to wind up being the only
thing "changed", and somehow cvs thinks the file has really been modified.

30 years agoLots of changes for:
Ken Raeburn [Fri, 3 Dec 1993 03:10:08 +0000 (03:10 +0000)]
Lots of changes for:
 - sparc[lite]-coff as well as sparc-lynx
 - producing coff (including debug info) under BFD_ASSEMBLER option
 - cleanup of cpu-specific code in non-cpu-specific files
   (especially write.c)
 - providing common code to avoid duplication in cpu-specific files
   (specifically, md_number_to_chars)
 - stylistic changes & misc cleanup

================

* config/tc-sparc.c (tc_gen_reloc): Make adjustment to addend be dependent on
howto fields, not on format flavour.

* struc-symbol.h (struct symbol): New fields sy_obj and sy_tc, defined as types
OBJ_SYMFIELD_TYPE and TC_SYMFIELD_TYPE, if those macros are defined.
* config/obj-coff.h (TC_SYMFIELD_TYPE, OBJ_SYMFIELD_TYPE): Define.
(TARGET_SYMBOL_FIELDS, I960_SYM_FIELDS): Don't define.
(sy_tc, sy_obj): Define so that the fields look like they used to, until all
references get changed.

* write.c (fixup_segment): Lots of variables no longer register.  Reordered
some code for easier reading.
* config/obj-coff.c (obj_coff_dim): dim_index no longer register.  Deleted
superfluous return statement.
(obj_coff_line, obj_coff_size, obj_coff_scl, obj_coff_type, obj_coff_val,
tag_init, tag_insert): Deleted superfluous return statement.
(align, obj_coff_section): Deleted debugging printfs.
* config/tc-i386.c (md_assemble): Discard some register decls.  Use assignment
rather than memcpy to copy template.
(op_hash, reg_hash, prefix_hash): Default C initialization of statics is
sufficient.
* config/tc-sparc.c (print_insn): Array Reloc is now const, and points to
const.

* config/obj-coff.h (TARGET_FORMAT): Only use coff-sparc-lynx if TE_LYNX; use
coff-sparc otherwise.
[USE_NATIVE_HEADERS]: Delete this code; it isn't used.

* write.c (fixup_segment): Call TC_VALIDATE_FIX, if defined, before processing
a fixup.  Call TC_ADJUST_RELOC_COUNT just before returning.  Remove some
i960-coff-specific code.
(TC_ADJUST_RELOC_COUNT): Default to doing nothing.
* config/tc-i960.h (TC_ADJUST_RELOC_COUNT) [OBJ_COFF]: Define.
(i960_validate_fix): Declare.
(TC_VALIDATE_FIX): Define.
* config/tc-i960.c (i960_validate_fix): New function.

* write.c (number_to_chars_littleendian): New function.  Write out bytes in
little endian order, doing size and range checking.
(number_to_chars_bigendian): New function, similar.
* write.h: Declare them.
* config/tc-*.c (md_number_to_chars): Use them.
* config/tc-vax.c (md_apply_fix): Ditto.
* config/tc-i386.c (md_apply_fix): Ditto.

* config/obj-coff.c: Rearranged code for handling line number data.
(line_fsym): Renamed from function_lineoff in BFD_ASSEMBLER case, since the
usage is different from non-BFD_ASSEMBLER case.
(in_function, clear_function, set_function): New macros, to combine some of the
functionality implemented in differnet ways in BFD_ASSEMBLER and non-... code.
Used in other functions that used to check function_lineoff &c.
(obj_emit_lineno): Split into two copies, one for BFD_ASSEMBLER, one for not.
Non-BFD_ASSEMBLER version now has temporary variable to contain char* pointer
pointed to by char** argument.  Always follow CROSS_COMPILE code; easier to
read that way.
(obj_coff_ln): Don't call add_lineno or c_line_new if appline is set.
(obj_coff_endef) [BFD_ASSEMBLER]: Don't do anything special for ".bf", it's
been done elsewhere.
(coff_frob_symbol): If ilne number data is pending, call add_linesym to flush it.
(coff_frob_file): Don't do that here.
* config/obj-coff.h (coff_frob_file): Declare.
(obj_frob_file): Define, to call it.

* config/tc-sparc.h (md_create_short_jump, md_create_long_jump,
md_estimate_size_before_relax: Define them as macros calling as_fatal.
* config/tc-sparc.c: Don't define them as functions.

30 years ago * ecoff.c: Added various casts for 32/64 bit cross targeting.
Ian Lance Taylor [Thu, 2 Dec 1993 23:27:15 +0000 (23:27 +0000)]
* ecoff.c: Added various casts for 32/64 bit cross targeting.
(ecoff_mkobject_hook): Set SEC_SHARED_LIBRARY for the .reginfo
section so that the linker ignores it.
* ecofflink.c: Added various casts for 32/64 bit cross targeting.
(ecoff_add_bytes): Changed need argument to size_t.
(bfd_ecoff_debug_link_other): Check return value of
ecoff_add_string.

30 years agoSince newlib claims not to support the alpha, don't try to configure newlib
Ken Raeburn [Thu, 2 Dec 1993 22:19:44 +0000 (22:19 +0000)]
Since newlib claims not to support the alpha, don't try to configure newlib
for an alpha target.

30 years ago * libnlm.h (struct nlm_obj_tdata): New field backend_data.
Ian Lance Taylor [Thu, 2 Dec 1993 20:52:25 +0000 (20:52 +0000)]
* libnlm.h (struct nlm_obj_tdata): New field backend_data.
(nlm_backend_data, nlm_alpha_backend_data): New accessor macros.
(struct nlm_backend_data): New field no_uninitialized_data.
(nlm_no_uninitialized_data): New accessor macro.
* nlmcode.h (nlm_compute_section_file_positions): Handle
no_uninitialized_data.
(nlm_external_reloc_compare): Sort relocs by address for a
particular symbol, to make the sort more stable.
(nlm_write_object_contents): Cast the arguments to qsort.  Get the
value of a debugging symbol the same way we get the value of a
normal symbol.
* nlm32-alpha.c: Various changes.  Write out GP and .lita relocs.
Set no_uninitialized_data to true.
* nlm32-i386.c (nlm32_i386_backend), nlm32-sparc.c
(nlm32_sparc_backend): Set no_uninitialized_data field false.
* nlmswap.h (nlm_swap_fixed_header_out): Zero out destination
before filling it in.

30 years ago * configure.in: Don't build ld for Irix 5. Don't build gas,
Ian Lance Taylor [Thu, 2 Dec 1993 19:41:14 +0000 (19:41 +0000)]
* configure.in: Don't build ld for Irix 5.  Don't build gas,
libg++ or libio for any Alpha target.

30 years ago * configure.in (mips*-sgi-irix5*): New target; use mh-irix5.
Ian Lance Taylor [Thu, 2 Dec 1993 19:37:34 +0000 (19:37 +0000)]
* configure.in (mips*-sgi-irix5*): New target; use mh-irix5.

30 years agoNew file for Irix 5 host support.
Ian Lance Taylor [Thu, 2 Dec 1993 19:35:47 +0000 (19:35 +0000)]
New file for Irix 5 host support.

30 years agoNew file for Alpha NetWare. External structure information.
Ian Lance Taylor [Thu, 2 Dec 1993 19:13:59 +0000 (19:13 +0000)]
New file for Alpha NetWare.  External structure information.

30 years ago * Makefile (clean): Depend on clean-here.
Jeff Law [Thu, 2 Dec 1993 07:37:51 +0000 (07:37 +0000)]
    * Makefile (clean): Depend on clean-here.

30 years ago * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
Jeff Law [Thu, 2 Dec 1993 05:55:34 +0000 (05:55 +0000)]
    * gdb.disasm/hppa.exp (all_fpu_memory_tests): Test FP quadword
        stores.
        * gdb.disasm/hppa.s (fpu_memory_indexing_tests): Add FP quadword
        stores.
        (fpu_short_memory_tests): Likewise.

30 years ago * som.c (som_section_type, som_decode_symcalss): New functions.
Jeff Law [Thu, 2 Dec 1993 05:48:46 +0000 (05:48 +0000)]
    * som.c (som_section_type, som_decode_symcalss): New functions.
        (som_get_symbol_info): Use them.
        (som_slurp_symbol_table): Set the section of common and undefined
        symbols correctly.

30 years agoVarious entries.
Ian Lance Taylor [Thu, 2 Dec 1993 02:22:59 +0000 (02:22 +0000)]
Various entries.

30 years ago * libnlm.h (struct nlm_backend_data): New fields
Ian Lance Taylor [Thu, 2 Dec 1993 02:22:35 +0000 (02:22 +0000)]
* libnlm.h (struct nlm_backend_data): New fields
optional_prefix_size, nlm_backend_object_p, nlm_write_prefix,
nlm_set_public_section, nlm_get_public_offset.  Removed unused
nlm_write_reloc field.  Changed nlm_write_import to remove
unnecessary symbol argument.  Renamed nlm_write_externals to
nlm_write_external, and changed cound argument from bfd_vma to
bfd_size_type.
(nlm_optional_prefix_size, nlm_backend_object_p_func,
nlm_write_prefix_func, nlm_set_public_section_func,
nlm_get_public_offset_func): New accessor macros.
(nlm_write_reloc_func): Removed.
(nlm_write_external_func): Adjusted for field renaming.
* nlm32-i386.c (nlm_i386_write_import): Renamed from
nlm_i386_write_reloc.  Removed old nlm_i386_write_import which
just called old nlm_i386_write_reloc.
(nlm_i386_write_external): Renamed from nlm_i386_write_externals.
Declared.  Changed second argument from bfd_vma to bfd_size_type.
(nlm32_i386_backend): Adjusted for changes to fields and names.
* nlm32-sparc.c (nlm_sparc_mangle_relocs): Removed unused,
ifdeffed out code.
(nlm_sparc_write_import): Removed second argument.
(nlm_sparc_write_external): Renamed from
nlm_sparc_write_externals.  Changed second argument from bfd_vma
to bfd_size_type.
(nlm32_sparc_backend): Adjusted for changes to fields and names.
* nlmcode.h: Removed some unused code.
(nlm_object_p): Don't destroy tdata pointer.  Call
backend_object_p function if it exists.
(nlm_slurp_symbol_table): Removed unused variable rcount.  Call
set_public_section_func if it exists instead of checking
NLM_HIBIT.
(nlm_compute_section_file_positions): Account for
optional_prefix_size.
(nlm_write_object_contents): Account for optional_prefix_size.
Removed useless variable write_reloc_func.  Changed declaration
and call of write_import_func.  Call write_prefix_func if it
exists.  Removed unused variables len and temp.  Call
get_public_offset_func if it exists rather than setting NLM_HIBIT.

30 years ago * nlmswap.h: Declare functions.
Ian Lance Taylor [Thu, 2 Dec 1993 02:19:25 +0000 (02:19 +0000)]
* nlmswap.h: Declare functions.

30 years agoNew files for preliminary Alpha NetWare support.
Ian Lance Taylor [Thu, 2 Dec 1993 01:46:53 +0000 (01:46 +0000)]
New files for preliminary Alpha NetWare support.

30 years agoRemove unused declaration from nlmconv.c. Add ChangeLog entry for
Ian Lance Taylor [Thu, 2 Dec 1993 01:05:45 +0000 (01:05 +0000)]
Remove unused declaration from nlmconv.c.  Add ChangeLog entry for
Sean's change.

30 years agoRestore changes clobbered by Sean's check in.
Ian Lance Taylor [Thu, 2 Dec 1993 01:03:03 +0000 (01:03 +0000)]
Restore changes clobbered by Sean's check in.

30 years agoWed Dec 1 17:00:33 1993 Jason Merrill (jason@deneb.cygnus.com)
Jason Merrill [Thu, 2 Dec 1993 01:01:53 +0000 (01:01 +0000)]
Wed Dec  1 17:00:33 1993  Jason Merrill  (jason@deneb.cygnus.com)

* Makefile.in (GZIPPROG): Renamed from GZIP, which gzip uses for
default arguments -- so it tried to compress itself.

30 years ago * ldgram.y (OPTION_Oval): New token.
Ian Lance Taylor [Thu, 2 Dec 1993 00:25:48 +0000 (00:25 +0000)]
* ldgram.y (OPTION_Oval): New token.
(command_line_option): Accept and ignore it.
* ldlex.l (<COMMAND>): Handle -On where n is a number.

30 years agoFix gnatsishness
Jason Merrill [Wed, 1 Dec 1993 23:20:23 +0000 (23:20 +0000)]
Fix gnatsishness

30 years agochanges so far
Ken Raeburn [Wed, 1 Dec 1993 23:00:57 +0000 (23:00 +0000)]
changes so far

30 years agoinclude fopen-bin.h
Ken Raeburn [Wed, 1 Dec 1993 22:53:14 +0000 (22:53 +0000)]
include fopen-bin.h

30 years agovarious
Ken Raeburn [Wed, 1 Dec 1993 22:37:57 +0000 (22:37 +0000)]
various

30 years agohandle sparccoff_vec
Ken Raeburn [Wed, 1 Dec 1993 22:27:03 +0000 (22:27 +0000)]
handle sparccoff_vec

30 years agodeclare sparccoff_vec
Ken Raeburn [Wed, 1 Dec 1993 22:26:33 +0000 (22:26 +0000)]
declare sparccoff_vec

30 years agohandle sparc*-*-coff*
Ken Raeburn [Wed, 1 Dec 1993 22:26:06 +0000 (22:26 +0000)]
handle sparc*-*-coff*

30 years ago* configure.in: Group targets by CPU. Merge some m68k target entries with
Ken Raeburn [Wed, 1 Dec 1993 22:14:05 +0000 (22:14 +0000)]
* configure.in: Group targets by CPU.  Merge some m68k target entries with
different CPU specs that use the same ld_target values.

* configure.in: Add sparc*-*-coff.
* config/coff-sparc.mt, emulparams/coff_sparc.sh: New files.
* Makefile.in (ALL_EMULATIONS): Add em_coff_sparc.o.
(em_coff_sparc.c): Add dependencies and build rules.

30 years agoNew file for bare sparc-coff support.
Ken Raeburn [Wed, 1 Dec 1993 22:12:20 +0000 (22:12 +0000)]
New file for bare sparc-coff support.

30 years agoVarious entries. Added entries for NetWare changes made by Sean a
Ian Lance Taylor [Wed, 1 Dec 1993 20:06:43 +0000 (20:06 +0000)]
Various entries.  Added entries for NetWare changes made by Sean a
couple of weeks ago.

30 years agoAdded copyright notice and comments.
Ian Lance Taylor [Wed, 1 Dec 1993 20:01:08 +0000 (20:01 +0000)]
Added copyright notice and comments.

30 years ago * hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
Ian Lance Taylor [Wed, 1 Dec 1993 19:51:19 +0000 (19:51 +0000)]
* hosts/alphaosf.h (uint64_typeLOW, uint64_typeHIGH): Cast results
to unsigned long.

30 years ago * config.bfd: Don't set target64 here, as the setting is ignored.
Ian Lance Taylor [Wed, 1 Dec 1993 19:47:15 +0000 (19:47 +0000)]
* config.bfd: Don't set target64 here, as the setting is ignored.
* configure.in (ecoffalpha_little_vec): Set target64.

30 years ago * bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
Ian Lance Taylor [Wed, 1 Dec 1993 19:41:16 +0000 (19:41 +0000)]
* bfd-in.h (uint64_typeLOW, uint64_typeHIGH): Fully parenthesize
for clarity.
(fprintf_vma, sprintf_vma): Use %lx, not %x.
* bfd-in2.h: Rebuilt.

30 years ago * config/tc-mips.c (macro): From wilson@cygnus.com: for M_L_DAB,
Ian Lance Taylor [Wed, 1 Dec 1993 19:26:45 +0000 (19:26 +0000)]
* config/tc-mips.c (macro): From wilson@cygnus.com: for M_L_DAB,
set coproc before doing goto ld.

30 years ago * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
Jeff Law [Wed, 1 Dec 1993 18:43:53 +0000 (18:43 +0000)]
    * config/tc-hppa.c (hppa_elf_mark_end_of_function): New function.
        (pa_process_exit, pa_procend): Call it for ELF objects.

30 years ago * ldgram.y (OPTION_call_shared, OPTION_non_shared): New tokens.
Ian Lance Taylor [Wed, 1 Dec 1993 17:22:03 +0000 (17:22 +0000)]
* ldgram.y (OPTION_call_shared, OPTION_non_shared): New tokens.
(command_line_option): Accept and ignore them (for now).
* ldlex.l (<COMMAND>): Handle -non_shared and -call_shared.

30 years ago * config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
Ian Lance Taylor [Wed, 1 Dec 1993 17:13:12 +0000 (17:13 +0000)]
* config/tc-mips.c (macro): Subtract 8 from offset in non PIC l.d
case.  See comment.