external/binutils.git
28 years ago * simops.c (OP_5F00): Fix problems with system calls.
Mark Alexander [Thu, 12 Sep 1996 19:52:40 +0000 (19:52 +0000)]
* simops.c (OP_5F00): Fix problems with system calls.

28 years ago* cpu-m32r.c,elf32-m32r.c: New files.
David Edelsohn [Thu, 12 Sep 1996 18:58:36 +0000 (18:58 +0000)]
* cpu-m32r.c,elf32-m32r.c: New files.

28 years ago * reloc.c: Add m32r relocs.
David Edelsohn [Thu, 12 Sep 1996 18:56:14 +0000 (18:56 +0000)]
* reloc.c: Add m32r relocs.
* bfd-in2.h, libbfd.h: Rebuilt.

28 years agoCorrect trap tracing information
Michael Meissner [Thu, 12 Sep 1996 16:20:05 +0000 (16:20 +0000)]
Correct trap tracing information

28 years agoPrint line # and function name or filename if they exist for each PC.
Michael Meissner [Thu, 12 Sep 1996 16:06:02 +0000 (16:06 +0000)]
Print line # and function name or filename if they exist for each PC.

28 years agoStore bfd pointer in a global variable
Michael Meissner [Thu, 12 Sep 1996 15:28:40 +0000 (15:28 +0000)]
Store bfd pointer in a global variable

28 years ago * ieee.c (ieee_vec): Set symbol_leading_char field to '_'.
Ian Lance Taylor [Thu, 12 Sep 1996 15:15:06 +0000 (15:15 +0000)]
* ieee.c (ieee_vec): Set symbol_leading_char field to '_'.

28 years agoThu Sep 12 10:25:45 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Thu, 12 Sep 1996 09:31:02 +0000 (09:31 +0000)]
Thu Sep 12 10:25:45 1996  James G. Smith  <jsmith@cygnus.co.uk>

* config/tc-arm.c (md_apply_fix3): Update two thumb instruction
  slots when processing BL fixups.

* config/tc-arm.c (output_inst): Ensure Thumb BL fixup is marked
  on the first half of the instruction.

Thu Sep 12 10:28:44 1996  James G. Smith  <jsmith@cygnus.co.uk>

* gas/arm/thumb.s (back): Check assembly of Thumb BL.

28 years ago * ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.
Ian Lance Taylor [Thu, 12 Sep 1996 03:34:28 +0000 (03:34 +0000)]
* ldmain.c (get_emulation): Check for -mips4 like -mips1, et. al.

28 years agofix typo
Michael Meissner [Wed, 11 Sep 1996 22:56:25 +0000 (22:56 +0000)]
fix typo

28 years ago * tekhex.c (first_phase): Change type parameter from char to int.
Ian Lance Taylor [Wed, 11 Sep 1996 21:08:33 +0000 (21:08 +0000)]
* tekhex.c (first_phase): Change type parameter from char to int.
(out): Likewise.
(pass_over): Change func to expect int, not char.

28 years agoAdd tracing support; Fix some problems with hardwired sizes
Michael Meissner [Wed, 11 Sep 1996 20:54:21 +0000 (20:54 +0000)]
Add tracing support; Fix some problems with hardwired sizes

28 years ago * ecoff.c (ecoff_stab): Create an expression symbol for a complex
Ian Lance Taylor [Wed, 11 Sep 1996 18:40:25 +0000 (18:40 +0000)]
* ecoff.c (ecoff_stab): Create an expression symbol for a complex
stabs expression, rather than giving an error.

28 years ago * elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
Ian Lance Taylor [Wed, 11 Sep 1996 15:59:34 +0000 (15:59 +0000)]
* elf.c (assign_file_positions_for_segments): Test SEC_ALLOC
rather than SEC_LOAD when aligning the file offset for the first
section in a segment.
Fixes the case in which . is set just before the .bss section in a
linker script.

28 years ago * mips-dis.c (print_insn_arg): Add prototype.
Fred Fish [Wed, 11 Sep 1996 04:26:58 +0000 (04:26 +0000)]
* mips-dis.c (print_insn_arg): Add prototype.
(_print_insn_mips): Ditto.

28 years ago * syms.c (coff_section_type): Make arg const.
Fred Fish [Wed, 11 Sep 1996 04:25:57 +0000 (04:25 +0000)]
* syms.c (coff_section_type): Make arg const.
* irix-core.c (irix_core_core_file_p): Remove extraneous extra arg
to make_bfd_asection().
* elf-bfd.h (bfd_section_from_phdr): Add prototype.
* elfcode.h (bfd_section_from_phdr): Remove prototype.
(_bfd_elf_stringtab_init): Remove prototype.

* netbsd-core.c (swap_abort): Add prototype.
* aix386-core.c (swap_abort): Ditto & make static
* hpux-core.c (swap_abort): Ditto & make static.
* irix-core.c (swap_abort): Ditto & make static.
* ptrace-core.c (swap_abort): Ditto & make static.
* trad-core.c (swap_abort): Ditto & make static.
* coffswap.h (coff_swap_reloc_in): Ditto.
(coff_swap_reloc_out): Ditto.
(coff_swap_filehdr_in): Ditto.
(coff_swap_filehdr_out): Ditto.
(coff_swap_sym_in): Ditto.
(coff_swap_sym_out): Ditto.
(coff_swap_aux_in): Ditto.
(coff_swap_aux_out): Ditto.
(coff_swap_lineno_in): Ditto.
(coff_swap_lineno_out): Ditto.
(coff_swap_aouthdr_in): Ditto.
(coff_swap_aouthdr_out): Ditto.
(coff_swap_scnhdr_in): Ditto.
(coff_swap_scnhdr_out): Ditto.
* ihex.c (ihex_sizeof_headers): Ditto.
* tekhex.c (getsym): Ditto.
(find_chunk): Ditto & make static.
(insert_byte): Ditto.
(first_phase): Ditto.
(pass_over): Ditto.
(tekhex_get_symtab): Ditto & make static.
(tekhex_get_symtab_upper_bound): Ditto & make static.
(tekhex_mkobject): Ditto.
(tekhex_object_p): Ditto.
(move_section_contents): Ditto.
(tekhex_get_section_contents): Ditto.
(tekhex_set_arch_mach): Ditto & make static.
(tekhex_set_section_contents): Ditto.
(writevalue): Ditto.
(writesym): Ditto.
(out): Ditto.
(tekhex_write_object_contents): Ditto.
(tekhex_sizeof_headers): Ditto.
(tekhex_make_empty_symbol): Ditto.
(tekhex_get_symbol_info): Ditto.
(tekhex_print_symbol): Ditto.
* irix-core.c (make_bfd_asection): Ditto.
(irix_core_core_file_p): Ditto.
(irix_core_core_file_failing_command): Ditto.
(irix_core_core_file_failing_signal): Ditto.
(irix_core_core_file_matches_executable_p): Ditto.
(irix_core_make_empty_symbol): Ditto.
* coff-mips.c (mips_bfd_reloc_type_lookup): Ditto.
* srec.c (srec_new_symbol): Ditto.
(srec_get_section_contents): Ditto.
(srec_set_arch_mach): Ditto.
(srec_set_section_contents): Ditto.
(internal_srec_write_object_contents): Ditto.
(srec_write_object_contents): Ditto.
(symbolsrec_write_object_contents): Ditto.
(srec_sizeof_headers): Ditto.
(srec_make_empty_symbol): Ditto.
(srec_get_symtab_upper_bound): Ditto.
(srec_get_symtab): Ditto.
(srec_print_symbol): Ditto and make static.
* elf.c (elf_read): Ditto
(assign_section_numbers): Ditto.
(elf_fake_sections): Ditto.
(sym_is_global): Ditto.
(elf_map_symbols): Ditto.
(get_program_header_size): Ditto.
* coffgen.c (make_a_section_from_file): Ditto.
(coff_real_object_p): Ditto.
(fixup_symbol_value): Ditto.
(build_debug_section): Ditto.
(copy_name): Ditto.
* syms.c (coff_section_type): Ditto.

28 years ago * ecoff.c (ecoff_new_file): Don't do anything if we are still in
Ian Lance Taylor [Wed, 11 Sep 1996 04:14:35 +0000 (04:14 +0000)]
* ecoff.c (ecoff_new_file): Don't do anything if we are still in
the same file.
PR 10595.

28 years ago * config/tc-mips.c (append_insn): Fill in the value for a constant
Ian Lance Taylor [Tue, 10 Sep 1996 15:47:16 +0000 (15:47 +0000)]
* config/tc-mips.c (append_insn): Fill in the value for a constant
jump, rather than creating a reloc.
PR 10589.

28 years ago * bfd-in2.h: Rebuilt after m32r changes.
Jeff Law [Tue, 10 Sep 1996 04:35:48 +0000 (04:35 +0000)]
    * bfd-in2.h: Rebuilt after m32r changes.

28 years ago * interp.c (hash): Make this an inline function
Jeff Law [Tue, 10 Sep 1996 02:51:07 +0000 (02:51 +0000)]
    * interp.c (hash): Make this an inline function
        when compiling with GCC.  Simplify.
        * simpos.c: Explicitly include "sys/syscall.h".  Remove
        some #if 0'd code.  Enable more emulated syscalls.
Checking in more stuff.

28 years agoDon't set interlocks for r5000. Rely on -mips4 settings.
Ian Lance Taylor [Tue, 10 Sep 1996 01:12:35 +0000 (01:12 +0000)]
Don't set interlocks for r5000.  Rely on -mips4 settings.

28 years ago * config.bfd,configure.in,configure: Add m32r support.
David Edelsohn [Mon, 9 Sep 1996 22:59:40 +0000 (22:59 +0000)]
* config.bfd,configure.in,configure: Add m32r support.
* Makefile.in,archures.c,elf.c,targets.c: Likewise.

28 years agoAddi needs to set the carry
Michael Meissner [Mon, 9 Sep 1996 21:12:46 +0000 (21:12 +0000)]
Addi needs to set the carry

28 years agoFix ld2w tracing
Michael Meissner [Mon, 9 Sep 1996 20:45:33 +0000 (20:45 +0000)]
Fix ld2w tracing

28 years agoCorrect tracing of cpfg
Michael Meissner [Mon, 9 Sep 1996 20:10:31 +0000 (20:10 +0000)]
Correct tracing of cpfg

28 years ago * config.bfd,configure.in,configure: Add m32r support.
David Edelsohn [Mon, 9 Sep 1996 19:37:47 +0000 (19:37 +0000)]
* config.bfd,configure.in,configure: Add m32r support.

28 years ago * config.bfd: Keep target list alphabetically sorted.
David Edelsohn [Mon, 9 Sep 1996 19:32:40 +0000 (19:32 +0000)]
* config.bfd: Keep target list alphabetically sorted.

28 years ago * config.sub, configure.in: Add entries for m32r.
David Edelsohn [Mon, 9 Sep 1996 19:23:41 +0000 (19:23 +0000)]
* config.sub, configure.in: Add entries for m32r.

28 years ago * gas/mips/mips4.s, gas/mips/mips4.d: Use $fccN for condition code
Ian Lance Taylor [Mon, 9 Sep 1996 18:37:54 +0000 (18:37 +0000)]
* gas/mips/mips4.s, gas/mips/mips4.d: Use $fccN for condition code
registers.

28 years ago * config/tc-mips.c (append_insn): Don't swap an instruction which
Ian Lance Taylor [Mon, 9 Sep 1996 18:37:10 +0000 (18:37 +0000)]
* config/tc-mips.c (append_insn): Don't swap an instruction which
sets a condition code with an instruction which uses a condition
code.
(mips_ip): In cases 'N' and 'M', look for $fccN rather than an
immediate value.

28 years ago * mips-dis.c (print_insn_arg): Print condition code registers as
Ian Lance Taylor [Mon, 9 Sep 1996 18:27:10 +0000 (18:27 +0000)]
* mips-dis.c (print_insn_arg): Print condition code registers as
  $fccN.

28 years agoMake ex{f,t}* tests agree with book
Michael Meissner [Mon, 9 Sep 1996 18:24:18 +0000 (18:24 +0000)]
Make ex{f,t}* tests agree with book

28 years ago * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
Jeff Law [Mon, 9 Sep 1996 17:49:30 +0000 (17:49 +0000)]
    * elf32-v850.c (bfd_elf32_v850_reloc, case R_V850_HI16): Don't forget
        to add in the constant part found in the instruction itself.
        (case R_V850_HI16_S): Likewise.
Fixes plumhall/lang.exp failures.

28 years agoFix accumulator shifts
Michael Meissner [Mon, 9 Sep 1996 17:30:36 +0000 (17:30 +0000)]
Fix accumulator shifts

28 years ago * config/tc-mips.c (md_begin): Recognize r5000 for cpu. If
Ian Lance Taylor [Mon, 9 Sep 1996 15:04:59 +0000 (15:04 +0000)]
* config/tc-mips.c (md_begin): Recognize r5000 for cpu.  If
mips_cpu is 5000, set interlocks and cop_interlocks.
(mips_ip): Give a better error message if the ISA level is wrong.
(md_parse_option): Recognize -mcpu=[v][r]5000.

28 years ago * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
Fred Fish [Mon, 9 Sep 1996 03:14:35 +0000 (03:14 +0000)]
* alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
change for core_read_registers in struct core_fns.
* core-regset.c (fetch_core_registers): Ditto & add prototype.
* core-sol2.c (fetch_core_registers): Ditto & add prototype.
* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
* i386b-nat.c (fetch_core_registers): Ditto.
* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
* irix4-nat.c (fetch_core_registers): Ditto.
* irix5-nat.c (fetch_core_registers): Ditto.
* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
* m68knbsd-nat.c (fetch_core_registers): Ditto.
* mips-nat.c (fetch_core_registers): Ditto & add prototype.
* rs6000-nat.c (fetch_core_registers): Ditto.
* sparc-nat.c (fetch_core_registers): Ditto.
* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.

* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
* delta68-nat.c (register_addr): Ditto.
* gdbserver/low-linux.c (register_addr): Ditto.
* gdbserver/low-hppabsd.c (register_addr): Ditto.
* i386m3-nat.c (register_addr): Ditto.
* mips-nat.c (register_addr): Ditto.
* ultra3-nat.c (register_addr): Ditto.

28 years ago * alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
Fred Fish [Mon, 9 Sep 1996 03:01:49 +0000 (03:01 +0000)]
* alpha-nat.c (fetch_core_registers): Match Sep 4 gdbcore.h prototype
change for core_read_registers in struct core_fns.
* core-regset.c (fetch_core_registers): Ditto & add prototype.
* core-sol2.c (fetch_core_registers): Ditto & add prototype.
* i386aix-nat.c (fetch_core_registers): Ditto & add prototype.
* i386b-nat.c (fetch_core_registers): Ditto.
* i386mach-nat.c (fetch_core_registers): Ditto & add prototype.
* irix4-nat.c (fetch_core_registers): Ditto.
* irix5-nat.c (fetch_core_registers): Ditto.
* lynx-nat.c (fetch_core_registers): Ditto & add prototype.
* m68knbsd-nat.c (fetch_core_registers): Ditto.
* mips-nat.c (fetch_core_registers): Ditto & add prototype.
* rs6000-nat.c (fetch_core_registers): Ditto.
* sparc-nat.c (fetch_core_registers): Ditto.
* sun3-nat.c (fetch_core_registers): Ditto & add prototype.
* ultra3-nat.c (fetch_core_registers): Ditto & add prototype.

* alpha-nat.c (register_addr): Match Sep 4 gdbcore.h prototype change.
* delta68-nat.c (register_addr): Ditto.
* gdbserver/low-linux.c (register_addr): Ditto.
* gdbserver/low-hppabsd.c (register_addr): Ditto.
* i386m3-nat.c (register_addr): Ditto.
* mips-nat.c (register_addr): Ditto.
* ultra3-nat.c (register_addr): Ditto.

28 years ago * erc32.c (port_init): Disable this for __GO32__ (got no pty's
Stu Grossman [Sun, 8 Sep 1996 23:35:50 +0000 (23:35 +0000)]
* erc32.c (port_init):  Disable this for __GO32__ (got no pty's
there either...).

28 years ago * blockframe.c (inside_main_func): Cleanup slightly. Move
Stu Grossman [Sun, 8 Sep 1996 23:33:23 +0000 (23:33 +0000)]
* blockframe.c (inside_main_func):  Cleanup slightly.  Move
mainsym def into the block it's used in.
* configure.in configure:  Allow NATDEPFILES to be recognized in
.mh files regardless of whitespace.

* cpu32bug-rom.c (cpu32bug_cmds):  Change load_response string to
keep downloads from hanging.

* remote-wiggler.c:  Add support for flash upgrades.
* (wiggler_error):  Fix message format.  Add new error code.
* (wiggler_write_byets):  Error code is hex.  Report errors with
proper routine name.
* (wiggler_read_byets):  Report errors with proper routine name.
* (get_packet):  Add support for new flash commands.
* (wiggler_load):  Call clear_symtab_users() to reset things
properly after download.
* (flash_xfer_memory bdm_update_flash_command):  New funxtions to
support flash upgrades for Wiggler.
* (_initialize_remote_wiggler):  Add `bdm update-flash' command.

28 years ago * configure.in: Do build erc32 for DOS and Windows hosts.
Ian Lance Taylor [Sun, 8 Sep 1996 21:24:10 +0000 (21:24 +0000)]
* configure.in: Do build erc32 for DOS and Windows hosts.
* configure: Rebuild.

28 years agoSat Sep 7 13:25:55 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Sat, 7 Sep 1996 12:45:19 +0000 (12:45 +0000)]
Sat Sep  7 13:25:55 1996  James G. Smith  <jsmith@cygnus.co.uk>

* config/tc-mips.c (COUNT_TOP_ZEROES): Added macro to count
  leading zeroes.
(load_register): Ensure hi32 bits are not lost during lo32bit
  processing. Fix shift offset that was overflowing into the next
  instruction field. Add code to generate shorter sequences for
  constants with a single contiguous seqeuence of ones.

Fri Sep  6 18:23:54 1996  James G. Smith  <jsmith@cygnus.co.uk>

* gas/mips/dli.{s,d}: More test cases added.

NOTE: The COUNT_TOP_ZEROES macro is a bit bulky, and the same result
can be achieved by using a "standard" ffs() routine:
count = ffs(~v);
count = count == 0 ? 0 : 33 - count;

However the following timings (VR4300 CPU clock ticks on a CMA101
board) show the performance gain.

Number of ffs() for loop if/then/else conditional
leading    ?:
zeroes
-------------------------------------------------------------------------------
  0  167  179 266 251
  1 1718  283 263 259
  2 1670  379 287 295
  3 1622  475 311 311
  4 1574  571 295 287
  5 1534  667 311 319
  6 1478  763 307 299
  7 1430  859 323 323
  8 1382  962 287 295
  9 1334 1051 319 311
 10 1286 1154 299 307
 11 1238 1250 323 331
 12 1183 1346 299 307
 13 1135 1442 331 323
 14 1087 1546 311 319
 15 1039 1642 335 343
 16  991 1730 295 287
 17  950 1834 311 319
 18  895 1922 307 299
 19  847 2026 331 323
 20  799 2122 307 299
 21  751 2218 323 323
 22  703 2314 311 311
 23  655 2417 343 335
 24  599 2506 307 299
 25  559 2602 331 331
 26  511 2705 311 319
 27  463 2801 343 335
 28  407 2897 311 319
 29  367 2993 343 335
 30  311 3097 323 331
 31  271 3185 355 355
 32  215 3233 379 371

28 years agoFri Sep 6 17:56:17 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 7 Sep 1996 00:58:25 +0000 (00:58 +0000)]
Fri Sep  6 17:56:17 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* simops.c (OP_2600, OP_2601): Changed min and max comparisons
to use signed register values.

28 years agoFri Sep 6 17:07:12 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 7 Sep 1996 00:12:56 +0000 (00:12 +0000)]
Fri Sep  6 17:07:12 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>
* config/tc-d10v.c (d10v_dot_word): New function to support
"@word" with the word pseudo-op.
(md_apply_fix3): Cleanup and changes to support correct sizes
for 16 and 18-bit relocs.

28 years agoFri Sep 6 17:04:39 1996 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Sat, 7 Sep 1996 00:06:53 +0000 (00:06 +0000)]
Fri Sep  6 17:04:39 1996  Martin M. Hunt  <hunt@pizza.cygnus.com>

* elf32-d10v.c (elf_d10v_howto_table): Modify the size of R_D10V_16
and R_D10V_18 to be 1 (word).

28 years ago * configure.in (sparc-*-aout): Set `em'.
David Edelsohn [Fri, 6 Sep 1996 23:05:12 +0000 (23:05 +0000)]
* configure.in (sparc-*-aout): Set `em'.
* configure: Regenerated.
* config/te-sparcaout.h: New file.
* config/tc-sparc.h (TARGET_BYTES_BIG_ENDIAN): Define.
Ifdef TE_SPARCOUT define TARGET_FORMAT and SPARC_BIENDIAN.
* config/tc-sparc.c (INSN_BIG_ENDIAN): New macro.
(SPECIAL_CASE_{SETSW,SETX}): Define.
({NOP,OR,FMOVS,SETHI,SLLX,SRA}_INSN): Define.
(md_begin): Delete setting of `target_big_endian'.
(output_insn): New function.
(md_assemble): Rewrite.  Add `setx' support.
(sparc_ip): Handle `0' operand char.  Recognize setuw, setsw, setx
special cases.
(md_atof): Add little endian support.
(md_number_to_chars): Likewise.
(md_apply_fix): Likewise.
(md_longopts): Recognize -EL,-EB ifdef SPARC_BIENDIAN.
(md_parse_option): Likewise.
(md_show_usage): Print -EL, -EB ifdef SPARC_BIENDIAN.

28 years agorestore the space that need to be present
Geoffrey Noer [Fri, 6 Sep 1996 22:13:06 +0000 (22:13 +0000)]
restore the space that need to be present

28 years agoDon't include netinet/tcp.h in ser-tcp.c if __CYGWIN32__ defined
Geoffrey Noer [Fri, 6 Sep 1996 20:17:26 +0000 (20:17 +0000)]
Don't include netinet/tcp.h in ser-tcp.c if __CYGWIN32__ defined

28 years agobuild ser-tcp.o for cygwin32 hosted gdb
Geoffrey Noer [Fri, 6 Sep 1996 00:08:07 +0000 (00:08 +0000)]
build ser-tcp.o for cygwin32 hosted gdb

28 years ago * Makefile.in (inet-install): Don't run install-gzip.
Tom Tromey [Thu, 5 Sep 1996 20:11:14 +0000 (20:11 +0000)]
* Makefile.in (inet-install): Don't run install-gzip.

28 years ago * ldlang.c (section_already_linked): Accept a lang_input_statement
Ian Lance Taylor [Thu, 5 Sep 1996 19:26:12 +0000 (19:26 +0000)]
* ldlang.c (section_already_linked): Accept a lang_input_statement
as the PTR argument.  If the file is symbols only, discard all
input sections.
(ldlang_add_file): Pass entry to bfd_map_over_sections.
PR 10555.

28 years ago * stabs.c (_bfd_link_section_stabs): If the output_section field
Ian Lance Taylor [Thu, 5 Sep 1996 19:24:08 +0000 (19:24 +0000)]
* stabs.c (_bfd_link_section_stabs): If the output_section field
of either section is bfd_abs_section, then the linker is
discarding the section and we should not optimize it.
PR 10555.

28 years ago * value.h (COERCE_REF): Fix previous change.
Per Bothner [Thu, 5 Sep 1996 19:11:36 +0000 (19:11 +0000)]
* value.h (COERCE_REF):  Fix previous change.
(COERCE_ENUM):  Add a check_typedef  (this is the real fix).
This re-fixes pr-9946.

28 years ago * ecoff.c (ecoff_new_file): New function.
Ian Lance Taylor [Thu, 5 Sep 1996 17:43:06 +0000 (17:43 +0000)]
* ecoff.c (ecoff_new_file): New function.
* ecoff.h (ecoff_new_file): Declare.
* config/obj-ecoff.h (obj_app_file): Define.
PR 10548.

28 years ago * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
Wilfried Moser [Thu, 5 Sep 1996 10:32:09 +0000 (10:32 +0000)]
    * eval.c (evaluate_subexp_standard): In case of OP_ARRAY: make a
        better check of array boundaries.

28 years ago * gch1280.exp: Enhance test case.
Wilfried Moser [Thu, 5 Sep 1996 08:55:32 +0000 (08:55 +0000)]
    * gch1280.exp: Enhance test case.

28 years ago * configure: Update aclocal.m4 and re-run autoconf to get correct
Stu Grossman [Thu, 5 Sep 1996 08:33:28 +0000 (08:33 +0000)]
* configure:  Update aclocal.m4 and re-run autoconf to get correct
defs for BFD stuff.
* remote-wiggler.c (wiggler_error):  Error codes are hex.  Also,
fix default message generation.

28 years agoOops!
Stu Grossman [Thu, 5 Sep 1996 01:18:49 +0000 (01:18 +0000)]
Oops!

28 years agoAdd remote-wiggler.c.
Stu Grossman [Thu, 5 Sep 1996 01:17:19 +0000 (01:17 +0000)]
Add remote-wiggler.c.

28 years ago * Makefile.in erc32/Makefile.in: Don't set srcroot. This should
Stu Grossman [Thu, 5 Sep 1996 01:16:22 +0000 (01:16 +0000)]
* Makefile.in erc32/Makefile.in:  Don't set srcroot.  This should
be inherited from the parent.  Remove INSTALL_XFORM and
INSTALL_XFORM1.  Make INSTALL be set from configure.

28 years ago * rldefs.h: Enable HANDLE_SIGNALS for cygwin32.
Stu Grossman [Thu, 5 Sep 1996 01:07:37 +0000 (01:07 +0000)]
* rldefs.h:  Enable HANDLE_SIGNALS for cygwin32.

28 years ago * configure configure.in: Don't default CC to cc. It causes problems
Stu Grossman [Thu, 5 Sep 1996 01:06:10 +0000 (01:06 +0000)]
* configure configure.in:  Don't default CC to cc.  It causes problems
when starting a compile in the mmalloc directory.

28 years ago * Makefile.in: Add mswin to SUBDIRS. Add rules for
Stu Grossman [Thu, 5 Sep 1996 01:01:05 +0000 (01:01 +0000)]
* Makefile.in:  Add mswin to SUBDIRS.  Add rules for
mswin/libwingdb.a and remote-wiggler.o.
* breakpoint.c (breakpoint_here_p):  Clean up bp enabled test.
* (breakpoint_inserted_here_p):  New func, just like
breakpoint_here_p, except it's honest.  Honestly.
* breakpoint.h:  Proto for above.
start-sanitize-gdbtk
* configure configure.in:  Add host *windows* to list of hosts
that don't support GDBtk.
end-sanitize-gdbtk
* configure configure.in:  Add mswin to configdirs if host is
i[3456]86-*-windows.
* core-aout.c (fetch_core_registers register_addr) gdbcore.h:
Change all vars that can contain addresses to type CORE_ADDR.
* findvar.c (supply_register):  Allow val to be NULL.  This means
that regno is unsupported.
* (read_pc read_pc_pid write_pc write_pc_pid):  Make non-pid forms
just call pid forms with inferior_pid so that there's only once
place to hack PC's and such.
* infrun.c (proceed):  Don't skip breakpoints if user changed PC.
* remote-wiggler.c:  New file.  Support for BDM interface from
Macraigor Systems.
* serial.c:  Enhance serial logging capability.  Add hex and octal
output modes (set remotelogbase {hex|octal|ascii}.  Also log
breaks, timeouts, errors, and eofs.
* serial.h:  Redefine SERIAL_SEND_BREAK to go through a wrapper
function so that we can log breaks.  Don't export serial_logfile
or serial_logfp.
* top.c (execute_command):  Don't test for serial_logfp here.
Just call serial_log_comand, and let serial.c sort it out.
* valops.c (value_of_variable):  Don't attempt to establish frames
for static and global variables.  This makes things work a bit
better if the stack or frame pointer is trashed.
* config/m68k/monitor.mt (TDEPFILES):  Add remote-wiggler.o.
* config/m68k/tm-m68k.h:  Define STACK_ALIGN.  CPU32 can't hack
misaligned stacks during function calls.

28 years ago * configure.in: Don't config lots of things for *-*-windows*.
Stu Grossman [Thu, 5 Sep 1996 00:28:10 +0000 (00:28 +0000)]
* configure.in:  Don't config lots of things for *-*-windows*.

28 years ago * configure.tgt (alpha-*-gnu*): New target. From Fila Kolodny
Ian Lance Taylor [Wed, 4 Sep 1996 19:54:48 +0000 (19:54 +0000)]
* configure.tgt (alpha-*-gnu*): New target.  From Fila Kolodny
<fila@ibi.com>.

28 years ago * configure.in: Only build the MIPS simulator if we are using
Ian Lance Taylor [Wed, 4 Sep 1996 19:50:55 +0000 (19:50 +0000)]
* configure.in: Only build the MIPS simulator if we are using
gcc.
* configure: Rebuild.

28 years agoSecond pass at canadian cross
Michael Meissner [Wed, 4 Sep 1996 19:11:53 +0000 (19:11 +0000)]
Second pass at canadian cross

28 years agoFirst cut at dealing with canadian crosses; make -t in debugger set d10v_debug if...
Michael Meissner [Wed, 4 Sep 1996 18:50:13 +0000 (18:50 +0000)]
First cut at dealing with canadian crosses; make -t in debugger set d10v_debug if DEBUG

28 years agoMore debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure...
Michael Meissner [Wed, 4 Sep 1996 17:42:51 +0000 (17:42 +0000)]
More debug support; Enable -t/-v to work correctly; Add --enable-sim-cflags configure switch

28 years ago * terminal.h: Don't use #elif.
Ian Lance Taylor [Wed, 4 Sep 1996 17:09:43 +0000 (17:09 +0000)]
* terminal.h: Don't use #elif.

28 years agoEnhance debug support
Michael Meissner [Wed, 4 Sep 1996 15:41:43 +0000 (15:41 +0000)]
Enhance debug support

28 years ago * gch1272.{ch,exp}, gch1280.{ch,exp}, pr-9946.{ch,exp}:
Wilfried Moser [Wed, 4 Sep 1996 14:34:15 +0000 (14:34 +0000)]
    * gch1272.{ch,exp}, gch1280.{ch,exp}, pr-9946.{ch,exp}:
        New test cases.

28 years ago * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
Wilfried Moser [Wed, 4 Sep 1996 14:29:37 +0000 (14:29 +0000)]
    * ch-exp.c (parse_tuple_element): Allow (*): for array tuples
        if we have a type.

        * eval.c (evaluate_subexp_standard): In case of OP_ARRAY:
        check number of args against bounds of array to avoid
        memory corruption.

        * value.h (COERCE_REF): Do a CHECK_TYPEDEF in case we get
        a TYPE_CODE_TYPEDEF.

28 years ago * config/tc-mips.c (load_register): Remove unused variable tmp.
Ian Lance Taylor [Wed, 4 Sep 1996 14:26:20 +0000 (14:26 +0000)]
* config/tc-mips.c (load_register): Remove unused variable tmp.

28 years agoWed Sep 4 11:24:29 1996 James G. Smith <jsmith@cygnus.co.uk>
Jackie Smith Cashion [Wed, 4 Sep 1996 13:15:28 +0000 (13:15 +0000)]
Wed Sep  4 11:24:29 1996  James G. Smith  <jsmith@cygnus.co.uk>

* config/tc-mips.c (load_register): Remove unnecessary code that
  was causing the high 32bits of 64bit constants to be lost.

Fixes PR10503. The compiler was producing the assembler code:
dli $3,0xfffffffffffff
when constructing the softfloat library. Unfortunately it was being
incorrectly assembled.

28 years ago * simops.c: Include correct syscall.h for d10v, not host's.
Mark Alexander [Wed, 4 Sep 1996 11:51:06 +0000 (11:51 +0000)]
* simops.c: Include correct syscall.h for d10v, not host's.
Fix #ifdef SYS_stat.

28 years ago * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
Jeff Law [Wed, 4 Sep 1996 03:03:53 +0000 (03:03 +0000)]
    * elf32-v850.c (bfd_elf32_v850_reloc): Fix handling of
        low order sign bit propogationfor R_V850_HI16_S.
Fixes c-torture execute/950221-1.c, maybe others.

28 years ago * Makefile.in (aout-sparcle.o): New target.
David Edelsohn [Tue, 3 Sep 1996 19:52:15 +0000 (19:52 +0000)]
* Makefile.in (aout-sparcle.o): New target.
* aoutf1.h (TARGET_IS_BIG_ENDIAN_P): Don't define if little endian.
* config.bfd (sparclet-*-aout*): Add case.
* configure.in (sparcle_aout_vec): Add case.
* configure: Regenerated.
* libaout.h (machine_type): Add M_SPARCLET_LE.
* targets.c (sparcle_aout_vec): Declare.
(bfd_target_vector): Add sparcle_aout_vec.
* aout-sparcle.c: New file.

28 years ago * gencode.c: Fix various indention & style problems.
Jeff Law [Tue, 3 Sep 1996 18:31:48 +0000 (18:31 +0000)]
    * gencode.c: Fix various indention & style problems.
        Remove test code.  Remove #if 0 code.
        * interp.c: Provide prototypes for all static functions.
        Fix minor indention problems.
        (sim_open, sim_resume): Remove unused variables.
        (sim_read): Return type is "int".
        * simops.c: Remove unused variables.
        (divh): Make result of divide-by-zero zero.
        (setf): Initialize result to keep compiler quiet.
        (sar instructions): These just clear the overflow bit.
        * v850_sim.h: Provide prototypes for put_byte, put_half
        and put_word.
Cleaning up.

28 years ago * v850-dis.c (disassemble): Make static. Provide prototype.
Jeff Law [Tue, 3 Sep 1996 18:05:25 +0000 (18:05 +0000)]
    * v850-dis.c (disassemble): Make static.  Provide prototype.

28 years agoPortability fixes; re-add printf/putchar traps
Michael Meissner [Tue, 3 Sep 1996 18:01:03 +0000 (18:01 +0000)]
Portability fixes; re-add printf/putchar traps

28 years ago * config/tc-v850.c: Remove commented out and #if 0'd code.
Jeff Law [Tue, 3 Sep 1996 17:59:16 +0000 (17:59 +0000)]
    * config/tc-v850.c: Remove commented out and #if 0'd code.
        (v850_reloc_prefix): Provide prototype.
        (postfix, get_reloc, build_insn): Remove prototypes for nonexistant
        functions.
        (md_begin, md_assemble, md_apply_fix3): Remove unused variables.
        (md_assemble): Add default to case statement.
Minor cleanups.

28 years agoFix typpppo
Jeff Law [Tue, 3 Sep 1996 17:15:16 +0000 (17:15 +0000)]
Fix typpppo

28 years ago * interp.c: OP should be an array of 32bit operands!
Jeff Law [Tue, 3 Sep 1996 16:25:51 +0000 (16:25 +0000)]
    * interp.c: OP should be an array of 32bit operands!
        (v850_callback): Declare.
        (do_format_5): Fix extraction of OP[0].
        (sim_size): Remove debugging printf.
        (sim_set_callbacks): Do something useful.
        (sim_stop_reason): Gross hacks to get c-torture running.
        * simops.c: Simplify code for computing targets of bCC
        insns.   Invert 's' bit if 'ov' bit is set for some
        instructions.  Fix 'cy' bit handling for numerous
        instructions.  Make the simulator stop when a halt
        instruction is encountered.  Very crude support for
        emulated syscalls (trap 0).
        * v850_sim.h: Include "callback.h" and declare
        v850_callback.  Items in the operand array are 32bits.
Fixes & syscall stuff.

28 years ago * elf32-v850.c (bfd_elf3_v850_reloc): New function for
Jeff Law [Tue, 3 Sep 1996 08:14:53 +0000 (08:14 +0000)]
    * elf32-v850.c (bfd_elf3_v850_reloc): New function for
        handling V850 specific relocs.
        (elf_v850_howto_table): Use the new function for some
        relocations.  Twiddle masks & shifts for some relocs.
        Set partial_inplace where needed.
Fixing more stuff.

28 years agoRemove reloc.c from v850_files.
Mark Alexander [Mon, 2 Sep 1996 23:23:11 +0000 (23:23 +0000)]
Remove reloc.c from v850_files.

28 years agowhoops--typo
Ian Lance Taylor [Mon, 2 Sep 1996 16:41:29 +0000 (16:41 +0000)]
whoops--typo

28 years agofile was really removed a long time ago
Ian Lance Taylor [Mon, 2 Sep 1996 16:41:28 +0000 (16:41 +0000)]
file was really removed a long time ago

28 years ago * .Sanitize: Remove reloc.c from v850_files.
Mark Alexander [Sun, 1 Sep 1996 22:25:50 +0000 (22:25 +0000)]
* .Sanitize: Remove reloc.c from v850_files.

28 years ago * rs6000-core.c (rs6000coff_core_file_matches_executable_p):
Ian Lance Taylor [Sun, 1 Sep 1996 19:44:40 +0000 (19:44 +0000)]
* rs6000-core.c (rs6000coff_core_file_matches_executable_p):
Rewrite to use BFD file read routines and to avoid using a fixed
length for the file name.

28 years ago * config/tc-v850.c (md_assemble): Compute size of the instrction
Jeff Law [Sat, 31 Aug 1996 22:04:08 +0000 (22:04 +0000)]
    * config/tc-v850.c (md_assemble): Compute size of the instrction
        from the opcode.

28 years ago * v850-dis.c (disassemble): Handle insertion of ',', '[' and
Jeff Law [Sat, 31 Aug 1996 22:00:45 +0000 (22:00 +0000)]
    * v850-dis.c (disassemble): Handle insertion of ',', '[' and
        ']' characters into the output stream.
        * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
        Add "memop" field to all opcodes (for the disassembler).
        Reorder opcodes so that "nop" comes before "mov" and "jr"
        comes before "jarl".
Should give us a functional disassembler.

28 years ago * v850-dis.c (print_insn_v850): Properly handle disassembling
Jeff Law [Sat, 31 Aug 1996 21:21:27 +0000 (21:21 +0000)]
    * v850-dis.c (print_insn_v850): Properly handle disassembling
        a two byte insn at the end of a memory region when the memory
        region's size is only two byte aligned.

28 years ago * v850-dis.c (v850_cc_names): Fix stupid thinkos.
Jeff Law [Sat, 31 Aug 1996 21:10:43 +0000 (21:10 +0000)]
    * v850-dis.c (v850_cc_names): Fix stupid thinkos.

28 years ago * v850-dis.c (v850_reg_names): Define.
Jeff Law [Sat, 31 Aug 1996 20:56:05 +0000 (20:56 +0000)]
    * v850-dis.c (v850_reg_names): Define.
        (v850_sreg_names, v850_cc_names): Likewise.
        (disassemble): Very rough cut at printing operands (unformatted).
One step at a time.

        * v850-opc.c (BOP_MASK): Fix.
        (v850_opcodes): Fix mask for jarl and jr.
Bugs exposed by disassembler testing.

28 years ago * dis-asm.h (print_insn_v850): Declare.
Jeff Law [Sat, 31 Aug 1996 19:26:47 +0000 (19:26 +0000)]
    * dis-asm.h (print_insn_v850): Declare.

28 years ago * v850-dis.c: New file. Skeleton for disassembler support.
Jeff Law [Sat, 31 Aug 1996 19:22:11 +0000 (19:22 +0000)]
    * v850-dis.c: New file.  Skeleton for disassembler support.
        * Makefile.in Remove v850 references, they're not needed here
        and they weren't being sanitized away.
        * configure.in: Add v850-dis.o when building v850 toolchains.
        * configure: Rebuilt.
        * disassemble.c (disassembler): Call v850 disassembler.

28 years ago * v850-dis.c: New file. Skeleton for disassembler support.
Jeff Law [Sat, 31 Aug 1996 19:20:28 +0000 (19:20 +0000)]
    * v850-dis.c: New file.  Skeleton for disassembler support.
        * Makefile.in Remove v850 references, they're not needed here
        and they weren't being sanitized away.
        * configure.in: Add v850-dis.o when building v850 toolchains.
        * configure: Rebuilt.
        * disassemble.c (disassembler): Call v850 disassembler.
Skeleton support for V850 disassembler.

28 years ago * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
Jeff Law [Sat, 31 Aug 1996 18:36:19 +0000 (18:36 +0000)]
    * config/tc-v850.c (md_apply_fix3): Do simple byte, short and
        word fixups too.
Fixes "difference between forward references".

28 years ago * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
Jeff Law [Sat, 31 Aug 1996 18:23:02 +0000 (18:23 +0000)]
    * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
        (insert_d8_6, extract_d8_6): New functions.
        (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
        Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
        Add D8_6.
        (IF4A, IF4B): Use "D7" instead of "D7S".
        (IF4C, IF4D): Use "D8_7" instead of "D8".
        (IF4E, IF4F): New.  Use "D8_6".
        (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b.  Use IF4C/IF4D for
        sld.h/sst.h.  Use IF4E/IF4F for sld.w/sst.w.
So we can assemble sst/sld instructions correctly.

28 years ago * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
Jeff Law [Sat, 31 Aug 1996 17:43:28 +0000 (17:43 +0000)]
    * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
        (v850_operands): Change D16 to D16_15, use special insert/extract
        routines.  New new D16 that uses the generic insert/extract code.
        (IF7A, IF7B): Use D16_15.
        (IF7C, IF7D): New.  Use D16.
        (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.