aboutsummaryrefslogtreecommitdiff
path: root/gas/config
AgeCommit message (Collapse)AuthorFilesLines
2001-01-082001-01-08 Bo Thorsen <bo@suse.de>Andreas Jaeger1-46/+46
* config/tc-i386.c (i386_immediate, i386_displacement): GOTPCREL check fix.
2001-01-06 * configure.in: Define DEFAULT_ARCH for i386.Jan Hubicka1-4/+12
* tc-i386.c (md_assemble): Return after the error message; move testing for 64bit operands to proper place. * i386.exp: Add tests for presence of 32bit versus 64bit output format; run both 64bit and 32bit tests when format is available; add x86_64 test. * x86_64.s: New file. * x86_64.d: New file.
2001-01-05 * tc-i386.c (md_assemble): Handle third byte of the opcode as prefix.Jan Hubicka1-18/+6
* i386.h (i386_optab): Make [sml]fence template to use immext field.
2001-01-04 * tc-i386.c (cpu_arch): Add Pentium4 and modify sledgehammer entry.Jan Hubicka1-1/+2
* NEWS: Add note about Pentium4 support.
2001-01-03 * tc-i387.c (pi, pte, pt): Update.Jan Hubicka1-16/+19
(type_names): Add new types.
2001-01-03 * tc-i386.h (CpuK6, CpuAthlon, CpuSledgehammer, CpuMMX, Cpu3dnow,Jan Hubicka1-8/+10
CpuUnknown): Renumber (CpuP4, CpuSSE2): New. (CpuUnknownFlags): Add CpuP4 and CpuSSE2 * i386.h (i386_optab): Fix 64bit pushf template; Add instructions introduced by Pentium4
2001-01-032001-01-03 Philip Blundell <pb@futuretv.com>Phil Blundell1-1/+9
* config/tc-alpha.c (alpha_force_relocation): Handle vtable relocs. (alpha_fix_adjustable): Likewise. (md_apply_fix): Likewise.
2000-12-28 * as.h (rs_align_test): New.Richard Henderson16-230/+289
* frags.c (NOP_OPCODE): Move default from read.c. (MAX_MEM_FOR_RS_ALIGN_CODE): New default. (frag_align_code): New. * frags.h (frag_align_code): Declare. * read.c (NOP_OPCODE): Remove. (do_align): Use frag_align_code. * write.c (NOP_OPCODE): Remove. (get_recorded_alignment): New. (cvt_frag_to_fill): Handle rs_align_test. (relax_segment): Likewise. (subsegs_finish): Align last subseg in section to the section alignment. Use frag_align_code. * write.h (get_recorded_alignment): Declare. * config/obj-coff.c (size_section): Handle rs_align_test. (fill_section, fixup_mdeps): Likewise. (write_object_file): Use frag_align_code. * config/tc-alpha.c (alpha_align): Use frag_align_code. (alpha_handle_align): New. * config/tc-alpha.h (HANDLE_ALIGN): New. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-i386.h (md_do_align): Use frag_align_code. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-ia64.c (ia64_md_do_align): Don't do code alignment. (ia64_handle_align): New. * config/tc-ia64.h (HANDLE_ALIGN): New. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-m32r.c (m32r_do_align): Remove. (m32r_handle_align): New. (fill_insn): Use frag_align_code. * config/tc-m32r.h (md_do_align): Remove. (HANDLE_ALIGN, MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-m88k.c, config/tc-m88k.h: Similarly. * config/tc-mips.c, config/tc-mips.h: Similarly. * config/tc-sh.c (sh_cons_align): Use rs_align_test. (sh_handle_align): Likewise. Handle rs_align_code. (sh_do_align): Remove. * config/tc-sh.h (md_do_align): Remove. (MAX_MEM_FOR_RS_ALIGN_CODE): New. * config/tc-sparc.c (sparc_cons_align): Use rs_align_test. (sparc_handle_align): Likewise. Handle rs_align_code. * config/tc-sparc.h (md_do_align): Remove. (MAX_MEM_FOR_RS_ALIGN_CODE): New.
2000-12-22* config/tc-d10v.c (md_assemble): set prev_seg and prev_subsegDJ Delorie1-0/+2
when we assemble the first half of a pair.
2000-12-222000-12-22 H.J. Lu <hjl@gnu.org>H.J. Lu1-10/+11
* config/tc-i386.c (reloc): Update the macro for non-bfd assembler. (BFD_RELOC_X86_64_GOTPCREL): Set to 0 for non-bfd assembler.
2000-12-20 * tc-i386.h (i386_target_format): Define even for ELFs.Jan Hubicka2-262/+876
(QWORD_MNEM_SUFFIX): New macro. (CpuK6,CpuAthlon,CpuSledgehammer, Cpu64, CpuNo64, CpuUnknownFlags): New macros (CpuMMX,CpuSSE,Cpu3dnow, CpuUnknown): Renumber. (IgnoreSize, DefaultSize, No_?Suf, FWait, IsString, regKludge, IsPrefix, ImmExt): Renumber. (Size64, No_qSuf, NoRex64, Rex64): New macros. (Reg64, Imm32S, Imm64, Disp32S, Disp64): New macros. (Imm8, Imm8S, Imm16, Imm32, Imm1, BaseIndex, Disp8, Disp16, Disp32, InOutPortReg,ShiftCount, Control, Debug, Test, FloatReg, FloatAcc, SReg2, SReg3, Acc, JumpAbsolute, RegMMX, RegXMM, EsSeg, InvMem): Renumber. (Reg, WordReg): Add Reg64. (Imm): Add Imm32S and Imm64. (EncImm): New. (Disp): Add Disp64 and Disp32S. (AnyMem): Add Disp32S. (RegRex, RegRex64): New macros. (rex_byte): New type. * tc-i386.c (set_16bit_code_flag): Kill. (fits_in_unsigned_long, fits_in_signed_long): New functions. (reloc): New parameter "signed"; support x86_64. (set_code_flag): New. (DEFAULT_ARCH): New macro; default to "i386". (default_arch): New static variable. (struct _i386_insn): New fields Operand_PCrel; rex. (flag_16bit_code): Kill; All tests replaced to "flag_code == CODE_64BIT"; (flag_code): New enum and static variable. (use_rela_relocations): New static variable. (flag_code_names): New static variable. (cpu_arch_flags): Default to CpuUnknownFlags|CpuNo64. (cpu_arch): Add "sledgehammer"; Add CPUAthlon to Athlon and CpuK6 to K6 and Athlon. (i386_align_code): Return plain "nop" for x86_64. (mode_from_disp_size): Support Disp32S. (smallest_imm_type): Support Imm32S and Imm64. (offset_in_range): Support size of 8. (set_cpu_arch): Do not clobber to Cpu64/CpuNo64. (md_pseudo_table): Add "code64"; use set_code_flat. (md_begin): Emit sane error message on hash failure. (tc_i386_fix_adjustable): Support x86_64 relocations. (md_assemble): Support QWORD_MNEM_SUFFIX, REX registers, instructions supported on particular arch just partially, output of 64bit immediates, handling of Imm32S and Disp32S type. (i386_immedaite): Support x86_64 relocations; support 64bit constants. (i386_displacement): Likewise. (i386_index_check): Cleanup; support 64bit addresses. (md_apply_fix3): Support x86_64 relocation and rela. (md_longopts): Add "32" and "64". (md_parse_option): Add OPTION_32 and OPTION_64. (i386_target_format): Call even for ELFs; choose between elf64-x86-64 and elf32-i386. (i386_validate_fix): Refuse GOTOFF in 64bit mode. (tc_gen_reloc): Support rela relocations and x86_64. (intel_e09_1): Support QWORD. * i386.h (i386_optab): Replace "Imm" with "EncImm". (i386_regtab): Add flags field.
2000-12-162000-12-15 Diego Novillo <dnovillo@redhat.com>Diego Novillo1-10/+50
* config/tc-i386.c (intel_e09_1): Only flag as a memory operand if it's not an offset expression. (intel_e10_1): Ditto. Also, if the operand is an offset expression, keep the braces '[' and ']' in the output string. (intel_e11): Ditto. Also remove comparison intel_parser.op_modifier != FLAT. There is no such op_modifier.
2000-12-13Rodney Brown's CHECK_FIELD typo fixes.Alan Modra1-2/+2
2000-12-12Eliminate ia64 compiler warnings. Fix ia64 gas testsuite again.Jim Wilson1-0/+1
* elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *. * config/tc-ia64.h (ia64_init): Add prototype. * gas/ia64/dv-imply.d, gas/ia64/dv-mutex.d, gas/ia64/dv-safe.d, gas/ia64/dv-srlz.d, gas/ia64/opc-m.d: Update. * ia64-dis.c (print_insn_ia64): Cast away const on ia64_free_opcode argument. * ia64_gen.c (insert_deplist): Cast sizeof result to int. (print_dependency_table): Print NULL if semantics field not set. (insert_opcode_dependencies): Mark cmp parameter as unused. (print_main_table): Use fprintf_vma to print long long fields. (main): Mark argv paramter as unused. Convert to old style definition. * ia64-opc.c (ia64_find_dependency): Cast sizeof result to int. * ia64-asmtab.c: Regnerate.
2000-12-12 * config/obj-bout.c (obj_crawl_symbol_chain): Don't takeGeoffrey Keating1-1/+1
the address of a function result.
2000-12-122000-12-12 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>Geoffrey Keating2-4/+12
* 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-12Fix formattingNick Clifton1-22/+35
2000-12-11 * tc-i386.c (md_assemble): Refuse 's' and 'l' suffixes in the intelJan Hubicka2-23/+35
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-06Fix T_SHORT macro conflict.Alan Modra1-1/+4
2000-12-052000-12-05 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-221/+212
* config/tc-mips.c: Fix formatting.
2000-12-05Add outputting_stabs_line_debug varaible and D10v code to use itNick Clifton1-31/+61
2000-12-032000-12-03 Kazu Hirata <kazu@hxi.com>Kazu Hirata19-148/+147
* 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-02Add MIPS SB1 machineNick Clifton1-0/+7
2000-12-02Add MIPS V and MIPS 64 machine numbersNick Clifton1-9/+36
2000-12-01Add MIPS32 as a seperate MIPS architectureNick Clifton1-350/+323
2000-12-01Improve MIPS32 supportNick Clifton1-22/+35
2000-12-01When calculating offsets, don't accept as constant the difference between theNick Clifton1-2/+2
addresses of symbols in two different sections.
2000-12-012000-11-30 Philip Blundell <pb@futuretv.com>Phil Blundell1-1/+1
* config/obj-coff.c (obj_coff_weak): Use S_SET_WEAK if it exists, even in non BFD_ASSEMBLER case.
2000-12-012000-11-30 Diego Novillo <dnovillo@redhat.com>Diego Novillo1-0/+8
* 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-11-28 (parse_reg): Parse names case-insensitively.Hans-Peter Nilsson1-53/+59
2000-11-28 (sh_elf_cons): Cast *input_line_pointer to unsigned char whenHans-Peter Nilsson1-3/+3
indexing is_end_of_line[]. (md_assemble): Initialize size to 0. (md_section_align): Mark parameter seg as unused.
2000-11-28 * config/tc-sh.c (md_convert_frag) <undefined symbol, conditionalHans-Peter Nilsson1-17/+22
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-282000-11-27 Kazu Hirata <kazu@hxi.com>Kazu Hirata13-45/+45
* 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 * config/tc-cris.c: Include dwarf2dbg.h.Hans-Peter Nilsson2-0/+45
(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-26Fix movw/movb operands for 68HC12Stephane Carrez1-7/+24
2000-11-25Add ARM v5t, v5te and XScale supportNick Clifton1-114/+1321
2000-11-22Eliminate compiler warnings from IA-64 port.Jim Wilson1-109/+116
* 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-22Fix linux kernel unwind section alignment failure.Jim Wilson1-0/+7
* config/tc-ia64.c (generate_unwind_image): Call record_alignment for unwind info section. (dot_endp): Likewise for unwind section.
2000-11-22Fix assembler error on linux kernel mm/memory.c file.Jim Wilson1-1/+1
* config/tc-ia64.c (emit_one_bundle): Pass size of 8 not 4 to fix_new_exp.
2000-11-21 * config/tc-sparc.h (DWARF2_LINE_MIN_INSN_LENGTH): New.Jakub Jelinek1-0/+2
2000-11-21 * config/tc-sparc.c (md_pseudo_table): Add .file and .loc.Jakub Jelinek1-0/+7
(output_insn): Call dwarf2_emit_insn.
2000-11-17Add support for .line and .file pseudo ops.Nick Clifton1-2/+4
2000-11-17 * config/tc-i386.c (md_pseudo_table): Add .file and .loc.Richard Henderson1-0/+3
2000-11-17 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.Richard Henderson2-2/+51
* 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 * config/tc-i386.c (md_assemble): Call dwarf2_emit_insn.Richard Henderson1-0/+2
2000-11-17 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.Richard Henderson15-121/+48
* 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-16Fix minor typos in recent errata workaround patch.Jim Wilson1-3/+3
* 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-162000-11-16 H.J. Lu <hjl@gnu.org>H.J. Lu1-6/+2
* config/obj-elf.c (obj_elf_symver): Don't check the missing version name.
2000-11-162000-11-15 Kazu Hirata <kazu@hxi.com>Kazu Hirata5-105/+75
* 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-15* config/tc-v850.c: Support dwarf2.DJ Delorie2-2/+26
* 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.