aboutsummaryrefslogtreecommitdiff
path: root/gas
AgeCommit message (Collapse)AuthorFilesLines
2005-04-20gas/testsuite/Jan Beulich3-5/+10
2005-04-20 Jan Beulich <jbeulich@novell.com> * gas/elf/struct.s: Adjust to not get into alignment issues. * gas/elf/struct.d: Adjust for the above and the test's name.
2005-04-19 * config/tc-sparc.c (md_assemble): If sparc_ip gives us aDavid S. Miller2-4/+13
NULL insn, exit early. Remove now spurious NULL checks. (sparc_ip): Use as_bad for unknown opcode errors, set *pinsn to NULL and exit.
2005-04-192005-04-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-12/+16
* gas/i386/padlock.d: Updated.
2005-04-19gas/Jan Beulich12-61/+34
2005-04-19 Jan Beulich <jbeulich@novell.com> * symbols.h (symbol_find_base): Remove prototype. * symbols.c (save_symbol_name): Remove code section conditional upon STRIP_UNDERSCORE. (symbol_find): Remove. (symbol_find_base): Rename to symbol_find. * subsegs.c (section_symbol): Replace use of symbol_find_base with symbol_find. * config/obj-coff.c (tag_insert): Remove code section conditional upon STRIP_UNDERSCORE. (obj_coff_def): Likewise. (obj_coff_endef): Replace use of symbol_find_base with symbol_find. (coff_frob_symbol): Likewise. (yank_symbols): Likewise. (c_section_symbol): Likewise. * config/obj-coff.h (DO_NOT_STRIP): Remove. * config/tc-arm.c (symbol_locate): Remove code section conditional upon STRIP_UNDERSCORE. * config/tc-h8300.h (DO_NOT_STRIP): Remove. * config/tc-h8500.h (DO_NOT_STRIP): Remove. * config/tc-sh.h (DO_NOT_STRIP): Remove. * config/tc-w65.h (DO_NOT_STRIP): Remove. * config/tc-z8k.h (DO_NOT_STRIP): Remove.
2005-04-19 * config/tc-ia64.c (md_assemble): Fix error message for wrongAndreas Schwab4-124/+133
access to application registers. testsuite/: * gas/ia64/invalid-ar.l: Adapt to changed error message.
2005-04-19gas/Jan Beulich4-8/+7
2005-04-19 Jan Beulich <jbeulich@novell.com> * config/te-sysv32.h: Remove. * Makefile.am (TARG_ENV_HFILES): Remove reference to config/te-sysv32.h. * Makefile.in (TARG_ENV_HFILES): Likewise.
2005-04-19gas/Jan Beulich2-2/+6
2005-04-19 Jan Beulich <jbeulich@novell.com> PR/847 * config/tc-ia64.c (ia64_canonicalize_symbol_name): Re-allow zero- length symbols.
2005-04-18gas/ChangeLog:Mark Kettenis2-0/+5
* config/tc-i386.c (md_begin): Allow hyphens in mnemonics. include/opcode/ChangeLog: * i386.h: Insert hyphens into selected VIA PadLock extensions. Add xcrypt-ctr. Provide aliases without hyphens. opcodes/ChangeLog: * i386-dis.c: Insert hyphens into selected VIA PadLock extensions. Add xcrypt-ctr.
2005-04-18* config/tc-mips.c (normalize_constant_expr): Don't check forMaciej W. Rozycki2-5/+19
HAVE_32BIT_GPRS. (check_absolute_expr): Only call normalize_constant_expr() if HAVE_32BIT_GPRS. (mips_ip): Likewise. * config/tc-mips.c (check_absolute_expr): Fix formatting.
2005-04-18gas/Jan Beulich6-3/+106
2005-04-18 Jan Beulich <jbeulich@novell.com> * macro.c (free_token): New, freeing all the memory associated with a macro. (do_formals): Move initializers to ... (define_macro): ... here. (delete_macro): Convert passed in name to lower case. Warn when purging macro that doesn't exist. Use hash_jam instead of hash_delete. gas/testsuite/ 2005-04-18 Jan Beulich <jbeulich@novell.com> * gas/macros/purge.[ls]: New. * gas/macros/macros.exp: Run new test.
2005-04-15* config/tc-mips.c (normalize_constant_expr): Fix formatting.Maciej W. Rozycki2-1/+5
2005-04-15gas/Jan Beulich6-0/+51
2005-04-15 Jan Beulich <jbeulich@novell.com> * config/obj-elf.c (obj_elf_struct): New. (elf_pseudo_table). Use it for .offset and .struct. gas/testsuite/ 2005-04-15 Jan Beulich <jbeulich@novell.com> * gas/elf/struct.[sd]: New. * gas/elf/elf.exp: Run new test.
2005-04-15 * gas/all/assign.s: New.Alan Modra4-0/+20
* gas/all/assign.d: New. * gas/all/gas.exp: Run it.
2005-04-15Include Sterling Augustine as author of previous change.Bob Wilson1-0/+1
2005-04-15 * config/tc-xtensa.c (get_aligned_diff): Handle target_size largerBob Wilson2-0/+8
than the section alignment.
2005-04-14 * config/tc-xtensa.h (struct xtensa_frag_type): Add lit_frchain field.Bob Wilson3-18/+32
* config/tc-xtensa.c (xg_translate_sysreg_op, xtensa_translate_old_userregs_ops, xtensa_find_unaligned_branch_targets, xtensa_find_unaligned_loops, xtensa_fix_close_loop_end_frags, relax_frag_add_nop): Support 64-bit host. (xtensa_mark_literal_pool_location, xtensa_move_literals): Use tc_frag_data lit_frchain and lit_seg fields instead of fr_var.
2005-04-14* configure.tgt: Add support for OpenBSD/sparc ELF.Mark Kettenis2-1/+10
2005-04-14* configure.tgt: Set emulation for mips-*-openbsd*.Mark Kettenis4-2/+14
Remove broken mips-dec-openbsd* config. * configure.in: Set default ABI for mips64-*-openbsd*. * configure: Regenerate.
2005-04-14* config/tc-mips.c (macro) [ldd_std]: Don't attempt the GPMaciej W. Rozycki2-1/+7
optimization for constant addresses.
2005-04-14* as.c (main): Move parse_args before symbol_begin and frag_init so that theNick Clifton4-9/+19
hash table size can be set before it is used. * hash.c: Use an unsigned long type for the size of the hash tables. * hash.h (set_gas_hash_table_size): Update the prototype.
2005-04-14bfd/Alan Modra7-62/+48
* Makefile.am (NO_WERROR): Define. * warning.m4: New file * acinclude.m4: Include warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gas/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. gprof/ * Makefile.am (NO_WERROR): Define. * acinclude.m4: Include ../bfd/warning.m4. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate. ld/ * Makefile.am (NO_WERROR): Define. Use instead of -Wno-error. * configure.in: Include ../bfd/warning.m4 contents. * Makefile.in: Regenerate. * configure: Regenerate. opcodes/ * Makefile.am (NO_WERROR): Define. * configure.in: Invoke AM_BINUTILS_WARNINGS. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * configure: Regenerate.
2005-04-13gas/:Maciej W. Rozycki14-193/+1844
* config/tc-mips.c (IS_ZEXT_32BIT_NUM): New macro. (normalize_address_expr): New function to sign-extend address offsets that fit into 32 bits in 32-bit mode. (macro_build_ldst_constoffset): Use normalize_address_expr() instead of a handcoded sequence. (load_register): Likewise. Report oversized numbers in a useful way. (macro) [ld_st, ldd_std]: Reject all oversized offsets, not only for constant addresses. Report oversized numbers in a useful way. (mips_ip): Use normalize_address_expr() for addresses. gas/testsuite/: * gas/mips/ldstla-32.s: Exclude offsets that are now meant to fail and include more instructions/offsets that are meant to succeed. Use $4 instead $3 to avoid register dependencies. * gas/mips/ldstla-32.d: Update accordingly. * gas/mips/ldstla-32-shared.d: Likewise. * gas/mips/ldstla-32-mips3.d: New test based on the above, except for mips3. * gas/mips/ldstla-32-mips3-shared.d: Similarly, for PIC. * gas/mips/ldstla-32-mips3.s: Source for the new tests. * gas/mips/ldstla-32-1.s: New test for offsets that are meant to fail. * gas/mips/ldstla-32-mips3-1.s: Likewise, for mips3. * gas/mips/ldstla-32-1.l: Stderr output for the new test. * gas/mips/ldstla-32-mips3-1.l: Likewise. * gas/mips/mips.exp: Run the new tests.
2005-04-12include/opcode/ChangeLog:Mark Kettenis2-23/+22
* i386.h (i386_optab): Mark VIA PadLock instructions as ImmExt and adjust them accordingly. gas/ChangeLog: * config/tc-i386.c (output_insn): Handle VIA PadLock instructions similar to other instructions now that they're marked as ImmExt.
2005-04-12* hash.c (DEFAULT_SIZE): Delete. Replace with:Nick Clifton8-19/+120
(gas_hash_table_size): New static variable. (set_gas_hash_table_size): New function: Records a requested size for the hash tables. (get_gas_hash_table_size): New function: Return a prime number near the requested size of the hash table. (hash_new): Use get_gas_hash_table_size. * hash.h: Add a prototype for set_gas_hash_table_size. * as.c (show_usage): Add description of new switches: --hash-size and --reduce-memory-overheads. (option_values): Add OPTION_HASH_TABLE_SIZE and OPTION_REDUCE_MEMORY_OVERHEADS. (std_longpopts): Add entries for the new options. (parse_args): Handle the new options. * Makefile.am: Add a dependency of as.c on hash.h. * Makefile.in: Regenerate. * doc/as.texinfo: Document the new switches. * NEWS: Mention the new switches.
2005-04-12PR gas/818Nick Clifton2-4/+11
* config/tc-hppa.c (pre_defined_registers): Fix %farg[0-3] synonyms.
2005-04-12bfd/Alan Modra3-40/+61
* Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * libcoff.h: Regenerate. bfd/doc/ * Makefile.in: Regenerate. binutils/ * Makefile.am: Run "make dep-am". (syslex.o, sysinfo.o, arparse.o, arlex.o): Add -Wno-error to command. (sysroff.o, defparse.o, deflex.o): Likewise. (nlmheader.o, rcparse.o, rclex.o): Likewise. * Makefile.in: Regenerate. * aclocal.m4: Regenerate. * config.in: Regenerate. * configure: Regenerate. gas/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ * Makefile.am: Run "make dep-am". (ldgram.o, ldlex.o, deffilep.o): Add -Wno-error to command. * Makefile.in: Regenerate. * config.in: Regenerate.
2005-04-11 * config/tc-xtensa.c (check_t1_t2_reads_and_writes): Fix typo.Bob Wilson2-1/+6
2005-04-11* gas/all/gas.exp: Don't run fastcall labels test onMark Kettenis2-1/+6
i*86-*-openbsd*.
2005-04-11* configure.tgt (generic_target): Add support for OpenBSD/i386 ELF.Mark Kettenis2-1/+8
2005-04-11gas/Jan Beulich9-71/+231
2005-04-11 Jan Beulich <jbeulich@novell.com> * NEWS: Mention these changes and their effects. * macro.c (get_token): Use is_name_beginner/is_part_of_name/ is_name_ender. (check_macro): Likewise. (buffer_and_nest): Likewise. Permit multiple labels. Don't discard labels together with the closing pseudo-op. (macro_expand_body): Adjust comment. Range-check input before use. Adjust mis-spelled diagnostic. Use is_name_beginner. * read.c (try_macro): New. (read_a_source_file): New static variable last_eol. Don't list macro expansion lines more than once. Call try_macro. (s_macro): Set section of line_label to absolute instead of undefined. * doc/as.texinfo: Add information on the caveats of these changes. gas/testsuite/ 2005-04-11 Jan Beulich <jbeulich@novell.com> * gas/macros/dot.[ls]: New. * gas/macros/macros.exp: Run new test.
2005-04-11 * symbols.c (symbol_X_add_number): Change return type to "offsetT *".Alan Modra3-4/+9
* symbols.h (symbol_X_add_number): Update prototype.
2005-04-102005-04-10 Eric Christopher <echristo@redhat.com>Eric Christopher2-1/+5
* symbols.c (symbol_X_add_number): Fix warning.
2005-04-102005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-3/+8
* config/tc-m68k.c (md_begin): Support 64bit host. (get_num): Support 64bit BFD on 32bit host.
2005-04-102005-04-10 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-2/+6
* config/tc-mips.c (md_apply_fix3): Fix typos in BFD_RELOC_64.
2005-04-09 * read.c (assign_symbol): Remove const from parm. Fix xcallocAlan Modra2-11/+16
call. Don't do the COFF hacks for multi-emulation gas. Move demand_empty_rest_of_line back to caller. (s_set, equals): demand_empty_rest_of_line here.
2005-04-09 PR gas/827Alan Modra6-130/+149
* as.h (rs_dummy): Define. * symbols.c (symbol_X_add_number): New function. * symbols.h (symbol_X_add_number): Declare. * stabs.c (aout_process_stab): Tidy symbol frag setting. * read.c (assign_symbol): New function, split out from s_set. Use symbol_find_or_make. Leave fr_type of dummy frag as rs_dummy. Fix COFF hacks for multi-emulation gas. (s_set): Call assign_symbol. Remove "register" keyword. (set_zero_frag): New function. (pseudo_set): Always check for assignment to section syms. Always set segment and frag of symbol, and likewise extern for aout/bout. Handle assignment of sym=sym+/-const specially. Don't special case exp.X_add_number non-zero for O_symbol expressions. (equals): Use assign_symbol.
2005-04-08 * config/tc-xtensa.c (xtensa_create_xproperty_segments): SkipBob Wilson2-3/+8
SEC_MERGE sections.
2005-04-07gas/H.J. Lu5-0/+19
2005-04-06 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (tc_gen_reloc): Don't turn BFD_RELOC_X86_64_32S into BFD_RELOC_32. gas/testsuite/ 2005-04-06 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/x86-64-pcrel.s: Test R_X86_64_32S. * gas/i386/x86-64-pcrel.d: Updated.
2005-04-06po/rw.po: New translation: KinyarwandaNick Clifton4-2/+3108
configure.in (ALL_LINGUAS): Add rw
2005-04-05 * config/tc-xtensa.c (branch_align_power): New.Bob Wilson2-8/+40
(xtensa_find_unaligned_branch_targets, get_aligned_diff, future_alignment_required): Use branch_align_power to check section alignment as well as xtensa_fetch_width when aligning branch targets.
2005-04-05 * config/tc-xtensa.c: Warning fixes throughout.Bob Wilson2-197/+177
(xtensa_fetch_width): Change to unsigned. (assemble_nop, xtensa_find_unaligned_branch_targets, xtensa_find_unaligned_loops, xg_assemble_vliw_tokens, is_narrow_branch_guaranteed_in_range, xtensa_fix_close_loop_end_frags, min_bytes_to_other_loop_end, unrelaxed_frag_min_size, unrelaxed_frag_max_size, xtensa_fix_short_loop_frags, count_insns_to_loop_end, unrelaxed_frag_min_insn_count, get_text_align_max_fill_size, get_text_align_nop_count, get_text_align_nth_nop_size, get_noop_aligned_address, get_aligned_diff, convert_frag_align_next_opcode, convert_frag_immed_finish_loop, xtensa_create_property_segments, xtensa_create_xproperty_segments, xt_block_aligned_size): Clean up types, avoiding size_t and using offsetT and addressT appropriately. (get_text_align_power): Clean up types. Avoid incorrect bound. (get_text_align_fill_size): Clean up types. Restructure for clarity.
2005-04-05bfd/H.J. Lu2-10/+9
2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * elf.c (bfd_elf_set_group_contents): Ignore linker created group section. (assign_section_numbers): Accept link_info. Check SHT_GROUP sections for relocatable files only. Remove the linker created group sections. (_bfd_elf_compute_section_file_positions): Pass link_info to assign_section_numbers. * elfxx-ia64.c (elfNN_ia64_object_p): New. (elf_backend_object_p): Defined. gas/ 2005-04-04 H.J. Lu <hongjiu.lu@intel.com> * config/tc-ia64.c (start_unwind_section): Undo the change of 2004-08-18. (generate_unwind_image, dot_endp): Likewise.
2005-04-02Patch from David Mosberger, to avoid nop.f on Itanium2.Jim Wilson2-8/+29
* config/tc-ia64.c (ia64_handle_align): Move le_nop and le_nop_stop arrays and initializers to file scope. (md_begin): When generating code for anything other than Itanium 1, use MMI instead of MFI NOP bundles as a filler.
2005-04-01gas/Jan Beulich2-1/+7
2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (output_imm): Also set sign flag for 64-bit push immediates.
2005-04-01Support the .f_floating, .d_floating, .g_floating and .h_floating directivesNick Clifton8-5/+48
for the VAX target in order to be more compatible with the VAX MACRO assembler.
2005-04-01elf-rel.d: Call gas with -k. Thanks toMatt Thomas for figuring out.Nick Clifton3-1/+10
vax.exp: Run elf-rel.[sd] for NetBSD-ELF and Linux.
2005-04-01Add a check for <unistd.h> providing a prototype for getopt() which is ↵Nick Clifton4-0/+83
compatible with the one in include/getopt.h. If so then define HAVE_DECL_GETOPT.
2005-04-01gas/Jan Beulich6-0/+28
2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (s_bss): Call obj_elf_section_change_hook. gas/testsuite/ 2005-04-01 Jan Beulich <jbeulich@novell.com> * gas/i386/bss.[sd]: New. * gas/i386/i386.exp: Run new test.
2005-04-01gas/Jan Beulich6-1/+32
2005-04-01 Jan Beulich <jbeulich@novell.com> * config/tc-i386.c (md_apply_fix3): Also handle BFD_RELOC_X86_64_32S. (tc_gen_reloc): Handle BFD_RELOC_X86_64_32S in the default case. gas/testsuite/ 2005-04-01 Jan Beulich <jbeulich@novell.com> * gas/i386/x86-64-pcrel.[sd]: New. * gas/i386/i386.exp: Run new test.
2005-03-30 * bfd/bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename fromJulian Brown2-1/+6
bfd_elf32_is_arm_mapping_symbol_name. * bfd/bfd-in2.h: Regenerate. * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from bfd_elf32_is_arm_mapping_symbol_name. * bfd/elf32-arm.c (elf32_arm_is_target_special_symbol): Rename bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name. (arm_elf_find_function): Likewise. (elf32_arm_output_symbol_hook): Likewise. * gas/config/tc-arm.c (arm_adjust_symtab): Likewise.