Richard Sandiford
8f6847cbf4
* configure.in (mips64vr-elf, mips64vrel-elf): New config.
...
* configure: Regenerate.
2002-10-14 06:59:06 +00:00
Alan Modra
686e4055ef
* archures.c (bfd_mach_i386_i386, bfd_mach_i386_i8086,
...
bfd_mach_i386_i386_intel_syntax, bfd_mach_x86_64,
bfd_mach_x86_64_intel_syntax bfd_mach_ppc, bfd_mach_ppc64,
bfd_mach_rs6k, bfd_mach_d10v, bfd_mach_sh, bfd_mach_v850,
bfd_mach_arc_5, bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8,
bfd_mach_m32r, bfd_mach_frv, bfd_mach_frvsimple,
bfd_mach_ia64_elf64, bfd_mach_ia64_elf32,
bfd_mach_ip2022, bfd_mach_ip2022ext,
bfd_mach_s390_31, bfd_mach_s390_64, bfd_mach_xstormy16): Renumber.
* bfd-in2.h: Regenerate.
2002-10-14 05:16:42 +00:00
Kaz Kojima
019dca2bd0
* config.bfd (sh*eb-*-linux*, sh*-*-linux*): Add the alternative
...
endian vector to targ_selvecs.
2002-10-14 02:12:36 +00:00
Adam Fedor
46c82446e1
source.c (print_source_lines): Update comments.
2002-10-14 02:12:04 +00:00
Adam Fedor
d069f99d46
valops.c (value_of_local): New function.
...
(value_of_this): Use it.
value.h (value_of_local): Declared.
2002-10-14 02:02:42 +00:00
Adam Fedor
53c551b7ca
parse.c: (length_of_subexp, prefixify_subexp): Handle
...
OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
2002-10-14 01:50:44 +00:00
gdbadmin
f9072f4138
*** empty log message ***
2002-10-14 00:01:02 +00:00
Alan Modra
e6f7ab6d94
daily update
2002-10-14 00:00:05 +00:00
Alexandre Oliva
10181a0dce
* config/tc-mips.c (s_gpdword): New function.
...
(mips_pseudo_table): Add .gpdword.
(mips_need_elf_addend_fixup): never for NEWABI.
(md_apply_fix3): Don't mark BFD_RELOC64 after GPREL16 or
GPREL32 as done.
(s_cpadd): Generate .cpadd on NEWABI.
2002-10-13 21:22:49 +00:00
Alexandre Oliva
bce03d3da8
* elfxx-mips.c (mips_elf_calculate_relocation): Take
...
save_addend argument. Don't apply the 32-bit mask to a
GPREL32 value if it's to be used in another relocation. Don't
use forced-check computation of local_p to decide whether to
add gp0 to GPREL16 value. Don't use only the lowest 16 bits
of the addend of a non-in-place GPREL16 relocation.
(_bfd_mips_elf_relocate_section): Pass use_saved_addend_p to
mips_elf_calculate_relocation().
2002-10-13 21:22:31 +00:00
Stephane Carrez
e1026ffb69
* scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
...
.finiN section.
* scripttempl/elfm68hc12.sc: Likewise.
2002-10-13 09:29:35 +00:00
Stephane Carrez
ac8c616a59
* m68hc11-dis.c (print_insn): Treat bitmask and branch operands
...
at the end.
2002-10-13 09:01:54 +00:00
gdbadmin
98db497e71
*** empty log message ***
2002-10-13 00:00:33 +00:00
Alan Modra
0b48e3df50
daily update
2002-10-13 00:00:04 +00:00
Adam Fedor
eb392fbf33
language.c (binop_result_type): Add language_objc to case.
...
(integral_type): Likewise.
(character_type): Likewise.
(string_type): Likewise.
(boolean_type): Likewise.
(structured_type): Likewise.
(binop_type_check): Likewise.
2002-10-12 16:03:30 +00:00
H.J. Lu
f9a3a01aef
2002-10-12 H.J. Lu (hjl@gnu.org)
...
* ld-discard/extern.d: Remove $srcdir/$subdir/.
* ld-discard/start.d: Likewise.
* ld-discard/static.d: Likewise.
* ld-linkonce/zeroehl32.d: Likewise.
* ld-selective/keepdot.d: Likewise.
* ld-selective/keepdot0.d: Likewise.
2002-10-12 15:40:13 +00:00
Stephane Carrez
9b691193ef
* elf32-m68hc11.c (m68hc11_elf_relax_section): Don't treat relocs
...
with symbols in other sections if we relaxed something; the sections
output offsets must be re-computed before.
2002-10-12 14:00:55 +00:00
Stephane Carrez
1f4c5b4746
* elf32-m68hc11.c (m68hc11_elf_relax_section): Update symbols
...
handling to use Elf_Internal_Sym.
(m68hc11_elf_relax_delete_bytes): Likewise.
2002-10-12 13:35:25 +00:00
Alan Modra
49181a6af7
* config/tc-ppc.c (ppc_cleanup): Make 'i' unsigned int.
2002-10-12 10:23:17 +00:00
Alexandre Oliva
63d0b39325
* gas/mips/mips.exp: Don't xfail relax.
...
* gas/mips/relax.s: Increase coverage.
* gas/mips/relax.d: Add expected output. Use relax.l for as stderr.
* gas/mips/relax.l: New file.
2002-10-12 05:26:56 +00:00
Alexandre Oliva
4a6a3df43d
* config/tc-mips.h (mips_relax_frag): Take segment as argument.
...
(md_relax_frag): Adjust macro.
* config/tc-mips.c (mips_relax_branch): New variable.
(RELAX_BRANCH_ENCODE, RELAX_BRANCH_P, RELAX_BRANCH_LIKELY,
RELAX_BRANCH_LINK, RELAX_BRANCH_TOOBAR): New.
(RELAX_MIPS16_P): Adjust.
(append_insn): Emit branch to non-constant in a frag_var if
branch-relaxation is desirable and possible.
(OPTION_RELAX_BRANCH, OPTION_NO_RELAX_BRANCH): New options.
(OPTION_ELF_BASE): Adjust.
(md_parse_option): Handle new options.
(md_apply_fix3): Update comment on EMBEDDED_PIC conditional
branch relaxation.
(relaxed_branch_length): New function.
(md_estimate_size_before_relax): Handle branch frags.
(mips_relax_frag): Likewise.
(md_convert_frag): Handle branch frags. Warn if branch is
relaxed.
2002-10-12 05:23:33 +00:00
Adam Fedor
e2b23ee922
printcmd.c (address_info): Print 'self' for ObjC.
2002-10-12 03:06:01 +00:00
Adam Fedor
b01ab485c7
expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and OP_SELF.
2002-10-12 02:43:48 +00:00
Adam Fedor
806e607347
language.h (CAST_IS_CONVERSION): Add language_objc.
2002-10-12 02:39:12 +00:00
Adam Fedor
50f85cdfcf
defs.h (enum language): Add language_objc.
2002-10-12 02:28:22 +00:00
Klee Dienes
0d540cdfe7
2002-10-11 Klee Dienes <kdienes@apple.com>
...
* findvar.c (read_memory_typed_address): New function.
* gdbcore.h (read_memory_typed_address): Add prototype.
* blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
to read a value destined for a CORE_ADDR, not read_memory_integer.
* f-valprint.c (f77_get_dynamic_upperbound): Ditto.
(f77_get_dynamic_lowerbound): Ditto.
2002-10-12 01:48:17 +00:00
Alan Modra
52019e89e2
daily update
2002-10-12 00:00:04 +00:00
gdbadmin
6fc1847b56
*** empty log message ***
2002-10-12 00:00:02 +00:00
Martin Hunt
d5dc79609d
2002-10-11 Martin M. Hunt <hunt@redhat.com>
...
* utils.c (string_to_core_addr): After turning string into
a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
which will do necessary sign-extension, etc.
2002-10-11 17:50:10 +00:00
Klee Dienes
c85508ee3c
2002-10-11 Klee Dienes <kdienes@apple.com>
...
* gdb.texinfo (Registers): Mention vector registers as well as
floating registers in the documentation for 'info registers' and
'info all-registers'.
2002-10-11 16:13:15 +00:00
Joern Rennecke
fd8f4948fe
gcc uses trap 33 for profiling, but the simulator didn't support it.
...
This patch fixes the gcc.dg/nest.c failures for sh-elf.
Fri Oct 11 16:22:28 2002 J"orn Rennecke <joern.rennecke@superh.com>
* interp.c (trap): Return int. Take extra parameter for address
of the trap instruction. Changed all callers.
Add case 33 for profiling.
* gencode.c (trapa): Handle trap 33 using the trap function.
Add read of vector for generic traps.
2002-10-11 15:31:28 +00:00
Kaz Kojima
6c381eeb71
* ld-sh/rd-sh.exp: If the test matches *-dso.d, copy the output
...
of linker to the file tmpdir/*-dso.so.
* ld-sh/tlsbin.s, ld-sh/tlsbinpic.s, ld-sh/tlslib.s: New.
* ld-sh/tlsbin-0-dso.d: New.
* ld-sh/tlsbin-1.d: New.
* ld-sh/tlsbin-2.d: New.
* ld-sh/tlsbin-3.d: New.
* ld-sh/tlsbin-4.d: New.
* ld-sh/tlspic1.s, ld-sh/tlspic2.s: New.
* ld-sh/tlspic-1.d: New.
* ld-sh/tlspic-2.d: New.
* ld-sh/tlspic-3.d: New.
* ld-sh/tlspic-4.d: New.
2002-10-11 14:44:55 +00:00
Kaz Kojima
94a03f18b8
* gas/sh/tlsd.s, gas/sh/tlsd.d: New.
...
* gas/sh/tlsnopic.s, gas/sh/tlsnopic.d: New.
* gas/sh/tlspic.s, gas/sh/tlspic.d: New.
* gas/sh/basic.exp: Add new tests.
2002-10-11 14:42:51 +00:00
Kaz Kojima
041bed02bf
* sh.h: Add SH TLS relocs.
2002-10-11 14:36:03 +00:00
Kaz Kojima
9efb3b7baf
* config/tc-sh.c (sh_force_relocation): Make sure TLS relocs get
...
emitted.
(md_apply_fix3): Add TLS relocs.
(sh_parse_name): Support @TLSGD, @TLSLDM, @GOTTPOFF, @TPOFF and
@DTPOFF.
2002-10-11 14:34:46 +00:00
Kaz Kojima
3376eaf577
* elf32-sh.c (sh_elf_optimized_tls_reloc, sh_elf_mkobject,
...
sh_elf_object_p, dtpoff_base): New functions.
(sh_elf_howto_table): Add TLS relocs.
(sh_reloc_map): Likewise.
(sh_elf_info_to_howto): Support TLS relocs.
(elf_sh_link_hash_entry): Add tls_type and tls_tpoff32.
(sh_elf_hash_entry, sh_elf_tdata, sh_elf_local_got_tls_type):
New macros.
(sh_elf_obj_tdata): New.
(elf_sh_link_hash_table): Add tls_ldm_got.
(sh_elf_link_hash_table_create): Clear refcount of tls_ldm_got.
(allocate_dynrelocs): Support TLS relocs.
(sh_elf_size_dynamic_sections): Likewise.
(sh_elf_relocate_section): Support TLS relocs. Don't try to find
.rela.got section when found already. Return false after printing
error about unresolvable relocation.
(sh_elf_gc_sweep_hook): Support TLS relocs.
(sh_elf_check_relocs): Likewise.
(sh_elf_finish_dynamic_symbol): Likewise.
(bfd_elf32_mkobject, elf_backend_object_p): Define for TLS case.
* reloc.c: Add SH TLS relocs.
* libbfd.h: Regenerate.
2002-10-11 14:32:03 +00:00
Kaz Kojima
5dc976556d
* bfd-in2.h: Regenerate.
2002-10-11 14:28:29 +00:00
Daniel Jacobowitz
8343f86c90
* c-exp.y (THIS): Delete token and grammar rule.
...
(yylex): Don't return THIS.
* cp-valprint.c (vtbl_ptr_name_old): Delete.
(cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
* demangle.c (cplus_markers): Update comment. Put '$'
first. Remove CPLUS_MARKER.
(_initialize_demangler): Don't call set_cplus_marker_for_demangling.
* jv-exp.y (THIS): Delete token and grammar rule.
(yylex): Don't return THIS.
* mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
* objc-exp.y (THIS): Delete token and grammar rule.
(yylex): Don't return THIS.
* p-exp.y (yylex): Remove reference to CPLUS_MARKER.
* stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
(read_member_functions): Likewise for opname.
(read_tilde_fields): Use is_cplus_marker.
* defs.h (CPLUS_MARKER): Don't define.
* config/tm-sysv4.h (CPLUS_MARKER): Likewise.
* config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
* config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
* config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
* config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
* config/i386/tm-i386v4.h: Delete file.
* config/djgpp/fnchange.lst: Delete tm-i386v4.h.
* config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
* config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
* config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
* config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
* config/i386/i386sco5.mt (TM_FILE): Likewise.
* config/i386/i386v4.mt (TM_FILE): Likewise.
* config/i386/ncr3000.mt (TM_FILE): Likewise.
2002-10-11 14:02:39 +00:00
Daniel Jacobowitz
6d12fc3d08
* gdbint.texinfo (CPLUS_MARKER): Remove item.
2002-10-11 14:01:04 +00:00
Daniel Jacobowitz
af39267ef5
* Makefile.am: Run dep-am.
...
(BFD32_LIBS): Add simple.lo.
(BFD32_LIBS_CFILES): Add simple.c.
* Makefile.in: Regenerated.
* bfd-in2.h: Regenerated.
* simple.c: New file.
2002-10-11 13:53:33 +00:00
Daniel Jacobowitz
eda81658db
* Makefile.am (BFD_H_DEP): Add simple.c and linker.c.
...
* Makefile.in: Regenerated.
2002-10-11 13:52:53 +00:00
Alan Modra
7f6a766382
* elf64-ppc.c (edit_opd): Correct local sym adjustment.
2002-10-11 12:59:06 +00:00
Alan Modra
fe213ce218
* pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
2002-10-11 08:59:24 +00:00
Alan Modra
14a793b2f2
Fix numerous occurrences of
...
warning: dereferencing type-punned pointer will break strict-aliasing rules
2002-10-11 08:33:11 +00:00
Alan Modra
2d801b0fa0
* ldgram.y (memory_spec): Provide empty action.
...
(section <NAME>): Likewise.
2002-10-11 07:39:07 +00:00
Alan Modra
0be617ce13
* elf64-ppc.c (edit_opd): Only zero opd syms when function is
...
completely removed.
2002-10-11 04:36:13 +00:00
Alan Modra
3e02c1cc58
* config/tc-i386.c (output_jump): Set fx_signed for loop/jcxz.
...
(md_estimate_size_before_relax): Likewise for 8 bit branches.
2002-10-11 00:25:32 +00:00
Alan Modra
5b33f915bf
daily update
2002-10-11 00:00:04 +00:00
gdbadmin
cf4e23066f
*** empty log message ***
2002-10-11 00:00:02 +00:00
Stephen Clarke
0a4ef3f414
* elf32-sh.c (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
...
Correct mistake in calculation of address of .got.
* elf64-sh64.c (elf_sh64_pic_plt_entry_be,
elf_sh64_pic_plt_entry_le): Likewise.
2002-10-10 21:45:14 +00:00