Geoffrey Keating
8141c27d66
* config/obj-bout.c (obj_crawl_symbol_chain): Don't take
...
the address of a function result.
2000-12-12 20:48:45 +00:00
Geoffrey Keating
5d6f4f1679
2000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
...
* config/tc-ppc.c (md_pseudo_table): Add .file and .loc.
(md_assemble): Call dwarf2_emit_insn.
(shlib): Fix typo SHILB -> SHLIB.
(md_parse_option): Likewise.
(ppc_elf_validate_fix): Likewise:
* config/tc-ppc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2000-12-12 20:05:16 +00:00
Nick Clifton
e972090a04
Fix formatting
2000-12-12 19:29:24 +00:00
Jan Hubicka
f16b83dfe5
* tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intel
...
mode; convert 'd' suffix to 's' or 'l'; remove all DWORD_MNEM_SUFFIX
references.
(intel_e09_1): Convert QWORD to 'l' suffix for FP operations; refuse
otherwise.
* tc-i386.h (DWORD_MNEM_SUFFIX): Kill.
(No_dSuf): Kill.
* i386.h (*_Suf): Remove No_dSuf.
(d_suf, wld_Suf,sld_Suf, sldx_Suf, bwld_Suf, d_FP, sld_FP, sldx_FP)
Remove.
(i386_optab): Remove 'd' in the suffixes.
2000-12-11 14:01:46 +00:00
Alan Modra
50705ef487
Fix T_SHORT macro conflict.
2000-12-06 02:40:55 +00:00
Kazu Hirata
beae10d5eb
2000-12-05 Kazu Hirata <kazu@hxi.com>
...
* config/tc-mips.c: Fix formatting.
2000-12-05 18:51:08 +00:00
Nick Clifton
bccba5f08c
Add outputting_stabs_line_debug varaible and D10v code to use it
2000-12-05 00:56:09 +00:00
Kazu Hirata
bc80588841
2000-12-03 Kazu Hirata <kazu@hxi.com>
...
* tc-a29k.c: Fix formatting.
* tc-alpha.c: Likewise.
* tc-arm.c: Likewise.
* tc-cris.c: Likewise.
* tc-hppa.c: Likewise.
* tc-i370.c: Likewise.
* tc-i386.c: Likewise.
* tc-i860.c: Likewise.
* tc-i960.c: Likewise.
* tc-ia64.c: Likewise.
* tc-m68hc11.c: Likewise.
* tc-m68k.c: Likewise.
* tc-m88k.c: Likewise.
* tc-pj.c: Likewise.
* tc-ppc.c: Likewise.
* tc-sh.c: Likewise.
* tc-sparc.c: Likewise.
* tc-tahoe.c: Likewise.
* tc-vax.c: Likewise.
2000-12-03 06:49:23 +00:00
Nick Clifton
c6c98b3833
Add MIPS SB1 machine
2000-12-02 01:10:33 +00:00
Nick Clifton
84ea6cf2c5
Add MIPS V and MIPS 64 machine numbers
2000-12-02 00:55:22 +00:00
Nick Clifton
e7af610e14
Add MIPS32 as a seperate MIPS architecture
2000-12-01 21:35:38 +00:00
Nick Clifton
4372b67322
Improve MIPS32 support
2000-12-01 20:05:32 +00:00
Nick Clifton
3dacdf2eb1
When calculating offsets, don't accept as constant the difference between the
...
addresses of symbols in two different sections.
2000-12-01 19:06:15 +00:00
Phil Blundell
4ce3447c16
2000-11-30 Philip Blundell <pb@futuretv.com>
...
* config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists,
even in non BFD_ASSEMBLER case.
2000-12-01 17:11:57 +00:00
Diego Novillo
76a0ddacc0
2000-11-30 Diego Novillo <dnovillo@redhat.com>
...
* tc-i386.c (md_assemble): Swap i.disp_relocs when using intel
syntax.
2000-11-30 Diego Novillo <dnovillo@redhat.com>
* intel.s, intel.d: New test for @GOT references.
2000-12-01 03:08:32 +00:00
Hans-Peter Nilsson
e46fee7099
(parse_reg): Parse names case-insensitively.
2000-11-28 23:53:51 +00:00
Hans-Peter Nilsson
dda5ecfc74
(sh_elf_cons): Cast *input_line_pointer to unsigned char when
...
indexing is_end_of_line[].
(md_assemble): Initialize size to 0.
(md_section_align): Mark parameter seg as unused.
2000-11-28 23:48:44 +00:00
Hans-Peter Nilsson
99b222b479
* config/tc-sh.c (md_convert_frag) <undefined symbol, conditional
...
jump>: Use as_bad_where instead of as_bad. Tweak error message
accordingly. Stabilize frag by updating fix part and resetting
variant part.
<undefined symbol, unconditional jump>: Ditto.
2000-11-28 23:33:45 +00:00
Kazu Hirata
814f664127
2000-11-27 Kazu Hirata <kazu@hxi.com>
...
* config/obj-aout.h: Fix formatting.
* config/obj-bout.h: Likewise.
* config/obj-coff.c: Likewise.
* config/obj-coff.h: Likewise.
* config/obj-elf.h: Likewise.
* config/obj-som.h: Likewise.
* config/obj-vms.c: Likewise.
* config/obj-vms.h: Likewise.
* config/tc-h8300.h: Likewise.
* config/tc-ns32k.h: Likewise.
* config/tc-sparc.h: Likewise.
* config/tc-tic54x.h: Likewise.
* config/tc-z8k.h: Likewise.
2000-11-28 21:29:02 +00:00
Hans-Peter Nilsson
fcdc20a4d3
* config/tc-cris.c: Include dwarf2dbg.h.
...
(md_pseudo_table): Add .file and .loc.
(md_assemble): Call dwarf2_emit_insn if generating ELF.
(s_cris_file, s_cris_loc): New.
* config/tc-cris.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
* Makefile.am: Regenerate dependencies.
* Makefile.in: Regenerate.
2000-11-28 15:39:15 +00:00
Stephane Carrez
ae3e85dd27
Fix movw/movb operands for 68HC12
2000-11-26 21:18:15 +00:00
Nick Clifton
077b8428ab
Add ARM v5t, v5te and XScale support
2000-11-25 00:21:40 +00:00
Jim Wilson
2434f56546
Eliminate compiler warnings from IA-64 port.
...
* config/tc-ia64.c (pseudo_func): Add missing initializers.
(struct rsrc): Make line unsigned.
(gr_values): Add missing initializer.
(SLOT_NUM_NOT_SET): Add unsigned cast.
(ia64_elf_section_flags, output_vbyte_mem, count_output, dot_radix,
dot_fframe, dot_vframe, dot_vframesp, dot_vframepsp, dot_save,
dot_restore, dot_restorereg, dot_restorereg_p, dot_handlerdata,
dot_unwentry, dot_altrp, dot_saveg, dot_savef, dot_saveb, dot_savegf,
dot_spill, dot_spillreg, dot_spillreg_p, dot_label_state,
dot_copy_state, dot_unwabi, dot_personality, dot_proc, dot_body,
dot_prologue, dot_endp, dot_regstk, dot_psr, dot_alias, dot_ln,
dot_reg_val, dot_entry, dot_mem_offset, ia64_init, mark_resource,
md_undefined_symbol, md_apply_fix3, tc_gen_reloc, ia64_md_do_align):
Add ATTRIBUTE_UNUSED to unused parameters.
(convert_expr_to_ab_reg): Add parens.
(convert_expr_to_xy_reg): Add parens. Comment out >= REG_GR test.
(dot_prologue): Initialize grsave when declared.
(md_pseudo_table): Add missing initializers.
(operand_match): Add casts to bfd_vma.
(emit_one_bundle): Delete unused local prev. Make required_template
unsigned.
(specify_resource): Cast i to unsigned.
(note_register_values): Use fprintf_vma.
(print_dependency): Likewise.
2000-11-22 23:08:47 +00:00
Jim Wilson
5e7474a7c9
Fix linux kernel unwind section alignment failure.
...
* config/tc-ia64.c (generate_unwind_image): Call record_alignment
for unwind info section.
(dot_endp): Likewise for unwind section.
2000-11-22 02:10:34 +00:00
Jim Wilson
5a080f897a
Fix assembler error on linux kernel mm/memory.c file.
...
* config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to
fix_new_exp.
2000-11-22 01:12:05 +00:00
Jakub Jelinek
b8e904dce5
* config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
2000-11-21 21:37:44 +00:00
Jakub Jelinek
732d96b6ca
* config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
...
(output_insn): Call dwarf2_emit_insn.
2000-11-21 12:40:14 +00:00
Nick Clifton
8179bd9b1b
Add support for .line and .file pseudo ops.
2000-11-17 18:46:43 +00:00
Richard Henderson
316e2c0578
* config/tc-i386.c (md_pseudo_table): Add .file and .loc.
2000-11-17 18:15:53 +00:00
Richard Henderson
a8316fe296
* dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.
...
* config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for
tri-state definition of alpha_flag_mdebug.
* config/tc-alpha.c (alpha_flag_mdebug): Init to -1.
(s_alpha_file): Store first .file directive.
(s_alpha_stab): New.
(md_pseudo_table): Add stabs and stabn.
2000-11-17 18:07:33 +00:00
Richard Henderson
e346e481c2
* config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.
2000-11-17 09:28:04 +00:00
Richard Henderson
4dc7ead9fd
* as.c (debug_type): Init to DEBUG_UNSPECIFIED.
...
* as.h (debug_type): Clarify documentation of the meaning
of this variable.
* dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1.
(print_stats): Fix parenthesis problem.
(now_subseg_size): New.
(dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info.
(dwarf2_directive_file): Don't set debug_type.
(dwarf2_where): Honor DEBUG_DWARF2 first.
(dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno;
do nothing if not emitting dwarf2 debug info, or no work.
* dwarf2dbg.h (dwarf2_emit_insn): Update.
* ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED.
(ecoff_new_file): Likewise.
* read.c (generate_lineno_debug): Kill ecoff hackery. Update
commentary wrt dwarf2.
* config/tc-alpha.c (alpha_adjust_symtab_relocs): Add
ATTRIBUTE_UNUSED as needed.
(emit_insn): Call dwarf2_emit_insn.
(s_alpha_file): New.
(s_alpha_loc): New.
(s_alpha_coff_wrapper): Don't handle them.
(md_pseudo_table): Update for .file and .loc.
* config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New.
* config/tc-arm.c (output_inst): Update for dwarf2_emit_insn;
don't protect with debug_type.
* config/tc-hppa.c (md_assemble): Likewise.
* config/tc-m68hc11.c (m68hc11_new_insn): Likewise.
* config/tc-mn10300.c (md_assemble): Likewise.
* config/tc-sh.c (md_assemble): Likewise.
* config/tc-v850.c (md_assemble): Likewise.
* config/tc-arm.c (arm_end_of_source): Remove.
* config/tc-hppa.c (pa_end_of_source): Remove.
* config/tc-m68hc11.c (m68hc11_end_of_source): Remove.
* config/tc-mn10300.c (mn10300_finalize): Remove.
* config/tc-sh.c (sh_finalize): Remove.
* config/tc-v850.c (sh_finalize): Remove.
* config/tc-arm.h (md_end): Remove.
* config/tc-hppa.h (md_end): Remove.
(DWARF2_LINE_MIN_INSN_LENGTH): New.
* config/tc-m68hc11.h (md_end): Remove.
* config/tc-mn10300.h (md_end): Remove.
* config/tc-sh.h (md_end): Remove.
* config/tc-v850.h (md_end): Remove.
* config/tc-ia64.c (emit_one_bundle): Don't protect
dwarf2 bits with debug_type.
(md_assemble): Likewise.
(ia64_end_of_source): Don't call dwarf2_finish.
2000-11-17 08:47:52 +00:00
Jim Wilson
ca683b78f3
Fix minor typos in recent errata workaround patch.
...
* config/tc-ia64.c (errata_nop_necessary_p): Abort if general regno
>= 128 instead of > 128. Abort if predicate regno is >= 64 instead of
> 16.
2000-11-16 23:52:01 +00:00
H.J. Lu
6f62085610
2000-11-16 H.J. Lu <hjl@gnu.org>
...
* config/obj-elf.c (obj_elf_symver): Don't check the missing
version name.
2000-11-16 19:29:12 +00:00
Kazu Hirata
19d63e5d2d
2000-11-15 Kazu Hirata <kazu@hxi.com>
...
* config/tc-tic30.c: Fix formatting.
* config/tc-tic80.c: Likewise.
* config/tc-v850.c: Likewise.
* config/tc-vax.c: Likewise.
* config/tc-w65.c: Likewise.
* config/tc-z8k.c: Likewise.
2000-11-16 00:59:49 +00:00
DJ Delorie
a8761a19f4
* config/tc-v850.c: Support dwarf2.
...
* config/tc-v850.h: Ditto.
* config/tc-v850.c (cons_fix_new_v850): Don't rely on
parse_cons_expression_v850 to initialize hold_cons_reloc.
2000-11-15 19:22:22 +00:00
Bernd Schmidt
88be23ec6a
Workaround for Itanium A/B step errata
2000-11-15 17:34:00 +00:00
Jim Wilson
72a76794c1
Extend earlier ia64-hpux patches to work correctly for ia64-linux.
...
* config/tc-ia64.c (ia64_target_format): If EF_IA_64_BE not set, then
return little endian bfd formats.
2000-11-14 23:56:38 +00:00
Kazu Hirata
4a1805b14d
2000-11-14 Kazu Hirata <kazu@hxi.com>
...
* config/aout_gnu.h: Fix formatting.
* config/atof-vax.c: Likewise.
* config/m68k-parse.h: Likewise.
* config/m88k-opcode.h: Likewise.
* config/obj-elf.c: Likewise.
* config/tc-arm.c: Likewise.
* config/tc-cris.c: Likewise.
* config/tc-i386.c: Likewise.
* config/tc-ia64.c: Likewise.
* config/tc-mn10300.c: Likewise.
* config/te-386bsd.h: Likewise.
* config/te-hppa.h: Likewise.
* config/te-nbsd.h: Likewise.
* config/te-ppcnw.h: Likewise.
* config/te-sparcaout.h: Likewise.
* config/te-tmips.h: Likewise.
* config/vax-inst.h: Likewise.
* config/vms-conf.h: Likewise.
2000-11-14 20:57:30 +00:00
Jakub Jelinek
c810873da1
* elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
...
by STO_ALPHA constants.
* config/tc-alpha.c (s_alpha_prologue): Preserve visibility bits.
2000-11-14 20:46:25 +00:00
H.J. Lu
79082ff0c6
2000-11-13 H.J. Lu <hjl@gnu.org>
...
* config/obj-elf.c (elf_frob_symbol): Support
".symver name,name2@@@nodename".
(elf_frob_file_before_adjust): Likewise.
* doc/as.texinfo: Updated for ".symver name,name2@@@nodename"
and ".symver name,name2@@@nodename".
Fix a typo.
2000-11-13 21:23:34 +00:00
H.J. Lu
1da00eb45d
2000-11-12 H.J. Lu (hjl@gnu.org)
...
* config/obj-elf.c (obj_elf_symver): Check missing version
name.
2000-11-13 01:12:31 +00:00
Jim Wilson
f5a30c2e6e
Correct unwind region length calculations.
...
* config/tc-ia64.c (struct unw_rec_list): Add slot_frag field.
(struct unwind): Add next_slot_frag field.
(slot_index): New parameters slot_frag and first_frag. Add code
to add in frag sizes when different. Add comments.
(fixup_unw_records): New locals first_frag and last_frag. Pass new
arguments to slot_index.
(emit_one_bundle): Set slot_frag field. Set next_slot_number after
loop end. Set next_slot_frag field.
2000-11-08 20:55:21 +00:00
H.J. Lu
339681c049
2000-11-07 H.J. Lu <hjl@gnu.org>
...
* doc/as.texinfo (.symver): Updated for versioned symbol
reference.
* obj.h (format_ops): Add the frob_file_before_adjust field.
* config/obj-aout.c (aout_format_ops): Set the
frob_file_before_adjust field to 0.
* config/obj-coff.c (coff_format_ops): Likewise.
* config/obj-ecoff.c (ecoff_format_ops): Likewise.
* config/obj-elf.c (obj_elf_symver): Allow duplicated version
name.
(elf_frob_file_before_adjust): New function to remove unneeded
versioned symbols from the symbol table.
(elf_format_ops): Set the frob_file_before_adjust field to
elf_frob_file_before_adjust.
* config/obj-elf.h (obj_frob_file_before_adjust): Defined if
not defined.
* config/obj-multi.h (obj_frob_file_before_adjust): Defined.
2000-11-08 00:24:23 +00:00
Nick Clifton
4a314ec807
Apply patch from Peter Targett to fix building arc-elf32 target.
2000-11-08 00:06:34 +00:00
Jim Wilson
44f5c83ad3
ia64-hpux patches from Steve Ellcey.
...
* config/tc-ia64.c (md_shortopts, md_parse_option, md_show_usage):
Change M to m for -milp32 or -mlp64 to match gcc.
(dot_endp): Use bytes_per_address instead of 8.
(emit_one_bundle): Use number_to_chars_littleendian instead of
md_number_to_chars.
(fix_insn): Likewise.
(ia64_init): New function.
(ia64_target_format): New function.
(md_begin): Set endianness, arch, and machine as appropriate.
* config/tc-ia64.h: (TARGET_BYTES_BIG_ENDIAN, md_number_to_chars):
Make these macros depend on TE_HPUX macro.
(TARGET_FORMAT): Define.
(HOST_SPECIAL_INIT): Define.
* config/te-hpux.h: New file.
* configure.in: Add "ia64-*-hpux*" target to configure.
* configure: Regenerate.
2000-11-07 01:21:10 +00:00
Nick Clifton
8d6b5c8e2f
Add include of "dwarf2dbg.h"
2000-11-05 19:28:57 +00:00
Nick Clifton
37d8bb275b
Preserve copy of case clobber opcodes so that .req pseudo op works
2000-11-02 19:32:47 +00:00
Nick Clifton
d75bb8cff6
SWitch over to using dwarf2_generate_asm_lineno
2000-11-02 19:17:04 +00:00
Phil Blundell
6c17cfe4d2
2000-11-02 Theo Honohan <th@futuretv.com>
...
* config/tc-arm.c (do_msr): Improve error message.
2000-11-02 15:10:57 +00:00