binutils-gdb.git
29 years agoFix bug in SH3e ftrc instruction.
Jim Wilson [Thu, 31 Aug 1995 19:37:41 +0000 (19:37 +0000)]
Fix bug in SH3e ftrc instruction.

29 years agoTue Aug 29 19:42:58 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
Ian Lance Taylor [Thu, 31 Aug 1995 17:50:20 +0000 (17:50 +0000)]
Tue Aug 29 19:42:58 1995  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

* config/tc-m68k.c (m68k_ip) [case POST/PRE/BASE]: Fix typo when
  looking at outer displacement.  Don't set the postindex bit if the
  index suppress bit is set (for memory indirect addressing mode).

29 years ago * bfd-in.h: Add extern "C" if __cplusplus.
Ian Lance Taylor [Thu, 31 Aug 1995 16:23:02 +0000 (16:23 +0000)]
* bfd-in.h: Add extern "C" if __cplusplus.
* bfd-in2.h: Rebuild.
PR 7882.

29 years ago * coff-mips.c (mips_relocate_section): Don't convert a reloc
Ian Lance Taylor [Thu, 31 Aug 1995 15:54:27 +0000 (15:54 +0000)]
* coff-mips.c (mips_relocate_section): Don't convert a reloc
against an absolute symbol into a reloc against a section.
PR 7880.

29 years agoThu Aug 31 08:00:14 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Thu, 31 Aug 1995 15:05:27 +0000 (15:05 +0000)]
Thu Aug 31 08:00:14 1995  steve chamberlain  <sac@slash.cygnus.com>

* coff-arm.c (coff_arm_reloc): Fix common size problem.
(i3coff_object_p): Delete.

Wed Aug 30 20:41:27 1995  steve chamberlain  <sac@slash.cygnus.com>

* coff-arm.c (deletemeacoff_arm_reloc): Deleted.
(arm26): Not partial inplace.
* coffcode.h (coff_compute_section_file_positions): Don't
do page aligning if COFF_PAGE_SIZE isn't defined.
* coffswap.h (coff_swap_scnhdr_in): Update image base correctly.

29 years ago * config/tc-arm.c (tc_gen_reloc): Delete duplicated code.
David Edelsohn [Thu, 31 Aug 1995 13:50:56 +0000 (13:50 +0000)]
* config/tc-arm.c (tc_gen_reloc): Delete duplicated code.

29 years ago * dlltool.c (run): Add missing 3rd arg to waitpid.
David Edelsohn [Thu, 31 Aug 1995 11:10:32 +0000 (11:10 +0000)]
* dlltool.c (run): Add missing 3rd arg to waitpid.

29 years ago * Makefile.in (run): Link in math library too.
Jeff Law [Thu, 31 Aug 1995 04:22:57 +0000 (04:22 +0000)]
* Makefile.in (run): Link in math library too.

29 years ago * interp.c (FPSCR, FPUL): Define.
Jeff Law [Thu, 31 Aug 1995 04:21:32 +0000 (04:21 +0000)]
* interp.c (FPSCR, FPUL): Define.
(struct save_state): Add fields for floating point registers,
FPSCR and FPUL.
(sim_resume): Add 'F' for accessing floating point registers
in the save state structure.
* gencode.c: Add sh3e opcodes.
(gensym): Define a buffer for int<->fp conversions.

First cut at simulating sh3e instructions.  Basic stuff should work;
instructions using fpul and fpscr are completely untested...  Sanitized
away for now (sh3e).

29 years ago * configure.in: treat i386-win32 canadian cross the same as
Jason Molenda [Thu, 31 Aug 1995 04:08:15 +0000 (04:08 +0000)]
    * configure.in: treat i386-win32 canadian cross the same as
        i386-go32 canadian cross.

29 years ago * gencode.c (gensim): abort if an unknown opcode is encountered.
Jeff Law [Thu, 31 Aug 1995 04:07:00 +0000 (04:07 +0000)]
* gencode.c (gensim): abort if an unknown opcode is encountered.

29 years ago * app.c (do_scrub_chars): Free saved_input when the from buffer
Ian Lance Taylor [Thu, 31 Aug 1995 03:53:43 +0000 (03:53 +0000)]
* app.c (do_scrub_chars): Free saved_input when the from buffer
exactly fills the to buffer.

29 years agoWed Aug 30 20:41:27 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Thu, 31 Aug 1995 03:47:46 +0000 (03:47 +0000)]
Wed Aug 30 20:41:27 1995  steve chamberlain  <sac@slash.cygnus.com>

* coff-arm.c (deletemeacoff_arm_reloc): Deleted.
(arm26): Not partial inplace.
* coffcode.h (coff_compute_section_file_positions): Don't
do page aligning if COFF_PAGE_SIZE isn't defined.
* coffswap.h (coff_swap_scnhdr_in): Update image base correctly.

29 years ago * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
Kung Hsu [Thu, 31 Aug 1995 01:21:57 +0000 (01:21 +0000)]
    * rmote-nindy.c (non_dle, nidy_resume, nindy_wait): Changes to
        conform to GNU coding standards.

29 years ago * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
David Edelsohn [Wed, 30 Aug 1995 23:17:12 +0000 (23:17 +0000)]
* sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
sparc64 insns.

29 years ago(synth64.[ds]): New testcase.
David Edelsohn [Wed, 30 Aug 1995 23:11:09 +0000 (23:11 +0000)]
(synth64.[ds]): New testcase.

29 years ago(prefetch.[sd]): New testcase.
David Edelsohn [Wed, 30 Aug 1995 20:58:35 +0000 (20:58 +0000)]
(prefetch.[sd]): New testcase.

29 years agosparc prefetch insn stuff.
David Edelsohn [Wed, 30 Aug 1995 20:57:07 +0000 (20:57 +0000)]
sparc prefetch insn stuff.

29 years ago * sparc-opc.c (sparc_opcodes, prefetcha insn): Fix.
David Edelsohn [Wed, 30 Aug 1995 20:55:51 +0000 (20:55 +0000)]
* sparc-opc.c (sparc_opcodes, prefetcha insn): Fix.
(lookup_{name,value}): New functions.
(prefetch_table): New static local.
(sparc_{encode,decode}_prefetch): New functions.
* sparc-dis.c (print_insn): Handle '*' arg (prefetch function).

29 years ago * config/tc-sparc.c (parse_keyword_arg, parse_const_expr_arg): New fns.
David Edelsohn [Wed, 30 Aug 1995 20:49:28 +0000 (20:49 +0000)]
* config/tc-sparc.c (parse_keyword_arg, parse_const_expr_arg): New fns.
(sparc_ip): Call them for asi, membar, and prefetch parsing.

29 years agoAdd some blank lines to improve readability.
Jim Wilson [Wed, 30 Aug 1995 18:13:26 +0000 (18:13 +0000)]
Add some blank lines to improve readability.

29 years agoCorrect comment on first line of file.
Jim Wilson [Wed, 30 Aug 1995 18:10:51 +0000 (18:10 +0000)]
Correct comment on first line of file.

29 years ago * Makefile.in (TOOL_PROGS): Include dlltool if needed.
Steve Chamberlain [Wed, 30 Aug 1995 18:03:16 +0000 (18:03 +0000)]
* Makefile.in (TOOL_PROGS): Include dlltool if needed.

29 years agoKeep the sparc subdir.
David Edelsohn [Wed, 30 Aug 1995 06:03:39 +0000 (06:03 +0000)]
Keep the sparc subdir.

29 years ago(membar): New testcase.
David Edelsohn [Wed, 30 Aug 1995 01:34:34 +0000 (01:34 +0000)]
(membar): New testcase.

29 years ago * disassemble.c (disassembler): Handle bfd_mach_sparc64.
David Edelsohn [Wed, 30 Aug 1995 01:02:59 +0000 (01:02 +0000)]
* disassemble.c (disassembler): Handle bfd_mach_sparc64.

29 years ago Put _iname in idata$7.
Steve Chamberlain [Tue, 29 Aug 1995 23:27:54 +0000 (23:27 +0000)]
Put _iname in idata$7.

29 years ago * coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
Steve Chamberlain [Tue, 29 Aug 1995 23:26:43 +0000 (23:26 +0000)]
* coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
Swap in PE header.
* coffcode.h (coff_write_object_contents): Remove #if0ed code
Only remove empty sections in PE inmage files.

29 years ago * config/tc-sparc.c (sparc_ip): Clean up ASI support.
David Edelsohn [Tue, 29 Aug 1995 22:48:54 +0000 (22:48 +0000)]
* config/tc-sparc.c (sparc_ip): Clean up ASI support.

29 years ago * sparc-opc.c (asi): New static local.
David Edelsohn [Tue, 29 Aug 1995 22:44:00 +0000 (22:44 +0000)]
* sparc-opc.c (asi): New static local.
(sparc_{encode,decode}_asi): New functions.
* sparc-dis.c (print_insn): Call sparc_decode_asi.

29 years ago * sparc.h (sparc_{encode,decode}_asi): Declare.
David Edelsohn [Tue, 29 Aug 1995 22:36:32 +0000 (22:36 +0000)]
* sparc.h (sparc_{encode,decode}_asi): Declare.

29 years agoStart of sparc generic testsuite.
David Edelsohn [Tue, 29 Aug 1995 22:30:13 +0000 (22:30 +0000)]
Start of sparc generic testsuite.
asi.[ds]: new test.

29 years ago * coff-arm.c (coff_rtype_to_howto): Deal with reloc 11.
Steve Chamberlain [Tue, 29 Aug 1995 22:28:30 +0000 (22:28 +0000)]
* coff-arm.c (coff_rtype_to_howto): Deal with reloc 11.
* coffcode.h (coff_write_object_contents): Remove #if0ed code
Only remove empty sections in PE inmage files.

29 years agoTue Aug 29 13:50:21 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 29 Aug 1995 21:05:59 +0000 (21:05 +0000)]
Tue Aug 29 13:50:21 1995  steve chamberlain  <sac@slash.cygnus.com>

* libbfd.h, bfd-in2.h: regenerated.
* coff-arm.c (aoutarm_std_relo): New entry at 11.
(arm_reloc_type_lookup) : Understand type 11.
* coff-i386.c (howto_table): fix name of rva type.
(coff-i386_rtype_to_howto): Understand R_IMAGEBASE type.
* coffcode.h (sec_to_styp_flags): .edata is data.
(coff_compute_section_file_positions): Get page size right for PE.
(fill_pe_header_info): Fix fields.
(coff_write_object_contents): Remove end_of_image calc.
(_bfd_coff_generate_reloc_section): Remove orphaned comment.
* coffswap.h (coff_swap_scnhdr_in): Don't always add IMAGE_BASE.
(coff_swap_scnhdr_out): Setup PE flags correctly.
* reloc.c (BFD_RELOC_RVA): New field.

29 years agoTue Aug 29 13:25:21 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 29 Aug 1995 20:29:04 +0000 (20:29 +0000)]
Tue Aug 29 13:25:21 1995  steve chamberlain  <sac@slash.cygnus.com>

* dlltool.c (rva): Deleted.
(rvaafter, rva_before): Use new assembler pseudo.
(flush_page, gen_exp_file, gen_lib_file): Use new way of RVAing.
(gen_exp_file): Don't generate .edata if no need.
(gen_lib_file): Don't make timestamp.
(workout_prefix): Fix memory initialization bug.
(usage): Tidy up, delete many single char options.
(main): rva option is gone.

29 years agoTue Aug 29 13:20:27 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 29 Aug 1995 20:28:15 +0000 (20:28 +0000)]
Tue Aug 29 13:20:27 1995  steve chamberlain  <sac@slash.cygnus.com>

* read.c (potable): Rva is new entry.
(cons_worker): New, split from cons.  Handles rva.
(cons, s_rva): Call cons_worker.
* read.h (s_rva): New declaration.
* write.c (fixup_segment): Don't throw away rva relocs.
* config/tc-arm.c (md_apply_fix, tc_gen_reloc): Handle RVA.
* config/tc-i386.c (tc_coff_fix2type): Handle RVA.
* config/tc-i386.h (TC_COUNT_RELOC): Remember RVAs.
(TC_RVA_RELOC): New definition.

29 years ago * remote.c (remote_wait): Revert 19 July my change which should be
Kung Hsu [Tue, 29 Aug 1995 00:11:16 +0000 (00:11 +0000)]
    * remote.c (remote_wait): Revert 19 July my change which should be
        customer specific.

29 years ago * gdb.base/callfuncs.exp (do_function_calls): Add alpha-dec-osf2*
Fred Fish [Mon, 28 Aug 1995 09:44:14 +0000 (09:44 +0000)]
* gdb.base/callfuncs.exp (do_function_calls):  Add alpha-dec-osf2*
clear_xfail for "p t_float_values2(3.14159,float_val2)" for gcc
compiled test.
* gdb.base/opaque.exp (setup_xfail_on_opaque_pointer):
Add mips-sgi-irix5* xfail for not gcc compiled.
* gdb.base/Makefile.in (nodebug.o):  Also create nodebug.ci.
* gdb.base/nodebug.exp: Add mips-sgi-irix5 xfail when not gcc compiled for
"p top", "whatis top", "p middle", and "whatis middle".
* gdb.base/whatis.exp: Add mips-sgi-irix* xfail for
"whatis signed char" for not gcc compiled.
* gdb.base/setvar.exp: Add mips-sgi-irix4* xfail (works on irix5) for
"set variable signed char=-1 (-1)" and
"set variable signed char=0xFF (0xFF)" for not gcc compiled.
* gdb.base/funcargs.exp (float_and_integral_args):
Add mips-sgi-irix5* xfail for "run to call2a" for not gcc compiled.
Add mips-sgi-irix* xfail when not gcc compiled for
"continue to call2b".
Add mips-sgi-irix4* xfail (works with irix5) when gcc compiled for
"continue to call2g".
(discard_and_shuffle): Add mips-sgi-irix5* xfail whn not gcc compiled for
"backtrace from call6a"
(shuffle_round_robin): Add mips-sgi-irix* xfail when not gcc compiled for
"backtrace from call7k".
Add mips-sgi-irix5* xfail when not gcc compiled for
"backtrace from call7a".
(localvars_after_alloca):  Fix gdb_test cmds for
"print * after runto ...".
Remove rs6000-*-* xfails for
"print i after runto localvars_after_alloca" and
"print l after runto localvars_after_alloca"
for all compilers.
* gdb.base/exprs.exp: Add mips-sgi-irix4* xfails (works with irix5),
  when not compiled with gcc, for:
"print signed char == (minus)",
"print signed char != (minus)",
"print signed char < (minus)",
"print signed char > (minus)".
* gdb.base/callfuncs.exp (do_function_calls):
Add mips-sgi-irix* xfail, when compiled with native compiler, for
"call inferior func with struct - returns char *".
* gdb.base/return.exp (return_tests): Change xfail for
"correct value returned double test" to include Solaris 2.4.
* gdb.base/funcargs.exp (float_and_integral_args):
Add sparc-sun-solaris2* xfail for "print f1 after run to call2a".

29 years ago * config/tc-arm.c (do_swi): Allow optional leading '#'.
David Edelsohn [Mon, 28 Aug 1995 00:45:44 +0000 (00:45 +0000)]
* config/tc-arm.c (do_swi): Allow optional leading '#'.

29 years ago * config/te-delta.h: Include obj-format.h.
Ian Lance Taylor [Sun, 27 Aug 1995 01:18:28 +0000 (01:18 +0000)]
* config/te-delta.h: Include obj-format.h.
* config/te-sco386.h: Likewise.
* config/te-sysv32.h: Likewise.

29 years ago * app.c (scrub_file): Remove.
Ian Lance Taylor [Sun, 27 Aug 1995 00:33:56 +0000 (00:33 +0000)]
* app.c (scrub_file): Remove.
(scrub_from_file, scrub_to_file): Remove.
(scrub_string, scrub_last_string): Remove.
(scrub_from_string, scrub_to_string): Remove.
(saved_input, saved_input_len): New static variables.
(struct app_saved): Remove scrub_string, scrub_last_string, and
scrub_file fields.  Add saved_input and saved_input_len fields.
(app_push): Adjust saved fields for changes in struct app_save.
Initialize state and saved_input.
(app_pop): Adjust saved fields for changes in struct app_save.
(do_scrub_chars): Rename from do_scrub_next_char and rewrite to
process a buffer at a time rather than a character at a time.
(main, as_warn): Remove obsolete testing code.
* as.h (do_scrub_next_char): Don't declare.
(do_scrub_chars): Declare.
(scrub_from_file, scrub_from_string): Don't declare.
(scrub_to_file, scrub_to_string): Don't declare.
* input-file.c (input_file_get): New static function.
(input_file_give_next_buffer): Call do_scrub_chars rather than
do_scrub_next_char.
* read.c (scrub_string, scrub_string_end): New static variables.
(scrub_from_string): New static function.
(read_a_source_file): Call do_scrub_chars rather than
do_scrub_next_char.
(and comment change in input-scrub.c)

29 years ago * gdb.base/setvar.c, gdb.base/setvar.exp: Add new tests for
Peter Schauer [Sat, 26 Aug 1995 07:36:45 +0000 (07:36 +0000)]
* gdb.base/setvar.c, gdb.base/setvar.exp:  Add new tests for
enumeration bitfields if compiling with GNU C.
* lib/gdb.exp:  Consume `(y or n) ' in `Reinitialize source path
to empty' prompt.

29 years ago * mdebugread.c (parse_symbol): Handle sh.value of zero for enums.
Peter Schauer [Sat, 26 Aug 1995 07:35:13 +0000 (07:35 +0000)]
* mdebugread.c (parse_symbol):  Handle sh.value of zero for enums.
Determine signedness of enum type from enumerators.
(parse_type):  Handle btIndirect types, handle fBitfield for
some non-member types.
(upgrade_type):  Use TYPE_FLAG_TARGET_STUB for arrays with
unknown length.
(cross_ref):  Handle stIndirect forward reference to btTypedef.

* stabsread.c (read_enum_type):  Determine signedness of enum
type from enumerators.

* top.c (execute_command):  Remove trailing whitespace from
command arguments, except for `set' and `complete' commands.
(validate_comname):  Allow underscores in user defined command
names.

* values.c (modify_field):  Change `Value does not fit in %d bits'
error to a warning. Exclude sign extension bits of negative field
values from fit check.

29 years agoOnly build PowerPC simulator if target is powerpc*-*-eabisim
Michael Meissner [Fri, 25 Aug 1995 16:05:32 +0000 (16:05 +0000)]
Only build PowerPC simulator if target is powerpc*-*-eabisim

29 years ago * gasp.c (as_abort): New function.
Ian Lance Taylor [Fri, 25 Aug 1995 02:00:39 +0000 (02:00 +0000)]
* gasp.c (as_abort): New function.
* sb.c (sb_build): Revert yesterday's patch.

29 years ago * Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a.
Ian Lance Taylor [Fri, 25 Aug 1995 01:51:14 +0000 (01:51 +0000)]
* Makefile.in (gasp.new): Depend upon ../libiberty/libiberty.a.
Just link against libiberty, not against $(LIBS).

29 years agoAdd powerpc*-eabisim support.
Michael Meissner [Thu, 24 Aug 1995 18:57:12 +0000 (18:57 +0000)]
Add powerpc*-eabisim support.

29 years ago * ecoff.c (_bfd_ecoff_slurp_symbolic_info): Add parentheses to FIX
Ian Lance Taylor [Wed, 23 Aug 1995 23:50:35 +0000 (23:50 +0000)]
* ecoff.c (_bfd_ecoff_slurp_symbolic_info): Add parentheses to FIX
expression to avoid compiler bug on HP-UX 9.01.

29 years ago * sb.c (sb_build): Undefine abort before calling it, since gasp
Ian Lance Taylor [Wed, 23 Aug 1995 22:21:51 +0000 (22:21 +0000)]
* sb.c (sb_build): Undefine abort before calling it, since gasp
does not provide as_abort.

29 years agoAdd PowerPC simulator from Andrew Cagney <cagney@highland.com.au>
Michael Meissner [Wed, 23 Aug 1995 21:06:36 +0000 (21:06 +0000)]
Add PowerPC simulator from Andrew Cagney <cagney@highland.com.au>

29 years agoLink in PowerPC simulator.
Michael Meissner [Wed, 23 Aug 1995 20:59:06 +0000 (20:59 +0000)]
Link in PowerPC simulator.

29 years ago * coffcode.h (pe_value): Unansify.
Steve Chamberlain [Wed, 23 Aug 1995 16:51:07 +0000 (16:51 +0000)]
* coffcode.h (pe_value): Unansify.

29 years agoAdd support for -disable switches in PowerPC multilibs
Michael Meissner [Wed, 23 Aug 1995 15:54:13 +0000 (15:54 +0000)]
Add support for -disable switches in PowerPC multilibs

29 years agoFix -mlittle/-mbig so that it really does override the default endianess
Michael Meissner [Wed, 23 Aug 1995 14:59:16 +0000 (14:59 +0000)]
Fix -mlittle/-mbig so that it really does override the default endianess

29 years ago * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
Jeff Law [Tue, 22 Aug 1995 19:09:39 +0000 (19:09 +0000)]
    * gdb.base/scope.exp: xfail 'scope0.c'::filelocal_bss before run
        test for PRO targets.

29 years ago * Makefile.in (install): Remove "brokensed" hack, unnecessary now
Jeff Law [Tue, 22 Aug 1995 17:01:20 +0000 (17:01 +0000)]
    * Makefile.in (install): Remove "brokensed" hack, unnecessary now
        that we're using autoconf.

29 years agoTue Aug 22 07:36:58 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 22 Aug 1995 14:38:01 +0000 (14:38 +0000)]
Tue Aug 22 07:36:58 1995  steve chamberlain  <sac@slash.cygnus.com>

* scripttempl/pe.sc: Keep .edata, don't base stabs at 0.
* emulparams/armpe.sh: Run PE script.

29 years ago * tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values.
Jeff Law [Tue, 22 Aug 1995 09:52:33 +0000 (09:52 +0000)]
* tm-hppa.h (EXTRACT_RETURN_VALUE): Fix for FP values.

29 years ago * tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
Jeff Law [Tue, 22 Aug 1995 08:13:34 +0000 (08:13 +0000)]
* tm-hppa.h (STORE_RETURN_VALUE): Fix to work with -msoft-float
calling conventions too.  Use the TYPE of the return value, not
its length to determine if it should also be copied into the
floating point registers.

29 years ago * tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete. Causes more
Jeff Law [Tue, 22 Aug 1995 08:04:15 +0000 (08:04 +0000)]
* tm-hppa.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete.  Causes more
problems than it fixes.
* hppa-tdep.c (skip_prologue): If we exit the main loop without
finding all the register saves, retry again without looking for
the registers we could not find the first time.

Better fix for 7768.

29 years agonew routine xstrerror for better vms error handling; gas fixed to use it
Ken Raeburn [Tue, 22 Aug 1995 07:34:00 +0000 (07:34 +0000)]
new routine xstrerror for better vms error handling; gas fixed to use it

29 years agovms changes
Ken Raeburn [Tue, 22 Aug 1995 07:06:13 +0000 (07:06 +0000)]
vms changes

29 years agoturn on -O2
Steve Chamberlain [Tue, 22 Aug 1995 07:04:48 +0000 (07:04 +0000)]
turn on -O2

29 years ago (coff_write_object_contents): Initialze link_data if not set.
Steve Chamberlain [Tue, 22 Aug 1995 06:54:07 +0000 (06:54 +0000)]
(coff_write_object_contents): Initialze link_data if not set.

29 years agoOpps. Fix thinko in last change.
Jeff Law [Tue, 22 Aug 1995 06:51:47 +0000 (06:51 +0000)]
Opps.  Fix thinko in last change.

29 years ago * gdb.base/funcargs.exp: Avoid ever setting more than 8
Jeff Law [Tue, 22 Aug 1995 06:36:40 +0000 (06:36 +0000)]
* gdb.base/funcargs.exp: Avoid ever setting more than 8
breakpoints in the inferior at any given time by making
two groups of breakpoints for call2*, call6* and call7*
tests.

29 years ago * hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
Jeff Law [Tue, 22 Aug 1995 05:43:30 +0000 (05:43 +0000)]
* hppa-tdep.c (frame_chain_valid): Handle systems where "$START$"
calls "main" directly.
(skip_prologue): Always assume arguments were saved into the stack
since GCC will do so without setting the magic Args_Saved bit in
the unwind descriptor.

29 years agoMon Aug 21 18:30:42 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 22 Aug 1995 01:54:56 +0000 (01:54 +0000)]
Mon Aug 21 18:30:42 1995  steve chamberlain  <sac@slash.cygnus.com>

* ldmain.c (main): Remove PE stuff.
* lexsup.c (options): Load more PE options.
(set_pe_value): New function.

29 years ago * dlltool.c (options): image-base is a synonym for rva.
Steve Chamberlain [Tue, 22 Aug 1995 01:42:11 +0000 (01:42 +0000)]
* dlltool.c (options): image-base is a synonym for rva.

29 years ago * ldmain.c (main): Remove PE stuff.
Steve Chamberlain [Tue, 22 Aug 1995 01:32:11 +0000 (01:32 +0000)]
* ldmain.c (main): Remove PE stuff.
* lexsup.c (options): Load more PE options.
(set_pe_value): New function.

29 years ago * libcoff-in.h (coff_data_type.link_info): New field.
Steve Chamberlain [Tue, 22 Aug 1995 01:21:52 +0000 (01:21 +0000)]
* libcoff-in.h (coff_data_type.link_info): New field.

29 years ago * internal.h: (internal_filehdr): Moved PE stuff into
Steve Chamberlain [Tue, 22 Aug 1995 01:13:43 +0000 (01:13 +0000)]
* internal.h: (internal_filehdr): Moved PE stuff into
internal_extra_pe_filehdr.
(internal_aouthdr): Moved PE stuff into
interanl_extra_pe_aouthdr.

* bfdlink.h (struct bfd_link_info): Remove PE stuff.

29 years agoMon Aug 21 17:49:28 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Tue, 22 Aug 1995 01:02:23 +0000 (01:02 +0000)]
Mon Aug 21 17:49:28 1995  steve chamberlain  <sac@slash.cygnus.com>

* bfd-in.h (bfd_link_subsystem): Turn enum into #defines.
(bfd_link_pe_info_dval): New
(bfd_link_stack_heap): Renamed and massaged into bfd_link_pe_info.
* bfd-in2.h: rebuilt.
* bfd.c (NT_subsystem, NT_stack_heap): Deleted.
* coffcode.h (pe_value): New function.
(fill_pe_header_info): New function.
(coff_write_object_contents): Use new function.
* cofflink.c (coff_final_link_info): Remove pe randomness.
(dores_com): Update info in bfd_link_pe_info_dval.
(process_embedded_commands): Use the bfd_link_pe_info_dval.
(_bfd_coff_final_link): Remove PE stuff, initialize
coff_data->link_info.
* coffswap.h (coff_swap_[aout|filehdr]_out): Use indirect PE pointer.
(coff_swap_scnhdr_out): Use real imagebase.
* libcoff (coff_data_type.link_info): New field.

29 years ago * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
Ian Lance Taylor [Mon, 21 Aug 1995 21:34:54 +0000 (21:34 +0000)]
* m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
and likewise for the other branches.  Add bhs as an alias for bcc,
and likewise for the size variants.  Add dbhs as an alias for
dbcc.

29 years ago * as.c (parse_args): Accept --defsym SYM=VALUE.
Ian Lance Taylor [Mon, 21 Aug 1995 21:18:57 +0000 (21:18 +0000)]
* as.c (parse_args): Accept --defsym SYM=VALUE.
* doc/as.texinfo, doc/as.1: Document --defsym.

29 years ago * read.c (read_a_source_file): In MRI mode, don't end the
Ian Lance Taylor [Mon, 21 Aug 1995 21:05:06 +0000 (21:05 +0000)]
* read.c (read_a_source_file): In MRI mode, don't end the
statement inside a quotation.
(s_space): Don't warn about a zero repeat count in MRI mode.
* config/tc-m68k.c (crack_operand): In MRI mode, don't count
parentheses inside quotes.
(md_assemble): In MRI mode, anything after the operands field is a
comment.
(parse_mri_control_operand): Adjust start and stop to remove
spaces.
(s_mri_for): Likewise.

29 years ago * app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or
Ian Lance Taylor [Mon, 21 Aug 1995 21:03:50 +0000 (21:03 +0000)]
* app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or
LEX_IS_ONECHAR_QUOTE is seen in state 10, preserve one space.

29 years ago * remote-udi.c (udi_wait): Mask off high bits of stop reason.
Kung Hsu [Mon, 21 Aug 1995 18:56:04 +0000 (18:56 +0000)]
* remote-udi.c (udi_wait): Mask off high bits of stop reason.
* remote-udi.c (fetch_register): For unfetchable regs, pretend it's
done. Fix a bug.

29 years ago * gas/macros/*: New tests for macros.
Ian Lance Taylor [Mon, 21 Aug 1995 18:45:08 +0000 (18:45 +0000)]
* gas/macros/*: New tests for macros.

29 years ago * gasp/pl3.out: Update for changes in commented source output when
Ian Lance Taylor [Mon, 21 Aug 1995 18:42:09 +0000 (18:42 +0000)]
* gasp/pl3.out: Update for changes in commented source output when
LOCAL is used.

29 years ago * doc/as.texinfo: Document irp, irpc, macro, and rept. MRI mode
Ian Lance Taylor [Mon, 21 Aug 1995 18:37:10 +0000 (18:37 +0000)]
* doc/as.texinfo: Document irp, irpc, macro, and rept. MRI mode
now supports macros, ifc, ifnc, irp, irpc, rept, and endr, without
using gasp.

29 years ago Add support for macros.
Ian Lance Taylor [Mon, 21 Aug 1995 18:35:11 +0000 (18:35 +0000)]
Add support for macros.
* as.c: Include sb.h and macro.h.
(max_macro_next): New global variable.
(main): Call macro_init.
(macro_expr): New static function.
* as.h (max_macro_nest): Declare.
* read.c (line_label): Rename from mri_line_label.  Change all
uses.
(potable): Add exitm, irp, irpc, macro, mexit, rept.
(read_a_source_file): Always clear line_label at the start of a
line, not just when flag_mri or LABELS_WITHOUT_COLONS.  Fixup
MRI/LABELS_WITHOUT_COLONS handling.  In MRI mode, permit label:
equ val.  Set line_label when calling colon.  In MRI mode, a
leading '.' does not imply a pseudo-op.  Check for macro expansion
before calling md_assemble.
(s_irp): New function.
(get_line_sb): New static function.
(s_macro): New function.
(s_mexit): New function.
(s_rept): New function.
* read.h (line_label): Rename from mri_line_label.
(s_irp, s_rept): Declare.
(s_macro, s_mexit): Declare.
* input-scrub.c: Include sb.h.
(sb_index, from_sb): New static variables.
(macro_nest): New static variable.
(struct input_save): Add sb_index and from_sb fields.  Change
next_saved_file field to be struct input_save *.
(next_saved_file): Changed to be struct input_save *.
(input_scrub_push): Change to return type struct input_save *.
Save sb_index and from_sb.
(input_scrub_pop): Change parameter type to struct input_save *.
Restore sb_index and from_sb.
(input_scrub_include_sb): New function.
(input_scrub_next_buffer): Handle reading from from_sb.
(bump_line_counters): Only increment lines if not using from_sb.
* config/tc-m68k.c (opt_table): Add nest.
(opt_nest): New static function.
* gasp.c: Include sb.h and macro.h.  Move all sb related functions
and definitions to sb.h and sb.c.  Move all macro related
functions and definitions to macro.h and macro.c.
* sb.h, sb.c: New files, extracted from gasp.c.
* macro.h, macro.c: Likewise.
* Makefile.in (OBJS): Add sb.o and macro.o
(GASPOBJS): Define.
(gasp.new): Depend upon $(GASPOBJS).  Use $(GASPOBJS) to link.
(TARG_CPU_DEP_m68k): Depend upon subsegs.h.
(gasp.o): Depend upon sb.h and macro.h.
(sb.o): New target.
(macro.o): New target.
(as.o): Depend upon sb.h and macro.h.
(input-scrub.o): Depend upon sb.h.
(read.o): Depend upon sb.h and macro.h.

29 years ago * app.c (do_scrub_begin): In MRI mode, set lex of ' to
Ian Lance Taylor [Mon, 21 Aug 1995 18:19:21 +0000 (18:19 +0000)]
* app.c (do_scrub_begin): In MRI mode, set lex of ' to
LEX_IS_STRINGQUOTE.

29 years ago * cond.c (get_mri_string): New static function.
Ian Lance Taylor [Mon, 21 Aug 1995 18:18:56 +0000 (18:18 +0000)]
* cond.c (get_mri_string): New static function.
(s_ifc): New function.

29 years agoAllow @HA, @L, and @H on constant expressions.
Michael Meissner [Mon, 21 Aug 1995 17:47:01 +0000 (17:47 +0000)]
Allow @HA, @L, and @H on constant expressions.

29 years ago * linker.c (link_action): If an undefined reference follows an
Ian Lance Taylor [Mon, 21 Aug 1995 15:12:34 +0000 (15:12 +0000)]
* linker.c (link_action): If an undefined reference follows an
undefined weak reference, change the type to undefined.
* elflink.h (elf_link_add_archive_symbols): Don't record an
undefined weak reference as defined, in case it turns into a real
undefined reference later in the same archive.

29 years ago * Makefile.in (install): Remove "brokensed" hack, unnecessary now
Jeff Law [Mon, 21 Aug 1995 06:49:42 +0000 (06:49 +0000)]
* Makefile.in (install): Remove "brokensed" hack, unnecessary now
that we're using autoconf.
(uninstall): Likewise.

29 years ago * config/tc-arm.c (md_reloc_size): Add const to declaration.
Jim Wilson [Sun, 20 Aug 1995 22:56:02 +0000 (22:56 +0000)]
* config/tc-arm.c (md_reloc_size): Add const to declaration.

29 years agoSun Aug 20 09:59:00 1995 steve chamberlain <sac@slash.cygnus.com>
Steve Chamberlain [Sun, 20 Aug 1995 17:01:27 +0000 (17:01 +0000)]
Sun Aug 20 09:59:00 1995  steve chamberlain  <sac@slash.cygnus.com>

Modified to generate archives and objects rather than .s files.
* dlltool.c (run) New function.
  (gen_exp_file, gen_lib_file): Use run.
(workout_prefix): New.
(usage): Document new options.
(main): Parse new options.

29 years ago * gdb.base/funcargs.exp: Fix typos introduced by Aug 15 change.
Peter Schauer [Sun, 20 Aug 1995 14:03:45 +0000 (14:03 +0000)]
* gdb.base/funcargs.exp:  Fix typos introduced by Aug 15 change.
* gdb.base/callfuncs.c (main):  Use struct_val1 to inhibit xlc
from optimizing it away.
* gdb.base/callfuncs.exp:  Remove rs6000-*-* xfails for
"call inferior func with struct".

29 years agoWire up the breakpoint window so that it works. Also, fix a typo that
Michael Tiemann [Sun, 20 Aug 1995 00:26:54 +0000 (00:26 +0000)]
Wire up the breakpoint window so that it works.  Also, fix a typo that
kept the breakpoints in the source window from updating when enabled or
disabled.

29 years ago * gasp/gasp.exp (gasp_test): Call prune_system_crud on the output
Ian Lance Taylor [Sat, 19 Aug 1995 21:37:43 +0000 (21:37 +0000)]
* gasp/gasp.exp (gasp_test): Call prune_system_crud on the output
of diff.
* lib/gas-defs.exp: Define prune_system_crud if it is not already
defined.

29 years ago * gdbtypes.c (recursive_dump_type): Add dont_print_type_obstack
Peter Schauer [Sat, 19 Aug 1995 08:21:23 +0000 (08:21 +0000)]
* gdbtypes.c (recursive_dump_type):  Add dont_print_type_obstack
to inhibit infinite recursion when printing aggregate types.

29 years ago * dcache.c (dcache_write_line): Write dirty lines right.
Steve Chamberlain [Sat, 19 Aug 1995 00:54:12 +0000 (00:54 +0000)]
* dcache.c (dcache_write_line): Write dirty lines right.

29 years ago * read.c (s_include): In MRI mode, don't expect quotes around the
Ian Lance Taylor [Fri, 18 Aug 1995 15:15:28 +0000 (15:15 +0000)]
* read.c (s_include): In MRI mode, don't expect quotes around the
file name.
* listing.c (listing_title): Don't require the title to be quoted.

29 years ago * gasp/mri/*.out: Use ;, not !, for the comment character.
Ian Lance Taylor [Fri, 18 Aug 1995 15:10:35 +0000 (15:10 +0000)]
* gasp/mri/*.out: Use ;, not !, for the comment character.

29 years ago * gasp.c (include_print_where_line): Always subtract 1 from
Ian Lance Taylor [Fri, 18 Aug 1995 15:09:57 +0000 (15:09 +0000)]
* gasp.c (include_print_where_line): Always subtract 1 from
linecount before printing it.
(process_file): In MRI mode, lines beginning with '*' or '!' are
comments.
(do_reg): In MRI mode, don't require parentheses.
(do_include): In MRI mode, don't requires quotes.  If the file can
not be found in the include path, try opening it in the current
directory.  Print the file name correctly in the error message.
(chartype_init): In MRI mode, set FIRSTBIT for '.'.
(main): Set comment_char to ';' when entering MRI mode.

29 years ago * config/tc-m68k.c: Include subsegs.h.
Ian Lance Taylor [Fri, 18 Aug 1995 15:02:56 +0000 (15:02 +0000)]
* config/tc-m68k.c: Include subsegs.h.
(m68k_ip): Pass 64 rather than -1 to add_Fix in 'B' 'B' case.
(md_pcrel_from): If fx_pcrel_adjust is 64, use -1 instead.
You can't portably store negative numbers in a char.

29 years ago * sparc-tdep.c (isbranch): Fix typo which caused wrong
Peter Schauer [Fri, 18 Aug 1995 13:27:21 +0000 (13:27 +0000)]
* sparc-tdep.c (isbranch):  Fix typo which caused wrong
target addresses for annulled branches.

29 years agouse "ar ts" for RANLIB on hp300
Ken Raeburn [Fri, 18 Aug 1995 01:51:53 +0000 (01:51 +0000)]
use "ar ts" for RANLIB on hp300