binutils-gdb.git
27 years ago * configure.in: Set em=svr4 for m68k-*-sysv4*.
Ian Lance Taylor [Fri, 21 Feb 1997 17:00:45 +0000 (17:00 +0000)]
* configure.in: Set em=svr4 for m68k-*-sysv4*.
* configure: Rebuild.
* config/te-svr4.h: New file.
* config/tc-m68k.c (m68k_comment_chars): Only include `#' if
TE_SVR4 or TE_DELTA.

27 years agoTwiddle some comments to more accurately reflect reality.
Jeff Law [Fri, 21 Feb 1997 07:21:32 +0000 (07:21 +0000)]
Twiddle some comments to more accurately reflect reality.

27 years agoRemove debugging printf.
Jeff Law [Fri, 21 Feb 1997 07:18:35 +0000 (07:18 +0000)]
Remove debugging printf.

27 years ago * elf32-mn10200.c (mn10200_elf_relax_section): New function.
Jeff Law [Fri, 21 Feb 1997 07:14:30 +0000 (07:14 +0000)]
    * elf32-mn10200.c (mn10200_elf_relax_section): New function.
        (mn10200_elf_relax_delete_bytes): Likewise.
        (mn10200_elf_symbol_address_p): Likewise.
        (mn10200_elf_get_relocated_section_contents): Likewise.
        (bfd_elf32_bfd_relax_section): Define.
        (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
First cut at relaxing linker for the mn10200:

jsr:24 -> jsr:16
jmp:24 -> jmp:16
jmp:16 -> bra:8
bCC .+4;bra:8 -> bCC':8

Reduces code size by about 2.5% for hello world.

27 years ago * config/tc-mn10200.c (md_convert_frag): Create a fixup for the
Jeff Law [Fri, 21 Feb 1997 05:27:10 +0000 (05:27 +0000)]
    * config/tc-mn10200.c (md_convert_frag): Create a fixup for the
        short conditional branch around a long unconditional branch.
Showing the reloc will allow the linker to shorten the long unconditional
branch or remove the long unconditional branch entirely when relaxing.

27 years agoCommit the other half of the top level configure change for enabling
Andrew Cagney [Fri, 21 Feb 1997 03:46:32 +0000 (03:46 +0000)]
Commit the other half of the top level configure change for enabling
the sim directory.

27 years agoReally checkin the d30v sim directory configure files.
Andrew Cagney [Fri, 21 Feb 1997 03:33:03 +0000 (03:33 +0000)]
Really checkin the d30v sim directory configure files.

27 years agoThe remainder of igen taken from the PowerPC simulator directory.
Andrew Cagney [Fri, 21 Feb 1997 02:50:27 +0000 (02:50 +0000)]
The remainder of igen taken from the PowerPC simulator directory.

27 years agoInstruction decode generator taken from the PowerPC simulator
Andrew Cagney [Fri, 21 Feb 1997 02:49:21 +0000 (02:49 +0000)]
Instruction decode generator taken from the PowerPC simulator
and being made more generic.

27 years agoAdd d30v simulator configuration but sanatize it out.
Andrew Cagney [Fri, 21 Feb 1997 02:44:57 +0000 (02:44 +0000)]
Add d30v simulator configuration but sanatize it out.

27 years agoMake useful macro's and functions found in the PowerPC simulator
Andrew Cagney [Fri, 21 Feb 1997 02:42:48 +0000 (02:42 +0000)]
Make useful macro's and functions found in the PowerPC simulator
directory more widely available.

27 years ago * lib/gdb.exp(gdb_init): New function.
Bob Manson [Fri, 21 Feb 1997 00:22:50 +0000 (00:22 +0000)]
* lib/gdb.exp(gdb_init): New function.

27 years ago * gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
Bob Manson [Fri, 21 Feb 1997 00:21:34 +0000 (00:21 +0000)]
* gdb.base/setvar.exp(test_set): Don't bother printing a PASS/FAIL
  for each individual variable set.

27 years ago * gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
Bob Manson [Thu, 20 Feb 1997 23:45:23 +0000 (23:45 +0000)]
* gdb.base/exprs.exp(test_expr): Make sure each test gets a unique
name.

27 years ago * gdb.base/help.exp: Fix the syntax of a few gdb_test calls.
Bob Manson [Thu, 20 Feb 1997 22:52:38 +0000 (22:52 +0000)]
* gdb.base/help.exp: Fix the syntax of a few gdb_test calls.

hmmm, automagic conversion left -re things.

27 years agofix with make headers
Ian Lance Taylor [Thu, 20 Feb 1997 22:49:40 +0000 (22:49 +0000)]
fix with make headers

27 years ago * gdb.base/scope.exp: Use gdb_test.
Bob Manson [Thu, 20 Feb 1997 22:13:52 +0000 (22:13 +0000)]
* gdb.base/scope.exp: Use gdb_test.

* gdb.base/ptype.exp: Don't call "gdb_exit; gdb_start" if we're
aborting; the testsuite driver will do that for us (see
gdb_finish). Also, use gdb_test in a few more places.

27 years ago * gdb.base/help.exp: Fix syntax of "help info all-registers" test.
Stan Shebs [Thu, 20 Feb 1997 21:38:08 +0000 (21:38 +0000)]
* gdb.base/help.exp: Fix syntax of "help info all-registers" test.

27 years ago * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
Jeff Law [Thu, 20 Feb 1997 20:54:28 +0000 (20:54 +0000)]
    * elf32-mn10200.c (mn10200_elf_final_link_relocate): New function.
        (mn10200_elf_relocate_section): Likewise.
        (elf_backend_relocate_section): Define.
New style linker for the mn10200.

27 years ago * config/obj-coff.c (obj_coff_ln [both versions]): Call
Ian Lance Taylor [Thu, 20 Feb 1997 19:12:05 +0000 (19:12 +0000)]
* config/obj-coff.c (obj_coff_ln [both versions]): Call
new_logical_line.
PR 11725.

27 years ago * symbols.c (resolve_symbol_value): If both left and right
Ian Lance Taylor [Thu, 20 Feb 1997 18:58:40 +0000 (18:58 +0000)]
* symbols.c (resolve_symbol_value): If both left and right
operands are undefined, warn about both of them.
PR 11724.

27 years ago * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
Jeff Law [Thu, 20 Feb 1997 17:36:12 +0000 (17:36 +0000)]
    * gdb.disasm/mn10200.s: Add "nop" after "main" so that "main"
        and "add_tests" are not at the same address.
Fixes gdb disassembler testsuite failure on sunos4 hosted toolchain.

27 years agoSince d10v is public now, remove all sanitization statements
Michael Meissner [Thu, 20 Feb 1997 17:00:14 +0000 (17:00 +0000)]
Since d10v is public now, remove all sanitization statements

27 years agoSince d10v is public now, remove all sanitization statements
Michael Meissner [Thu, 20 Feb 1997 16:05:18 +0000 (16:05 +0000)]
Since d10v is public now, remove all sanitization statements

27 years agoCorrect test for ISA dependent bits
Gavin Romig-Koch [Thu, 20 Feb 1997 15:48:57 +0000 (15:48 +0000)]
Correct test for ISA dependent bits

27 years ago * configure.in: Don't require GCC to build the mn10200
Jeff Law [Thu, 20 Feb 1997 06:19:13 +0000 (06:19 +0000)]
    * configure.in: Don't require GCC to build the mn10200
        simulator anymore.
        * configure: Rebuilt.

27 years ago * interp.c (simopen): Add support for LSI MiniRISC PMON vectors.
Mark Alexander [Wed, 19 Feb 1997 22:44:02 +0000 (22:44 +0000)]
* interp.c (simopen): Add support for LSI MiniRISC PMON vectors.

27 years ago Based on patches from Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Wed, 19 Feb 1997 21:33:00 +0000 (21:33 +0000)]
Based on patches from Eric Youngdale <eric@andante.jic.com>:
* config/obj-elf.c (elf_pseudo_table): Add "symver".
(obj_elf_symver): New static function.
* config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy the st_other
field.

27 years ago From Eric Youngdale <eric@andante.jic.com>:
Ian Lance Taylor [Wed, 19 Feb 1997 20:36:23 +0000 (20:36 +0000)]
From Eric Youngdale <eric@andante.jic.com>:
* external.h, internal.h, common.h: Added new structures and
definitions for ELF versions.

27 years ago * Makefile.in: Add dependencies on ../bfd/bfd.h as required.
Ian Lance Taylor [Wed, 19 Feb 1997 19:52:17 +0000 (19:52 +0000)]
* Makefile.in: Add dependencies on ../bfd/bfd.h as required.

27 years ago * gas/macros/semi.s, gas/macros/semi.d: New test.
Ian Lance Taylor [Wed, 19 Feb 1997 05:57:55 +0000 (05:57 +0000)]
* gas/macros/semi.s, gas/macros/semi.d: New test.
* gas/macros/macros.exp: Run it.
* gas/mri/semi.s, gas/mri/semi.d: New test.
* gas/mri/mri.exp: Run it.
Taken from PR 11715.

27 years ago * read.c (get_line_sb): Don't end the line on a semicolon inside a
Ian Lance Taylor [Wed, 19 Feb 1997 05:54:00 +0000 (05:54 +0000)]
* read.c (get_line_sb): Don't end the line on a semicolon inside a
string.
PR 11715.

27 years agoTue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 02:53:39 +0000 (02:53 +0000)]
Tue Feb 18 18:42:51 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d30v.c, config/tc-d30v.h: New files.

  * configure: Rebuilt.

* configure.in: Add case for d30v.

27 years agoTue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 02:47:03 +0000 (02:47 +0000)]
Tue Feb 18 18:42:51 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d30v.c, config/tc-d30v.h: New files.

27 years agoTue Feb 18 18:42:51 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 02:46:48 +0000 (02:46 +0000)]
Tue Feb 18 18:42:51 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config/tc-d30v.c, config/tc-d30v.h: New files.

  * configure: Rebuilt.

* configure.in: Add case for d30v.

27 years agoTue Feb 18 17:43:43 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 01:53:26 +0000 (01:53 +0000)]
Tue Feb 18 17:43:43 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* Makefile.in: Added d30v object files.
* configure: (bfd_d30v_arch) Rebuilt.
* configure.in: (bfd_d30v_arch) Added new case.
* d30v-dis.c: New file.
* d30v-opc.c: New file.
* disassemble.c (disassembler) Add entry for d30v.

27 years agoTue Feb 18 17:40:36 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 01:41:48 +0000 (01:41 +0000)]
Tue Feb 18 17:40:36 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* common.h (EM_CYGNUS_D30V): Define.

27 years agoTue Feb 18 17:37:20 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 01:39:32 +0000 (01:39 +0000)]
Tue Feb 18 17:37:20 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* d30v.h: New file.

27 years agoTue Feb 18 17:32:42 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 01:34:14 +0000 (01:34 +0000)]
Tue Feb 18 17:32:42 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* config.sub, configure.in: Add d30v target cpu.

27 years agoTue Feb 18 17:22:59 1997 Martin M. Hunt <hunt@pizza.cygnus.com>
Martin Hunt [Wed, 19 Feb 1997 01:29:29 +0000 (01:29 +0000)]
Tue Feb 18 17:22:59 1997  Martin M. Hunt  <hunt@pizza.cygnus.com>

* Makefile.in, archures.c, config.bfd, configure.in, elf.c,
reloc.c, targets.c: New target, elf-*-D30V.

* bfd-in2.h, configure, libbfd.h: Rebuilt.

* cpu-d30v.c, elf32-d30v.c: New files.

27 years ago * tic80-opc.c (tic80_predefined_symbols): Add symbolic
Fred Fish [Tue, 18 Feb 1997 23:34:35 +0000 (23:34 +0000)]
* tic80-opc.c (tic80_predefined_symbols): Add symbolic
representations for the floating point BITNUM values.

27 years ago * reloc.c (struct reloc_howto_struct): Fix typo in comment.
Fred Fish [Tue, 18 Feb 1997 23:01:02 +0000 (23:01 +0000)]
* reloc.c (struct reloc_howto_struct): Fix typo in comment.
* bfd-in2.h: Regenerated.
start-sanitize-tic80
* coff-tic80.c (RTYPE2HOWTO): Replace abort with real function.
(rtype2howto): Add function.
(tic80_howto_table): Add.
end-sanitize-tic80

27 years agoCorrect flags for PMADDUW insn
Gavin Romig-Koch [Tue, 18 Feb 1997 22:15:04 +0000 (22:15 +0000)]
Correct flags for PMADDUW insn

27 years ago * maint.c: Eliminate -Wall warnings by including some header files.
Mark Alexander [Tue, 18 Feb 1997 21:36:36 +0000 (21:36 +0000)]
* maint.c: Eliminate -Wall warnings by including some header files.

27 years ago * remote-sim.c (init_callbacks): Undo previous change.
Mark Alexander [Tue, 18 Feb 1997 21:05:55 +0000 (21:05 +0000)]
* remote-sim.c (init_callbacks): Undo previous change.

27 years ago * gas/hppa/unsorted/unsorted.exp (align4 tests): Tweak expected
Jeff Law [Tue, 18 Feb 1997 20:38:14 +0000 (20:38 +0000)]
    * gas/hppa/unsorted/unsorted.exp (align4 tests): Tweak expected
        output.

27 years ago * maint.c: Fix dereference of pointer.
Dawn Perchik [Tue, 18 Feb 1997 19:33:29 +0000 (19:33 +0000)]
* maint.c: Fix dereference of pointer.
* remote-sim.c: Fix reference of structure member "last_error".
* debugify.c: Include config.h to get ANSI definitions.

27 years ago * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
Jeff Law [Tue, 18 Feb 1997 17:06:20 +0000 (17:06 +0000)]
    * elf32-v850.c (v850_elf_relocate_section): Make sure r_symndx
        is initialized before it is used.
Something Doug noticed.

27 years ago * hp300hpux.c (convert_sym_type): Don't convert a secondary common
Ian Lance Taylor [Mon, 17 Feb 1997 16:29:21 +0000 (16:29 +0000)]
* hp300hpux.c (convert_sym_type): Don't convert a secondary common
symbol into a weak undefined symbol; leave it as a common symbol.

27 years ago * config/tc-alpha.h (md_operand): Define with a null expansion,
Fred Fish [Mon, 17 Feb 1997 01:01:00 +0000 (01:01 +0000)]
* config/tc-alpha.h (md_operand): Define with a null expansion,
like all the other targets.
* doc/internals.texi (CPU backend): Add missing word in
md_flush_pending_output description.  Fix typo in md_convert_frag
description.
start-sanitize-tic80
* config/tc-tic80: Minor comment additions/changes.
end-sanitize-tic80

27 years ago * remote-vx.c (vx_attach): Fix for PR 11356. Remove code added
Stu Grossman [Sun, 16 Feb 1997 01:50:18 +0000 (01:50 +0000)]
* remote-vx.c (vx_attach):  Fix for PR 11356.  Remove code added
by kung.  It made no sense.

27 years ago * elflink.h (elf_link_add_object_symbols): Don't issue a warning
Ian Lance Taylor [Sat, 15 Feb 1997 00:12:47 +0000 (00:12 +0000)]
* elflink.h (elf_link_add_object_symbols): Don't issue a warning
about a symbol defined in a dynamic object if it has already been
defined in a regular object.

27 years ago Based on notes from Peter Eriksson <peter@ifm.liu.se>. The target
Ian Lance Taylor [Fri, 14 Feb 1997 23:40:49 +0000 (23:40 +0000)]
Based on notes from Peter Eriksson <peter@ifm.liu.se>.  The target
does not actually work, though:
* configure.in (i386-sequent-bsd*): New target.
* configure: Rebuild.
* config/tc-dynix.h: New file.
* config/tc-i386.h: Define TARGET_FORMAT if TE_DYNIX.

27 years agoFri Feb 14 18:09:59 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Fri, 14 Feb 1997 23:12:29 +0000 (23:12 +0000)]
Fri Feb 14 18:09:59 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* config/tc-m68k.c (LOCAL_LABEL): Macro redefined if TE_DELTA.
(tc_canonicalize_symbol_name): Macro defined if TE_DELTA.
  * config/obj-coff.c (obj_coff_def): Use
tc_canonicalize_symbol_name if defined.
(obj_coff_tag, obj_coff_val): Likewise.
* expr.c (operand): Reject '~' as operator if is_name_beginner.

27 years agorandom copyright and formatting fixes
Ian Lance Taylor [Fri, 14 Feb 1997 23:05:36 +0000 (23:05 +0000)]
random copyright and formatting fixes

27 years ago * gas/all/align.d, gas/all/align.s: New test.
Ian Lance Taylor [Fri, 14 Feb 1997 22:58:34 +0000 (22:58 +0000)]
* gas/all/align.d, gas/all/align.s: New test.
* gas/all/gas.exp: Run it.

27 years ago * read.c (do_align): Add max parameter. Change all callers.
Ian Lance Taylor [Fri, 14 Feb 1997 22:49:25 +0000 (22:49 +0000)]
* read.c (do_align): Add max parameter.  Change all callers.
Remove useless static variables.
(s_align): New static function.  Do common portion of
s_align_bytes and s_align_ptwo.
(s_align_bytes, s_align_ptwo): Just call s_align.
* frags.c (frag_align): Add max parameter.  Change all callers.
(frag_align_pattern): Likewise.
* frags.h (frag_align, frag_align_pattern): Update declarations.
* write.c (relax_segment): Limit alignment change to fr_subtype.
Fix some types to be addressT.
* config/obj-coff.c (size_section): Likewise.
* config/obj-ieee.c (size_section): Likewise.
* config/tc-d10v.h (md_do_align): Add max parameter.
* config/tc-i386.h (md_do_align): Likewise.
* config/tc-m88k.h (md_do_align): Likewise.
* config/tc-m88k.c (m88k_do_align): Likewise.
* config/tc-sh.h (md_do_align): Likewise.
* config/tc-sh.c (sh_do_align): Likewise.
* as.h: Improve comments on rs_align and rs_align_code.
* doc/as.texinfo: Document new alignment arguments.
* doc/internals.texi (Frags): Document use of fr_subtype field for
rs_align and rs_align_code.

27 years agoPer PR 11678 - also need to maintan .Sanitize
Andrew Cagney [Fri, 14 Feb 1997 21:58:48 +0000 (21:58 +0000)]
Per PR 11678 - also need to maintan .Sanitize

27 years agoPR 11678 - rename long decode-rule files to shorter ones, eliminate
Andrew Cagney [Fri, 14 Feb 1997 19:06:08 +0000 (19:06 +0000)]
PR 11678 - rename long decode-rule files to shorter ones, eliminate
need for multiple almost identical decode-rule files

27 years agofixes bugs caused by adding 5900
Gavin Romig-Koch [Fri, 14 Feb 1997 18:57:43 +0000 (18:57 +0000)]
fixes bugs caused by adding 5900

27 years ago * main.c (print_gdb_help): Make static to match declaration.
Ian Lance Taylor [Fri, 14 Feb 1997 18:00:34 +0000 (18:00 +0000)]
* main.c (print_gdb_help): Make static to match declaration.

27 years ago * config/{tc-alpha.h, tc-arc.h, tc-d10v.h, tc-generic.h, tc-i960.h,
Fred Fish [Fri, 14 Feb 1997 07:53:14 +0000 (07:53 +0000)]
* config/{tc-alpha.h, tc-arc.h, tc-d10v.h, tc-generic.h, tc-i960.h,
tc-mn10200.h, tc-mn10300.h, tc-sh.h, tc-v850.h, tc-vax.h, tc-w65.h}:
Add default definition of zero for TARGET_BYTES_BIG_ENDIAN.
* config/{tc-arm.h, tc-hppa.h, tc-i386.h, tc-mips.h, tc-ns32k.h,
  tc-ppc.h, tc-sparc.h}: Move definition of TARGET_BYTES_BIG_ENDIAN
to a location consistent with the rest of the target include files.
* config/tc-i386.c: Remove misleading comment.
* doc/internals.texi (CPU backend): Add description of function
md_undefined_symbol.
start-sanitize-tic80
* config/tc-tic80.c: Add code to insert predefined symbols into the
symbol table so they can be parsed by the standard expression parser.
Remove custom code that use to parse them.
* config/tc-tic80.h: Move definition of TARGET_BYTES_BIG_ENDIAN
to a location consistent with the rest of the target include files.
end-sanitize-tic80

27 years ago * config/tc-sparc.c (md_show_usage): Add missing backslash at end
Ian Lance Taylor [Fri, 14 Feb 1997 03:09:46 +0000 (03:09 +0000)]
* config/tc-sparc.c (md_show_usage): Add missing backslash at end
of continued line.

27 years agoThu Feb 13 22:04:44 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Fri, 14 Feb 1997 03:06:09 +0000 (03:06 +0000)]
Thu Feb 13 22:04:44 1997  Klaus Kaempf  <kkaempf@progis.de>

* makefile.vms: New file.
* make-all.com: Remove.

27 years agoThu Feb 13 21:56:51 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Fri, 14 Feb 1997 02:57:52 +0000 (02:57 +0000)]
Thu Feb 13 21:56:51 1997  Klaus Kaempf  <kkaempf@progis.de>

* makefile.vms: Remove 8 bit characters.  Update to latest
gcc release.

27 years agoThu Feb 13 21:44:18 1997 Klaus Kaempf <kkaempf@progis.de>
Ian Lance Taylor [Fri, 14 Feb 1997 02:55:29 +0000 (02:55 +0000)]
Thu Feb 13 21:44:18 1997  Klaus Kaempf  <kkaempf@progis.de>

* as.h: GNU c provides unlink() function.

Unify section handling on openVMS/Alpha:
* config/tc-alpha.c(s_alpha_link): Remove.
(s_alpha_section): New function.
Remove case-hacking of symbols
Add .code_address pseudo-op.
(BFD_RELOC_ALPHA_CODEADDR): New relocation.
(s_alpha_code_address): New function.
(alpha_ctors_section, alpha_dtors_section): New sections for C++
static constructors/destructors.
Add debug code for crash debugs, to be removed when traceback code
is added to object code.
(s_alpha_name): New function for .name pseudo-op.
(alpha_print_token): New function to print token expressions with
alpha specific extensions.

* makefile.vms: Allow compilation with current gcc snapshot.

27 years agoThu Feb 13 21:34:43 1997 Klaus Kaempf (kkaempf@progis.de)
Ian Lance Taylor [Fri, 14 Feb 1997 02:36:21 +0000 (02:36 +0000)]
Thu Feb 13 21:34:43 1997  Klaus Kaempf  (kkaempf@progis.de)

* config.h-vms: sbrk() is provided on openVMS/Alpha.
* makefile.vms: allow compiling with current gcc snapshot.

27 years ago * remote-e7000.c, ser-e7kpc.c, serial.c: Remove // comments.
Dawn Perchik [Fri, 14 Feb 1997 02:20:48 +0000 (02:20 +0000)]
 * remote-e7000.c, ser-e7kpc.c, serial.c: Remove // comments.

27 years agoThu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
Ian Lance Taylor [Fri, 14 Feb 1997 02:13:19 +0000 (02:13 +0000)]
Thu Feb 13 20:53:22 1997  Klaus Kaempf  (kkaempf@progis.de)

* reloc.c (BFD_RELOC_ALPHA_CODEADDR): New relocation for
openVMS/Alpha.
* evax.h (ALPHA_R_CODEADDR): New relocation.
* evax-alpha.c (ALPHA_R_CODEADDR): 64 bit procedure relocation for
openVMS/Alpha.
* evax-etir.c (ALPHA_R_CODEADDR): Output object code for this
relocation.
* bfd-in2.h, libbfd.h: Rebuild.

Restrict symbol length to 64 bytes, case preserving:
* evax-emh.c (_bfd_evax_write_emh): Remove case hacking.
* evax-misc.c (_bfd_evax_case_hack_symbol): Remove.
(_bfd_evax_length_hash_symbol): Added.
* evax-etir.c (_bfd_evax_write_etir): Call
_bfd_evax_length_hash_symbol before output of symbol.
* evax-egsd.c (_bfd_evax_write_egsd): Likewise.
* evax.h (flag_hash_long_names, flag_show_after_trunc): Remove.

* evax-emh.c: Output filename to object file without path.

* evax-egsd.c: New sections for local and global commons.

* evax-alpha.c, evax-emh.c, evax-egsd.c, evax-etir.c,
evax-misc.c, evax.h: Remove 8 bit characters from copyright
notices.  Replace AXP with Alpha.

27 years agoThu Feb 13 20:53:22 1997 Klaus Kaempf (kkaempf@progis.de)
Ian Lance Taylor [Fri, 14 Feb 1997 01:54:51 +0000 (01:54 +0000)]
Thu Feb 13 20:53:22 1997  Klaus Kaempf  (kkaempf@progis.de)

* makefile.vms: Add gcc flags to allow compiling with current gcc
snapshot
(targmatch.h): New dependency.

27 years agoThu Feb 13 20:50:02 1997 Klaus Kaempf (kkaempf@progis.de)
Ian Lance Taylor [Fri, 14 Feb 1997 01:50:50 +0000 (01:50 +0000)]
Thu Feb 13 20:50:02 1997  Klaus Kaempf  (kkaempf@progis.de)

* makefile.vms: New file.

27 years agoThu Feb 13 20:41:22 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Fri, 14 Feb 1997 01:43:14 +0000 (01:43 +0000)]
Thu Feb 13 20:41:22 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* m68k-opc.c (m68k_opcodes): Add swbeg pseudo-instruction.

27 years agoThu Feb 13 20:31:37 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Fri, 14 Feb 1997 01:36:24 +0000 (01:36 +0000)]
Thu Feb 13 20:31:37 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* configure.in: Call BFD_NEED_DECLARATION on getenv.
* acconfig.h (NEED_DECLARATION_GETENV): New macro.
* sysdep.h (getenv): Declare if NEED_DECLARATION_GETENV.
* ldemul.c (ld_emul_default_target): Do not cast getenv return
value.
* ldmain.c (get_emulation): Likewise.
* configure, config.in: Rebuild.

27 years ago * arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
Ian Lance Taylor [Fri, 14 Feb 1997 01:18:32 +0000 (01:18 +0000)]
* arsup.c, coffgrok.c, dlltool.c, nlmconv.c: Use xmalloc rather
than malloc.

27 years ago * doc/Makefile.in (TEXI2DVI): Set to just name of program.
Fred Fish [Fri, 14 Feb 1997 01:04:19 +0000 (01:04 +0000)]
* doc/Makefile.in (TEXI2DVI): Set to just name of program.
(DVIPS): Set to dvips.
(ps, as.ps, gasp.ps): New targets.
(internals.info, gasp.dvi, internals.dvi): Set both TEXINPUTS
  and MAKEINFO env variables.
(internals.ps): Use DVIPS macro.
(clean): Remove core and backup files.
(distclean): Remove temporary files from building internals.
(clean-dvi): Ditto.
* doc/internals.texi (Frags): Fix typo.
(GAS processing): Ditto.
(CPU backend): Ditto.
* ecoff.c (init_file): Use TARGET_BYTES_BIG_ENDIAN value directly.
* mpw-config.in: Define TARGET_BYTES_BIG_ENDIAN as 1.
* read.c: Remove ugly hack that dealt with config files not
correctly defining TARGET_BYTES_BIG_ENDIAN.
(target_big_endian): Use TARGET_BYTES_BIG_ENDIAN directly.
* config/arm-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
* config/arm-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
* config/mips-big.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
* config/mips-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 0.
* config/ppc-lit.mt: Define TARGET_BYTES_BIG_ENDIAN to 1.
* config/ppc-sol.mt: Replace TARGET_BYTES_LITTLE_ENDIAN
with TARGET_BYTES_BIG_ENDIAN defined to 0.
* config/tc-arm.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
and simplify.  Test value of TARGET_BYTES_BIG_ENDIAN, not just
whether it is defined or not.
* config/tc-mips.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN.
* config/tc-ppc.h: Remove use of TARGET_BYTES_LITTLE_ENDIAN
and simplify. Test value of TARGET_BYTES_BIG_ENDIAN, not just
whether it is defined or not.
start-sanitize-tic80
* config/tic80.h (TARGET_FORMAT): Define to coff-tic80.
(TARGET_BYTES_BIG_ENDIAN): Define to 0.
end-sanitize-tic80

27 years ago * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
Jeff Law [Thu, 13 Feb 1997 23:33:33 +0000 (23:33 +0000)]
    * gdb.disasm/mn10200.s (misc_tests): Fix targets for "jsr" insns.
        * gdb.disasm/mn10200.exp (misc_tests): Remove bogus line accidentally
        left in.  No longer expect them to fail.

27 years ago * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
Jeff Law [Thu, 13 Feb 1997 23:31:53 +0000 (23:31 +0000)]
    * mn10200-opc.c (IMM16_PCREL): This is a signed operand.
        (IMM24_PCREL): Likewise.
Fixes bugs exposed by disassembler testsuite.

27 years ago * gdb.stabs/*.mt; Deleted, no longer used.
Jeff Law [Thu, 13 Feb 1997 23:20:09 +0000 (23:20 +0000)]
    * gdb.stabs/*.mt; Deleted, no longer used.
        * gdb.stabs/configure.in: Remove references to target makefile
        frags.
        * gdb.stabs/configure: Rebuilt.
Removing more crud.

27 years ago * gdb.disasm/*.mt: Deleted, no longer used.
Jeff Law [Thu, 13 Feb 1997 23:16:26 +0000 (23:16 +0000)]
    * gdb.disasm/*.mt: Deleted, no longer used.
        * gdb.disasm/configure.in: Remove references to target makefile
        frags.  Use "sh3.s" as the unique filename for this directory.
        * gdb.disasm/configure: Rebuilt.
Cleaning up unused crud.

        * gdb.disasm/mn10200.s: New test file for mn10200 disassembler.
        * gdb.disasm/mn10200.exp: Run mn10200 disassembler tests.
        * gdb.disasm/Makefile.in: Remove "mn10200" when cleaning.
mn10200 disassembler testsuite.

27 years agoCorrect errors in some comments (bfd_perform_relocation was refered to
David Edelsohn [Thu, 13 Feb 1997 23:12:14 +0000 (23:12 +0000)]
Correct errors in some comments (bfd_perform_relocation was refered to
instead of bfd_install_relocation).

27 years ago * write.c (write_relocs): Correct text in as_fatal error message,
David Edelsohn [Thu, 13 Feb 1997 23:08:52 +0000 (23:08 +0000)]
* write.c (write_relocs): Correct text in as_fatal error message,
bfd_perform_relocation -> bfd_install_relocation.

27 years agoThu Feb 13 14:48:03 1997 Philippe De Muyter <phdm@info.ucl.ac.be>
Ian Lance Taylor [Thu, 13 Feb 1997 19:50:01 +0000 (19:50 +0000)]
Thu Feb 13 14:48:03 1997  Philippe De Muyter  <phdm@info.ucl.ac.be>

* config/tc-m68k.c (LEX_TILDE): Define if TE_DELTA.
* read.c (LEX_TILDE): Define if not defined.
(lex_type): Use LEX_TILDE.
* expr.c (get_symbol_end): Check first char with is_name_beginner,
not is_part_of_name.

27 years ago * gencode.c (build_mips16_operands): Correct computation of base
Ian Lance Taylor [Thu, 13 Feb 1997 19:08:55 +0000 (19:08 +0000)]
* gencode.c (build_mips16_operands): Correct computation of base
address for extended PC relative instruction.

27 years ago * config/tc-mips.c (mips16_extended_frag): Correct base address
Ian Lance Taylor [Thu, 13 Feb 1997 18:33:26 +0000 (18:33 +0000)]
* config/tc-mips.c (mips16_extended_frag): Correct base address
for an extended PC relative instruction.
(md_convert_frag): Likewise.

27 years ago * mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
Ian Lance Taylor [Thu, 13 Feb 1997 18:29:25 +0000 (18:29 +0000)]
* mips-dis.c (print_mips16_insn_arg): Use memaddr - 2 as the base
address for an extended PC relative instruction that is not a
branch.

27 years ago * config/tc-mips.c (prev_nop_frag): New static variable.
Ian Lance Taylor [Thu, 13 Feb 1997 17:25:10 +0000 (17:25 +0000)]
* config/tc-mips.c (prev_nop_frag): New static variable.
(prev_nop_frag_holds): New static variable.
(prev_nop_frag_required): New static variable.
(prev_nop_frag_since): New static variable.
(append_insn): If we aren't reordering, and prev_nop_frag is not
NULL, and we don't need any nops, then decrease the size of
prev_nop_frag.  Don't insert nops because of instructions in
noreorder sections.  Remember whether the previous instructions
where in noreorder sections even when not reordering.
(mips_no_prev_insn): Add preserver parameter.  Change all
callers.  Refer prev_nop_frag variables when appropriate.
(mips_emit_delays): Set up prev_nop_frag.
(s_mipsset): Clear prev_nop_frag if reordering.

27 years ago * config/tc-mips.c (append_insn): Remove useless code which
Ian Lance Taylor [Thu, 13 Feb 1997 01:29:39 +0000 (01:29 +0000)]
* config/tc-mips.c (append_insn): Remove useless code which
handled swapping a mips16 jump with a mips16 instruction with a
reloc.

27 years ago * debugify.c, debugify.h: Make safe for non-ansi compilers.
Dawn Perchik [Thu, 13 Feb 1997 00:01:21 +0000 (00:01 +0000)]
* debugify.c, debugify.h: Make safe for non-ansi compilers.

27 years ago * defs.h: Fix prototypes for new cleanup functions.
Dawn Perchik [Wed, 12 Feb 1997 23:32:50 +0000 (23:32 +0000)]
* defs.h: Fix prototypes for new cleanup functions.

27 years ago * debugify.c, debugify.h: Fix for general gnu use. Remove C++
Dawn Perchik [Wed, 12 Feb 1997 23:16:32 +0000 (23:16 +0000)]
    * debugify.c, debugify.h: Fix for general gnu use.  Remove C++
        comment, add PARAMS, add license info and fix indentation.

27 years ago * sunos.c (sunos_create_dynamic_sections): We need the dynamic
Ian Lance Taylor [Wed, 12 Feb 1997 23:14:36 +0000 (23:14 +0000)]
* sunos.c (sunos_create_dynamic_sections): We need the dynamic
sections if we are creating a shared library.

27 years ago * debugify.c, debugify.h: New files. Provide common macros
Dawn Perchik [Wed, 12 Feb 1997 22:48:45 +0000 (22:48 +0000)]
    * debugify.c, debugify.h: New files.  Provide common macros
        for writing debug info to a log file or stdio.

27 years ago * gas/mips/lif-svr4pic.d: Pass -EB when running the assembler.
Ian Lance Taylor [Wed, 12 Feb 1997 21:48:50 +0000 (21:48 +0000)]
* gas/mips/lif-svr4pic.d: Pass -EB when running the assembler.
* gas/mips/lif-xgot.d: Likewise.
* gas/mips/ulh-svr4pic.d: Likewise.
* gas/mips/ulh-xgot.d: Likewise.

27 years agorevert earlier patch to set prev_insn_valid when not reordering
Ian Lance Taylor [Wed, 12 Feb 1997 21:36:17 +0000 (21:36 +0000)]
revert earlier patch to set prev_insn_valid when not reordering

27 years ago * config/tc-mips.c (md_parse_option): When debugging, set
Ian Lance Taylor [Wed, 12 Feb 1997 21:30:02 +0000 (21:30 +0000)]
* config/tc-mips.c (md_parse_option): When debugging, set
mips_optimize to 1, not 0.

27 years ago * objdump.c (disassemble_data): Correct VMA argument to
Ian Lance Taylor [Wed, 12 Feb 1997 21:13:06 +0000 (21:13 +0000)]
* objdump.c (disassemble_data): Correct VMA argument to
find_symbol_for_address.  Improve handling of code with no symbol
followed by code with a symbol.

27 years agoAdd optional way to build libgcc2.c without debug info for Noer/cygwin32.
Jim Wilson [Wed, 12 Feb 1997 20:55:49 +0000 (20:55 +0000)]
Add optional way to build libgcc2.c without debug info for Noer/cygwin32.
* Makefile.in (EXTRA_GCC_FLAGS): Add LIBGCC2_DEBUG_CFLAGS.

27 years ago * config/tc-mips.c (mips16_ip): Handle an extend operand.
Ian Lance Taylor [Wed, 12 Feb 1997 20:43:15 +0000 (20:43 +0000)]
* config/tc-mips.c (mips16_ip): Handle an extend operand.

27 years ago * config/tc-mips.c (my_getExpression): In mips16 mode, if it looks
Ian Lance Taylor [Wed, 12 Feb 1997 20:38:20 +0000 (20:38 +0000)]
* config/tc-mips.c (my_getExpression): In mips16 mode, if it looks
like the expression was based on `.', adjust the value of the
symbol.

27 years ago * config/tc-mips.c (append_insn): Warn about an attempt to put an
Ian Lance Taylor [Wed, 12 Feb 1997 20:20:11 +0000 (20:20 +0000)]
* config/tc-mips.c (append_insn): Warn about an attempt to put an
  extended instruction in a delay slot when not reordering.  Set
  prev_insn_valid even if not reordering.
(md_convert_frag): Warn if an extended instruction appears in a
delay slot.