binutils-gdb.git
29 years ago* sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
J.T. Conklin [Mon, 4 Dec 1995 20:32:44 +0000 (20:32 +0000)]
* sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
(sh_table): Added many SH3 opcodes.
* sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.

29 years ago* gencode.c (tab): Added several sh3 opcodes.
J.T. Conklin [Mon, 4 Dec 1995 20:27:38 +0000 (20:27 +0000)]
* gencode.c (tab): Added several sh3 opcodes.
(think): Added printonmatch for A_SSR and A_SPC.
* interp.c (SSR, SPC): Added definitions.
(saved_state_type): Added ssr and spc registers.

29 years ago * config.guess: Recognize HP model 816 machines as having
Jeff Law [Mon, 4 Dec 1995 18:19:32 +0000 (18:19 +0000)]
    * config.guess: Recognize HP model 816 machines as having
        a PA1.1 processor.

Already at the FSF.

29 years ago * configure: Ignore new autoconf configure options.
Ian Lance Taylor [Mon, 4 Dec 1995 17:34:36 +0000 (17:34 +0000)]
* configure: Ignore new autoconf configure options.

29 years ago * elflink.h (elf_link_output_extsym): Just ignore warning and
Ian Lance Taylor [Mon, 4 Dec 1995 16:23:36 +0000 (16:23 +0000)]
* elflink.h (elf_link_output_extsym): Just ignore warning and
indirect references to symbols which don't really exist.

29 years agoDumper for PowerPC .edata section
Kim Knuttila [Mon, 4 Dec 1995 01:58:54 +0000 (01:58 +0000)]
Dumper for PowerPC .edata section

29 years ago * aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
David Edelsohn [Sun, 3 Dec 1995 23:29:09 +0000 (23:29 +0000)]
* aout-arm.c (MY_swap_std_reloc_out): Use KEEPIT to get the symbol
index, don't call stoi.

29 years ago * config/tc-arm.c (cp_address_required_here): Set pre_inc when
David Edelsohn [Sun, 3 Dec 1995 23:26:32 +0000 (23:26 +0000)]
* config/tc-arm.c (cp_address_required_here): Set pre_inc when
converting an absolute address into a PC-relative one.

29 years agoEdit out GM-specific bits from files.
Stan Shebs [Sun, 3 Dec 1995 22:11:25 +0000 (22:11 +0000)]
Edit out GM-specific bits from files.

29 years ago * eval.c (evaluate_subexp_standard case): Fix typo.
Per Bothner [Sun, 3 Dec 1995 20:32:55 +0000 (20:32 +0000)]
* eval.c (evaluate_subexp_standard case):  Fix typo.

29 years ago * ch-exp.c (parse_named_record_element): Avoid aggregrate
Jeff Law [Sun, 3 Dec 1995 19:59:21 +0000 (19:59 +0000)]
    * ch-exp.c (parse_named_record_element): Avoid aggregrate
        initializations for automatic variables.

        * hppa-tdep.c (hppa_alignof): Fix typo in last change.

Fixes minor build problems.

29 years ago * symfile.c (global_psymbols, static_psymbols): Remove, unused.
Fred Fish [Sun, 3 Dec 1995 03:34:55 +0000 (03:34 +0000)]
* symfile.c (global_psymbols, static_psymbols):  Remove, unused.

29 years ago * alpha-tdep.c (heuristic_proc_desc): Add heuristic to
Peter Schauer [Sat, 2 Dec 1995 11:08:20 +0000 (11:08 +0000)]
* alpha-tdep.c (heuristic_proc_desc):  Add heuristic to
determine the return address register, needed for OSF/1-3.2C.
* config/alpha/tm-alpha.h (T7_REGNUM, T9_REGNUM):  Define.

29 years ago * ld-srec/srec.exp: Don't use [] in setup_xfail expressions.
Ian Lance Taylor [Sat, 2 Dec 1995 06:17:46 +0000 (06:17 +0000)]
* ld-srec/srec.exp: Don't use [] in setup_xfail expressions.

29 years ago * ihex.c: New file; support for Intel Hex format.
Ian Lance Taylor [Sat, 2 Dec 1995 02:00:08 +0000 (02:00 +0000)]
* ihex.c: New file; support for Intel Hex format.
* targets.c (enum bfd_flavour): Add bfd_target_ihex_flavour.
(ihex_vec): Declare.
(bfd_target_vector): Always include ihex_vec.
* bfd.c (struct _bfd): Add ihex_data field to tdata union.
* Makefile.in: Rebuild dependencies.
(BFD_LIBS): Add ihex.o
(BFD_LIBS_CFILES): Add ihex.c.
* bfd-in2.h: Rebuild.

29 years ago * srec.c (srec_scan): Set lma as well as vma.
Ian Lance Taylor [Sat, 2 Dec 1995 01:59:20 +0000 (01:59 +0000)]
* srec.c (srec_scan): Set lma as well as vma.

29 years agoFix typo; some progress in ppcbug support
Michael Meissner [Sat, 2 Dec 1995 01:14:06 +0000 (01:14 +0000)]
Fix typo; some progress in ppcbug support

29 years agoOoops. Fix to work with new scheme (where runtest invokes the compiler).
Per Bothner [Fri, 1 Dec 1995 22:50:47 +0000 (22:50 +0000)]
Ooops.  Fix to work with new scheme (where runtest invokes the compiler).

29 years ago * mpw-make.sed (install, install-only): Edit in Mac-specific
Stan Shebs [Fri, 1 Dec 1995 22:44:24 +0000 (22:44 +0000)]
* mpw-make.sed (install, install-only): Edit in Mac-specific
install procedure.

29 years ago * mpw-config.in: Don't always use te-generic.h for emulation.
Stan Shebs [Fri, 1 Dec 1995 22:40:56 +0000 (22:40 +0000)]
* mpw-config.in: Don't always use te-generic.h for emulation.
(powerpc-apple-macos): Use emulation te-macos.h.
start-sanitize-gm
(mips-gm-magic): New configuration.
end-sanitize-gm
* mpw-make.sed (install, install-only): Edit in Mac-specific
install procedure.

29 years ago * pr-8405.ch, pr-8405.exp, Makefile.in: New test case.
Per Bothner [Fri, 1 Dec 1995 22:17:42 +0000 (22:17 +0000)]
* pr-8405.ch, pr-8405.exp, Makefile.in:  New test case.

29 years ago * ldgram.y (PHDRS): New token.
Ian Lance Taylor [Fri, 1 Dec 1995 21:49:51 +0000 (21:49 +0000)]
* ldgram.y (PHDRS): New token.
(ifile_p1): Accept phdrs.
(section): Accept phdr_opt at the end of the section definition.
(phdr_op): New nonterminal.
(phdrs, phdr_list, phdr, phdr_type, opt_hdrs, hdr): Likewise.
* ldlex.l: Accept PHDRS.
* ldlang.h (struct lang_output_section_phdr_list): Define.
(lang_output_section_statement_type): Add phdrs field.
(struct lang_phdr): Define.
(LANG_PHDR_FILEHDR, LANG_PHDR_PHDRS): Define.
(lang_new_phdr): Declare.
* ldlang.c (lang_phdr_list): New static variable.
(lang_output_section_statement_lookup): Initialize phdrs field.
(lang_process): Call lang_record_phdrs.
(lang_new_phdr): New function.
(lang_section_in_phdr): New function.
(lang_record_phdrs): New static function.
* ld.texinfo: Document PHDRS.

29 years ago * bfd.c (bfd_record_phdr): New function.
Ian Lance Taylor [Fri, 1 Dec 1995 21:45:33 +0000 (21:45 +0000)]
* bfd.c (bfd_record_phdr): New function.
* bfd-in.h (bfd_record_phdr): Declare.
* bfd_in2.h: Rebuild.

29 years ago * elf.c (assign_file_positions_for_segments): Sort the sections in
Ian Lance Taylor [Fri, 1 Dec 1995 21:44:38 +0000 (21:44 +0000)]
* elf.c (assign_file_positions_for_segments): Sort the sections in
each segment.
(get_program_header_size): Return the right size if segment_map is
not NULL.
(copy_private_bfd_data): Don't bother to sort the sections.

29 years ago * elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
Ian Lance Taylor [Fri, 1 Dec 1995 20:59:10 +0000 (20:59 +0000)]
* elf32-sparc.c (elf32_sparc_relocate_section): Remove bogus
BFD_ASSERT.
PR 8562.

29 years ago * libbfd.c (bfd_malloc, bfd_realloc): New functions.
Ian Lance Taylor [Fri, 1 Dec 1995 19:48:10 +0000 (19:48 +0000)]
* libbfd.c (bfd_malloc, bfd_realloc): New functions.
(bfd_zmalloc): Return PTR, not char *.  Take size_t, not
bfd_size_type.
* libbfd-in.h (bfd_malloc, bfd_realloc): Declare.
(bfd_zmalloc): Change declaration.
* libbfd.h: Rebuild.
* Many files: Use bfd_malloc and bfd_realloc rather than malloc
and realloc.  Don't set bfd_error_no_memory if they fail.

29 years ago * configure.in: Improve message about unsupported ELF targets.
Ian Lance Taylor [Fri, 1 Dec 1995 19:38:40 +0000 (19:38 +0000)]
* configure.in: Improve message about unsupported ELF targets.
* configure: Rebuild.

29 years ago * tests1.exp, tests2.exp (test_print_reject): Remove; causes
Per Bothner [Fri, 1 Dec 1995 19:05:52 +0000 (19:05 +0000)]
* tests1.exp, tests2.exp (test_print_reject):  Remove;  causes
conflicts with later tests using test_print_reject in ../lib/gdb.exp.
(passcount):  Remove.
* tests2.exp (test_print_accept):  Removed.
(test_write):  Re-write to use gdb_test rather than test_print_accept.
* tests1.exp (test_print_accept_exact):  Removed.
(tests_locations):  Rewrite to use gdb_test and not above proc.

29 years ago * ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.
Ian Lance Taylor [Fri, 1 Dec 1995 18:15:18 +0000 (18:15 +0000)]
* ld-srec/srec.exp: Add setup_xfails for MIPS ELF targets.

29 years ago* gencode.c: Tidied instruction decoding, and added FP instruction
Jackie Smith Cashion [Fri, 1 Dec 1995 16:42:44 +0000 (16:42 +0000)]
* gencode.c: Tidied instruction decoding, and added FP instruction
support.
* interp.c: Added dineroIII, and BSD profiling support. Also
run-time FP handling.

At the moment the options are still mostly build-time controlled,
rather than run-time. Also work still needs to be done to remove (long
long) usage (However this is trivial, just time-consuming).

The out-standing instruction work to be done is in supporting round
and trunc for FP operations, and providing better exception support.

29 years ago * config/tc-m88k.c (m88k_do_align): Correct check for whether fill
Ian Lance Taylor [Fri, 1 Dec 1995 15:56:25 +0000 (15:56 +0000)]
* config/tc-m88k.c (m88k_do_align): Correct check for whether fill
pattern is zero.  From Manfred Hollstein.

29 years agoFix subfc.,subfco,subco,subco. to be in the proper classifications
Michael Meissner [Fri, 1 Dec 1995 12:40:39 +0000 (12:40 +0000)]
Fix subfc.,subfco,subco,subco. to be in the proper classifications

29 years agofix typo
Michael Meissner [Fri, 1 Dec 1995 12:21:03 +0000 (12:21 +0000)]
fix typo

29 years ago * tests1.ch, tests1.exp, tests2.ch, tests2.exp, Makefile.in:
Per Bothner [Fri, 1 Dec 1995 08:17:13 +0000 (08:17 +0000)]
* tests1.ch, tests1.exp, tests2.ch, tests2.exp, Makefile.in:
New (extensive) test cases.
* chexp.exp:  Fix relations to return TRUE or FALSE.

29 years ago * language.c (lang_bool_type), language.h: New function.
Per Bothner [Fri, 1 Dec 1995 08:08:41 +0000 (08:08 +0000)]
* language.c (lang_bool_type), language.h:  New function.
* language.h (LA_BOOL_TYPE):  New macro.
* eval.c (evaluate_subexp_standard)  Use LA_BOOL_TYPE instead
of builtin_type_int where appropriate,
* valarith.c (value_subscript):  Likewise.

29 years ago * valops.c (value_slice): Implement (value) bitstring slices.
Per Bothner [Fri, 1 Dec 1995 08:06:45 +0000 (08:06 +0000)]
* valops.c (value_slice):  Implement (value) bitstring slices.
* valprint.c (val_print):  If TYPE_LENGTH is zero, don't automatically
print "<incomplete type>" - Chill has zero-length (string) types.

29 years ago * gdbtypes.c (check_stub_type): Removed; no longes needed.
Per Bothner [Fri, 1 Dec 1995 08:04:51 +0000 (08:04 +0000)]
* gdbtypes.c (check_stub_type):  Removed;  no longes needed.
* ch-exp.c (expect, parse_call):  Tweak error messages.

29 years agoPowerPC changes
Kim Knuttila [Fri, 1 Dec 1995 02:08:19 +0000 (02:08 +0000)]
PowerPC changes

29 years agoPowerPC DLL Support
Kim Knuttila [Fri, 1 Dec 1995 01:01:42 +0000 (01:01 +0000)]
PowerPC DLL Support

29 years ago* config/mt-v810 (CC_FOR_TARGET): Add -ansi flag. NEC compiler
J.T. Conklin [Thu, 30 Nov 1995 23:01:31 +0000 (23:01 +0000)]
* config/mt-v810 (CC_FOR_TARGET): Add -ansi flag.  NEC compiler
defaults to K&R mode, but doesn't have varargs.h, so we have to
compile in ANSI mode.

29 years ago * elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
Ian Lance Taylor [Thu, 30 Nov 1995 22:15:13 +0000 (22:15 +0000)]
* elf.c (_bfd_elf_make_section_from_shdr): Don't set lma based on
p_paddr if p_paddr is zero.
(make_mapping): Set includes_filehdr and includes_phdrs for first
PT_LOAD segment.
(map_sections_to_segments): Set includes_phdrs for PT_PHDR
segment.
(assign_file_positions_for_segments): Handle includes_filehdr and
includes_phdrs.  Remove special handling of PT_PHDR and first
PT_LOAD segments.
(copy_private_bfd_data): Set includes_filehdr and includes_phdr
when appropriate.  Remove special handling of PT_PHDR segment.
Use a more complex condition for when a section is included in a
segment to handle Solaris linker oddities.

29 years ago * config.guess: Recognize Pentium under SCO.
Per Bothner [Thu, 30 Nov 1995 22:00:52 +0000 (22:00 +0000)]
* config.guess:  Recognize Pentium under SCO.

29 years agoidata alignment in .s files
Kim Knuttila [Thu, 30 Nov 1995 18:47:11 +0000 (18:47 +0000)]
idata alignment in .s files

29 years agoExpose .edata section
Kim Knuttila [Thu, 30 Nov 1995 18:18:38 +0000 (18:18 +0000)]
Expose .edata section

29 years agoAdd a comment saying .junk sections are discarded by the linker.
David Edelsohn [Thu, 30 Nov 1995 17:15:12 +0000 (17:15 +0000)]
Add a comment saying .junk sections are discarded by the linker.

29 years agoThu Nov 30 11:32:34 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts...
Ian Lance Taylor [Thu, 30 Nov 1995 16:30:13 +0000 (16:30 +0000)]
Thu Nov 30 11:32:34 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>

* configure.host (m68*-motorola-sysv): Define HOSTING_CRT0 and
HOSTING_LIBS for testing.
(m88*-motorola-sysv3): Define HOSTING_CRT0 and HOSTING_LIBS for
testing.

29 years agoThu Nov 30 11:23:42 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts...
Ian Lance Taylor [Thu, 30 Nov 1995 16:25:27 +0000 (16:25 +0000)]
Thu Nov 30 11:23:42 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>

* config/obj-coff.c (fixup_segment): If TC_M88K is defined, do not
add section's paddr to add_number; compatibility to native as and
ld forbids.

29 years agoThu Nov 30 11:17:33 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts...
Ian Lance Taylor [Thu, 30 Nov 1995 16:23:05 +0000 (16:23 +0000)]
Thu Nov 30 11:17:33 1995  Manfred Hollstein KS/EF4A 60/1F/110 #40283  <manfred@lts.sel.alcatel.de>

* coff-m88k.c (howto_table): Reformatted for easier reading;
special_function now points to new function m88k_special_reloc.
(howto_hvrt16): Function previously used for handling HVRT16 relocs
removed.
(rtype2howto): Do not add reloc's r_offset to the addend, this will
be done correctly by m88k_special_reloc.
(reloc_processing): New function to be used by RELOC_PROCESSING.
(RELOC_PROCESSING): Define to call reloc_processing.

29 years agoLet autoconf determine if host is big endian or not
Michael Meissner [Thu, 30 Nov 1995 11:13:08 +0000 (11:13 +0000)]
Let autoconf determine if host is big endian or not

29 years agoconfigure.in: handle m68k-sysv4 correctly
Ken Raeburn [Thu, 30 Nov 1995 04:24:08 +0000 (04:24 +0000)]
configure.in: handle m68k-sysv4 correctly

29 years agoMove struct hash_entry from hash.h to hash.c.
Ken Raeburn [Thu, 30 Nov 1995 04:22:27 +0000 (04:22 +0000)]
Move struct hash_entry from hash.h to hash.c.

29 years ago(elf_frob_symbol): Don't free and clear sy_obj if it's already known to be null.
Ken Raeburn [Thu, 30 Nov 1995 04:19:13 +0000 (04:19 +0000)]
(elf_frob_symbol): Don't free and clear sy_obj if it's already known to be null.

29 years ago * Makefile.in: Add .exp.check rule.
Per Bothner [Thu, 30 Nov 1995 03:35:14 +0000 (03:35 +0000)]
* Makefile.in:  Add .exp.check rule.
* callch.ch:  Add missing "%." to format strings.
* callch.exp:  Fix argument to gdb_load.
* chexp.exp:  Add specific error messages to test_print_reject calls.
* misc.exp:  Add a test for PR 8496.
* pr-6632.exp, pr-8136.exp:  Link executables from two .o files.

29 years ago * ch-exp.y: Replaced by ...
Per Bothner [Thu, 30 Nov 1995 03:26:34 +0000 (03:26 +0000)]
* ch-exp.y:  Replaced by ...
* ch-exp.c:  New file.  Use recursive-descent.
Recognize labelled array tuples and powerset ranges.
* Makefile.in:  Update for no longer using yacc for ch-exp.

* c-lang.c:  Make various functions non-static.
* c-lang.h:  Add bunches of prototypes.
* cp-valprint.c (cp_print_value_fields):  Also take address.
(cp_print_value):  Likewise.  Use baselcass_offset.
* stabsread.c (current_symbol):  New static variable.
(type_synonym_name):  Remove.
(read_type):  If copying, make copy be a TYPE_CODE_TYPEDEF.
(read_array_type):  Don't need to handle undefined element type here.
(cleanup_undefined_types):  Ditto.
(read_range_type):  Look for Chill ranges.
* valops.c (value_assign):  Fix case lval_internalvar - don't try
to assign into old value (which might be too small!).
(value_coerce_array):  No longer need special VALUE_REPEATED handling.
(value_arg_coerce):  Cleaner array->pointer decay mechanism.
(search_struct_field):  Use baseclass_offset rather than
baseclass_addr.
(value_slice):  Use get_discrete_bounds.
* value.h (COERCE_VARYING_ARRAY):  Take type argumnt as well.
* values.c (baseclass_offset):  Change parameter interface.
(baseclass_addr):  Removed.
* c-typeprint.c, c-valprint.c, ch-valprint.c, values.c, valops.c:
Add check_typedef/CHECK_TYPEDEF as needed.

29 years ago * scm-valprint.c (scm_isymnames): Remove "#@" prefix.
Per Bothner [Thu, 30 Nov 1995 03:10:59 +0000 (03:10 +0000)]
* scm-valprint.c (scm_isymnames):  Remove "#@" prefix.
(scm_scmval_print):  Do not print "#@" prefix.
* mdebugread.c:  Add check_typedef/CHECK_TYPEDEF as needed.

29 years agoFix MPW tool installation
Stan Shebs [Thu, 30 Nov 1995 02:55:03 +0000 (02:55 +0000)]
Fix MPW tool installation

29 years ago * f-typeprint.c, valarith.c, valprint.c, typeprint.c, eval.c:
Per Bothner [Thu, 30 Nov 1995 02:32:29 +0000 (02:32 +0000)]
* f-typeprint.c, valarith.c, valprint.c, typeprint.c, eval.c:
Add check_typedef/CHECK_TYPEDEF as needed.
* f-typeprint.c:  Various cleaning up.
* valarith.c (value_subscript):  Also subscript bitstrings (for Chill).
* typeprint.c (print_type_scalar):  Also support TYPE_CODE_RANGE.
* eval.c (evaluate_subexp_standard case OP_ARRAY):  Implement
support for labelled array tuples and ranges in powerset tuples.
(init_array_element):  New function.

29 years ago * alpha-tdep.c, c-exp.y, h8500-tdep.c, f-exp.y, f-valprint.c,
Per Bothner [Thu, 30 Nov 1995 01:43:37 +0000 (01:43 +0000)]
* alpha-tdep.c, c-exp.y, h8500-tdep.c, f-exp.y, f-valprint.c,
findvar.c, hppa-tdep.c, infcmd.c, language.c, printcmd.c,
  rs6000-tdep.c, symmisc.c, symtab.c:
Add check_typedef/CHECK_TYPEDEF as needed.

29 years ago * gdbtypes.h (enum type_code): Added TYPE_CODE_TYPEDEF.
Per Bothner [Thu, 30 Nov 1995 01:07:28 +0000 (01:07 +0000)]
* gdbtypes.h (enum type_code):  Added TYPE_CODE_TYPEDEF.
(check_typedef):  New prototype.
(CHECK_TYPEDEF):  New macro.
(TYPE_DUMMY_RANGE):  Removed.
* gdbtypes.c (get_discrete_bounds):  Fix paren error; make more robust.
(create_array_type):  Don't force_to_range_type;  users of the
array are responsible for handling non-range index types.
(create_set_type):  Likewise.
(force_to_range_type):  Removed.
(check_typedef):  New function handles stub types and typedefs.
(check_stub_type):  Just call check_typedef. (To be removed.)
(recursive_dump_type):  Handle TYPE_CODE_TYPEDEF.
* ch-lang.c (type_lower_upper):  Use get_discrete_bounds.
(evaluate_subexp_chill):  Handle string repetition.
Re-arrange to handle EVAL_AVOID_SIDE_EFFECTS better.
* ch-typeprint.c (chill_type_print_base):  Handle TYPE_CODE_TYPEDEF.
Pass show=0 in recursive calls various places.
(case TYPE_CODE_ARRAY):  Don't require index type to have
TYPE_CODE_RANGE.
(case TYPE_CODE_RANGE):  Don't need to support TYPE_DUMMY_RANGE.
* gdbtypes.c, ch-lang.c, ch-typeprint.c (numerous places):
Add check_typedef/CHECK_TYPEDEF as needed.

29 years ago * top.c (command_line_input): Only strip out an initial #-comment.
Per Bothner [Wed, 29 Nov 1995 23:22:32 +0000 (23:22 +0000)]
* top.c (command_line_input):  Only strip out an initial #-comment.
Looking for internal comments is language-specific (breaks Scheme).

29 years ago * expression.h (enum exp_opcode): Add BINOP_RANGE.
Per Bothner [Wed, 29 Nov 1995 22:59:31 +0000 (22:59 +0000)]
* expression.h (enum exp_opcode):  Add BINOP_RANGE.
* expprint.c (dump_expression):  Support BINOP_RANGE.
* eval.c (evaluate_subexp_standard):  Handle BINOP_RANGE (as error).
(case MULTI_SUBSCRIPT):  Fix broken f77 value->int ad hoc conversion.
* ch-lang.c (chill_op_print_tab):  Support BINOP_RANGE.
(evaluate_subexp_chill):  Error on BINOP_COMMA.

29 years ago * peicode.h (pe_print_idata): Call malloc rather than xmalloc.
Ian Lance Taylor [Wed, 29 Nov 1995 22:10:57 +0000 (22:10 +0000)]
* peicode.h (pe_print_idata): Call malloc rather than xmalloc.
(pe_print_pdata): Likewise.

29 years ago * opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
Ian Lance Taylor [Wed, 29 Nov 1995 22:05:37 +0000 (22:05 +0000)]
* opncls.c (bfd_alloc_by_size_t): Set bfd_error_no_memory if
obstack_alloc fails.
(bfd_alloc_finish): Set bfd_error_no_memory if obstack_finish
fails.
* libbfd.c (bfd_zmalloc): Set bfd_error_no_memory if malloc fails.
* Many files: don't set bfd_error_no_memory if one of the above
routines fails.

29 years agoMerge in stuff accidently commited to sh3e branch
J.T. Conklin [Wed, 29 Nov 1995 22:00:53 +0000 (22:00 +0000)]
Merge in stuff accidently commited to sh3e branch

29 years ago * Makefile.in: Clean up so doc stuff stays in doc sub-dir.
Per Bothner [Wed, 29 Nov 1995 22:00:41 +0000 (22:00 +0000)]
 * Makefile.in:  Clean up so doc stuff stays in doc sub-dir.

29 years ago* configure.in (noconfigdirs): Disable target-libio on v810-*-*.
J.T. Conklin [Wed, 29 Nov 1995 21:57:12 +0000 (21:57 +0000)]
* configure.in (noconfigdirs): Disable target-libio on v810-*-*.
* config/mt-v810 (CC_FOR_TARGET, AS_FOR_TARGET, AR_FOR_TARGET,
RANLIB_FOR_TARGET): Set as appropriate for NEC v810 toolchain.

29 years agoMake debugging remote gdb friendlier
Michael Meissner [Wed, 29 Nov 1995 21:41:21 +0000 (21:41 +0000)]
Make debugging remote gdb friendlier

29 years ago * gencode.c (tab): In shad/shld definitions, negate R[m] before
Jim Wilson [Wed, 29 Nov 1995 20:41:46 +0000 (20:41 +0000)]
* gencode.c (tab): In shad/shld definitions, negate R[m] before
the and operation instead of after.  For shad delete cast.  For shld
use UR instead of R and delete cast.

29 years ago * elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
Ian Lance Taylor [Wed, 29 Nov 1995 20:04:17 +0000 (20:04 +0000)]
* elf.c (assign_file_positions_for_segments): Don't adjust p_paddr
if p_paddr_valid is set.
(copy_private_bfd_data): New static function.
(_bfd_elf_copy_private_section_data): Call copy_private_bfd_data.

29 years ago * elf.c (assign_file_positions_for_segments): Fix case where extra
Ian Lance Taylor [Wed, 29 Nov 1995 19:14:33 +0000 (19:14 +0000)]
* elf.c (assign_file_positions_for_segments): Fix case where extra
program headers were allocated.

29 years ago * elf.c (_bfd_elf_print_private_bfd_data): New function.
Ian Lance Taylor [Wed, 29 Nov 1995 18:46:07 +0000 (18:46 +0000)]
* elf.c (_bfd_elf_print_private_bfd_data): New function.
* elf-bfd.h (_bfd_elf_print_private_bfd_data): Declare.
* elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define to
_bfd_elf_print_private_bfd_data.

29 years agoFix -mrelocatable
Michael Meissner [Wed, 29 Nov 1995 18:17:24 +0000 (18:17 +0000)]
Fix -mrelocatable

29 years ago * ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.
Ian Lance Taylor [Wed, 29 Nov 1995 17:59:04 +0000 (17:59 +0000)]
* ld-srec/srec.exp: Add setup_xfail for i960 COFF targets.

29 years ago * coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
Ian Lance Taylor [Wed, 29 Nov 1995 17:40:58 +0000 (17:40 +0000)]
* coff-alpha.c (alpha_ecoff_swap_reloc_in): Don't abort if
r_symndx is RELOC_SECTION_NONE for an ALPHA_R_IGNORE reloc.
Change a RELOC_SECTION_LITA symndx to RELOC_SECTION_ABS.
(alpha_ecoff_swap_reloc_out): Change RELOC_SECTION_ABS to
RELOC_SECTION_LITA for ALPHA_R_IGNORE.
(alpha_adjust_reloc_out): For ALPHA_R_IGNORE, don't change
RELOC_SECTION_ABS to RELOC_SECTION_NONE.

29 years ago * configure.in: Don't configure gas for alpha-dec-osf*.
Ian Lance Taylor [Wed, 29 Nov 1995 17:09:41 +0000 (17:09 +0000)]
* configure.in: Don't configure gas for alpha-dec-osf*.

29 years agoFix typo.
David Edelsohn [Wed, 29 Nov 1995 03:36:46 +0000 (03:36 +0000)]
Fix typo.

29 years ago * Makefile.in (target_subdir): Define.
David Edelsohn [Wed, 29 Nov 1995 03:35:35 +0000 (03:35 +0000)]
* Makefile.in (target_subdir): Define.
(CC_FOR_TARGET, CXX_FOR_TARGET): Use it to find target libraries.
* configure.in (X_CFLAGS): Fix typo.
(target_subdir): Set to "${target_alias}/" if cross.
* configure: Regenerated.

29 years ago * Makefile.in (target_subdir): Define.
David Edelsohn [Wed, 29 Nov 1995 03:34:57 +0000 (03:34 +0000)]
* Makefile.in (target_subdir): Define.
(CC_FOR_TARGET, CXX_FOR_TARGET): Use it to find target libraries.
* configure.in (X_CFLAGS): Fix typo.
(target_subdir): Set to "${target_alias}/" if cross.
* configure.in: Regenerated.

29 years ago * dlltool.c (fill_ordinals): Don't reference d_export_vec if
David Edelsohn [Wed, 29 Nov 1995 01:25:25 +0000 (01:25 +0000)]
* dlltool.c (fill_ordinals): Don't reference d_export_vec if
there are no exported functions.

29 years ago * dbxread.c (dbx_symfile_read): Set block_address_function_relative
David Edelsohn [Tue, 28 Nov 1995 23:45:17 +0000 (23:45 +0000)]
* dbxread.c (dbx_symfile_read): Set block_address_function_relative
for `pe' format files.

29 years ago * configure.in: Default to --with-stabs for some targets for which
Ian Lance Taylor [Tue, 28 Nov 1995 22:15:27 +0000 (22:15 +0000)]
* configure.in: Default to --with-stabs for some targets for which
it makes sense: mips*-*-*, alpha*-*-osf*, i[345]86*-*-sysv4* and
i[345]86*-*-unixware*.

29 years ago * elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
Ian Lance Taylor [Tue, 28 Nov 1995 22:02:13 +0000 (22:02 +0000)]
* elf-bfd.h (struct elf_obj_tdata): Add segment_map field.
* elf.c (make_mapping): New static function.
(map_sections_to_segments): New static function.
(elf_sort_sections): New static function.
(assign_file_positions_for_segments): New static function.
(map_program_segments): Remove.
(get_program_header_size): Remove sorted_hdrs, count, and
maxpagesize parameters.  Simplify.
(assign_file_positions_except_relocs): When generating an
executable, use assign_file_positions_for_segments.
(elf_sort_hdrs): Remove.
(_bfd_elf_sizeof_headers): Remove eliminated parameters from call
to get_program_header_size.

29 years ago * internal.h (struct elf_segment_map): Define.
Ian Lance Taylor [Tue, 28 Nov 1995 21:55:33 +0000 (21:55 +0000)]
* internal.h (struct elf_segment_map): Define.

29 years ago * magic.h: Renamed to gmagic.h to avoid <magic.h> conflict.
Fred Fish [Tue, 28 Nov 1995 19:33:22 +0000 (19:33 +0000)]
* magic.h:  Renamed to gmagic.h to avoid <magic.h> conflict.
* magic.c:  Renamed to gmagic.c in sympathy.
* eval.c, gmagic.c, config/tm-magic.h:
  Include "gmagic.h" rather than "magic.h".

29 years agoVarious Thanksgiving weekend hacks: clean up hash table, reduce various
Ken Raeburn [Tue, 28 Nov 1995 19:23:15 +0000 (19:23 +0000)]
Various Thanksgiving weekend hacks: clean up hash table, reduce various
structure sizes, stabs string memory use cleanup, statistics dump.

29 years agoClean up hash code, parameterize some actions, tweak some parameters. Hash
Ken Raeburn [Tue, 28 Nov 1995 19:21:09 +0000 (19:21 +0000)]
Clean up hash code, parameterize some actions, tweak some parameters.  Hash
table entries, table allocation and control structure are larger now, but
collisions are reduced and string compares even further reduced.

Dump lots more statistics, especially hash code data, for --statistics.  Dump
statistics even in error cases.

Details in ChangeLog.

29 years agoRemove unused sy_name_offset from ELF_TARGET_SYMBOL_FIELDS.
Ken Raeburn [Tue, 28 Nov 1995 19:09:58 +0000 (19:09 +0000)]
Remove unused sy_name_offset from ELF_TARGET_SYMBOL_FIELDS.

29 years agofix typo
Michael Meissner [Tue, 28 Nov 1995 18:57:30 +0000 (18:57 +0000)]
fix typo

29 years agoAdd determining when we do not have enough writeback slots; Do not do model specific...
Michael Meissner [Tue, 28 Nov 1995 18:47:07 +0000 (18:47 +0000)]
Add determining when we do not have enough writeback slots; Do not do model specific handling if not printing out the information

29 years ago * lexsup.c (parse_args): Set config.dynamic_link to false for -N
Ian Lance Taylor [Tue, 28 Nov 1995 17:15:37 +0000 (17:15 +0000)]
* lexsup.c (parse_args): Set config.dynamic_link to false for -N
and -n.

29 years agoBuild again on SunOS; Make MODEL_INLINE default to 1 if inlining, not 2; Use __attrib...
Michael Meissner [Mon, 27 Nov 1995 22:54:40 +0000 (22:54 +0000)]
Build again on SunOS; Make MODEL_INLINE default to 1 if inlining, not 2; Use __attribute__((const))

29 years ago * pr-5016.exp: xfail "whatis i" for alpha-osf-dec-osf2*, same as linux.
Fred Fish [Mon, 27 Nov 1995 22:44:38 +0000 (22:44 +0000)]
* pr-5016.exp: xfail "whatis i" for alpha-osf-dec-osf2*, same as linux.

29 years ago * gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
Fred Fish [Mon, 27 Nov 1995 22:43:08 +0000 (22:43 +0000)]
* gdb.base/signals.exp: Setup "alpha-*-osf2*" xfail for
"bt in signals.exp".
* gdb.base/a1-selftest.exp: Add alpha-dec-osf2 setup_xfail for
"step over execarg initialization" and
  "step over corearg initialization".
* gdb.base/ptype.c (main): Declare malloc as a "char *" for systems
with sizeof(pointer) > sizeof(int).  Avoid "void *" or include files.

29 years ago * binutils-all/objcopy.exp: Correct fail calls to always use the
Ian Lance Taylor [Mon, 27 Nov 1995 20:16:37 +0000 (20:16 +0000)]
* binutils-all/objcopy.exp: Correct fail calls to always use the
same string as the pass call.

29 years ago * hp300hpux.c (MY(callback)): Set lma as well as vma.
Ian Lance Taylor [Mon, 27 Nov 1995 20:11:40 +0000 (20:11 +0000)]
* hp300hpux.c (MY(callback)): Set lma as well as vma.

29 years agofix last change
Ian Lance Taylor [Mon, 27 Nov 1995 20:02:12 +0000 (20:02 +0000)]
fix last change

29 years ago * ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.
Ian Lance Taylor [Mon, 27 Nov 1995 19:39:09 +0000 (19:39 +0000)]
* ld-srec/srec.exp: Add setup_xfail calls for i[345]86-*-aout*.

* ld-srec/sr1.c (V_SPILL, V_FILL): Define.
* ld-srec/sr3.cc: Likewise.

29 years ago * config-ml.in: Get list of multidirs using gcc --print-multi-lib
Ian Lance Taylor [Mon, 27 Nov 1995 18:50:31 +0000 (18:50 +0000)]
* config-ml.in: Get list of multidirs using gcc --print-multi-lib
rather than basing it on the target.  Simplify handling of options
controlling which directories to configure.  Remove extraneous
slash in multi-clean target.

29 years ago * configure: Rebuild with autoconf 2.7.
Ian Lance Taylor [Mon, 27 Nov 1995 18:19:15 +0000 (18:19 +0000)]
* configure: Rebuild with autoconf 2.7.

29 years ago * configure: Rebuild with autoconf 2.7.
Ian Lance Taylor [Mon, 27 Nov 1995 18:11:02 +0000 (18:11 +0000)]
* configure: Rebuild with autoconf 2.7.