aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2011-06-30Fix rorx in BMI2.H.J. Lu11-82/+98
gas/testsuite/ 2011-06-30 H.J. Lu <hongjiu.lu@intel.com> AVX Programming Reference (June, 2011) * gas/i386/bmi2.s: Correct rorx tests. * gas/i386/x86-64-bmi2.s: Likewise. * gas/i386/bmi2-intel.d: Updated. * gas/i386/bmi2.d: Likewise. * gas/i386/x86-64-bmi2-intel.d: Likewise. * gas/i386/x86-64-bmi2.d: Likewise. opcodes/ 2011-06-30 H.J. Lu <hongjiu.lu@intel.com> AVX Programming Reference (June, 2011) * i386-dis.c (vex_len_table): Correct rorxS. * i386-opc.tbl: Correct rorx. * i386-tbl.h: Regenerated.
2011-06-30 PR binutils/12558Nick Clifton2-5/+17
* ar.c (main): When asked to move members in an archive that is being created, ignore the move request.
2011-06-30 * gas/arm/addthumb2err.s: New test file.Nick Clifton6-0/+74
* gas/arm/addthumb2err.d: Test control file. * gas/arm/addthumb2err.l: Expected error messages. * config/tc-arm.c (do_t_add_sub): Only allow LSL shifts of less than 4 in Thumb mode.
2011-06-30 PR gas/12931Nick Clifton4-1/+11
* gas/arm/blx-bad.d: Add exrta nop at end of disassembly. * gas/arm/inst-po-be.d: Add exrta nop at end of disassembly. * gas/arm/inst-po.d: Add exrta nop at end of disassembly.
2011-06-30 PR 12848Nick Clifton4-0/+34
* gas/arm/thumb-b-bad.s: New test. * gas/arm/thumb-b-bad.d: Test control file. * gas/arm/thumb-b-bad.l: Expected error output.
2011-06-30 PR gas/12848Nick Clifton2-28/+23
* config/tc-arm.c (BAD_RANGE): New error message define. (md_apply_fix): Use it. Fix range check for thumb branch instructions.
2011-06-30http://sourceware.org/ml/gdb-patches/2011-06/msg00444.htmlAndrew Burgess2-0/+5
Add myself to the write after approval list.
2011-06-30http://sourceware.org/ml/gdb-patches/2011-06/msg00442.htmlAndrew Burgess2-0/+7
Don't compile c++ tests for platforms that don't support c++.
2011-06-30 PR gold/12629Ian Lance Taylor3-38/+113
* object.cc (Sized_relobj_file::layout_section): Change shdr parameter to be const. (Sized_relobj_file::layout_eh_frame_section): New function, broken out of do_layout. (Sized_relobj_file::do_layout): Defer .eh_frame sections if appropriate. Call layout_eh_frame_section. (Sized_relobj_file::do_layout_deferred_sections): Handle .eh_frame sections. * object.h (class Sized_relobj_file): Update declarations.
2011-06-30*** empty log message ***gdbadmin1-1/+1
2011-06-30daily updateAlan Modra1-1/+1
2011-06-29gdb/Jan Kratochvil5-0/+29
Disable epilogue unwinders on recent GCCs. * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab, initialize it, return 0 on EPILOGUE_UNWIND_VALID. * dwarf2read.c (process_full_comp_unit): Initialize EPILOGUE_UNWIND_VALID. * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab, initialize it, return 0 on EPILOGUE_UNWIND_VALID. * symtab.h (struct symtab): New field epilogue_unwind_valid.
2011-06-29gdb/Jan Kratochvil2-7/+23
Code cleanup - reformatting. * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ... (producer_is_gcc_ge_4): ... here, change the return value. (process_full_comp_unit): New variable gcc_4_minor, adjust the value interpretation.
2011-06-29gdb/Jan Kratochvil8-7/+159
Fix non-only rename list for Fortran modules import. * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the cp_add_using_directive caller. (cp_add_using_directive): New parameter excludes, describe it. New variables ix and param. Compare if also excludes match. Allocate NEW with variable size, initialize EXCLUDES there. (cp_lookup_symbol_imports): New variable excludep, test current->EXCLUDES with it. * cp-support.h: Include vec.h. (struct using_direct): New field excludes, describe it. (DEF_VEC_P (const_char_ptr)): New. (cp_add_using_directive): New parameter excludes. * defs.h (const_char_ptr): New typedef. * dwarf2read.c (read_import_statement): New variables child_die, excludes and cleanups, read in excludes. (read_namespace): Adjust the cp_add_using_directive caller. gdb/testsuite/ Fix non-only rename list for Fortran modules import. * gdb.fortran/module.exp (print var_x, print var_y, print var_z): New tests. * gdb.fortran/module.f90 (module moduse): New. (program module): use moduse, test var_x, var_y and var_z.
2011-06-29gdb/Jan Kratochvil2-9/+23
Code cleanup. * cp-namespace.c (cp_add_using_directive): Turn positive comparison to negative comparisons.
2011-06-29 * script.cc (Token::integer_value): Accept trailing M/m/K/kIan Lance Taylor2-11/+40
modifier. (Lex::gather_token): Accept trailing M/m/K/k for integers.
2011-06-29 * script.cc (Token::integer_value): Accept trailing M/m/K/kIan Lance Taylor1-0/+6
modifier. (Lex::gather_token): Accept trailing M/m/K/k for integers.
2011-06-29 PR gold/12675Ian Lance Taylor3-2/+12
* object.cc (Sized_relobj_file::check_eh_frame_flags): Check for SHT_X86_64_UNWIND. * layout.cc (Layout::layout_eh_frame): Likewise.
2011-06-29 PR gold/12695Ian Lance Taylor4-1/+23
* layout.cc (Layout::symtab_section_shndx): New function. * layout.h (class Layout): Declare symtab_section_shndx. * output.cc (Output_section::write_header): Call it.
2011-06-29gas/Richard Sandiford2-156/+238
* config/tc-mips.c (append_method): New enum. (can_swap_branch_p, get_append_method): New functions. (append_insn): Use get_append_method to decide how the instruction should be added.
2011-06-29readline/Jan Kratochvil4-1/+19
Avoid free from a signal handler. * Makefile.in (xfree.o): Add readline.h. * xfree.c: Include stdio.h and readline.h. (xfree): Return on RL_STATE_SIGHANDLER. * xmalloc.h (xfree): New definition.
2011-06-29gas/Richard Sandiford2-96/+96
* config/tc-mips.c (append_insn): Remove bogus goto.
2011-06-29Replace "index" with "i".H.J. Lu3-8/+13
2011-06-29 H.J. Lu <hongjiu.lu@intel.com> * tilegx-opc.c (find_opcode): Replace "index" with "i". * tilepro-opc.c (find_opcode): Likewise.
2011-06-29gas/Richard Sandiford2-7/+11
* config/tc-mips.c (append_insn): Always clear the history after an unconditional branch.
2011-06-29gas/Richard Sandiford4-4/+35
* config/tc-mips.c (find_altered_mips16_opcode): New function. (append_insn): Use it. opcodes/ * mips16-opc.c (jalrc, jrc): Move earlier in file.
2011-06-29gas/Richard Sandiford15-233/+214
* config/tc-mips.c (insn_uses_reg): Delete. (gpr_read_mask, gpr_write_mask): New functions. (fpr_read_mask, fpr_write_mask): Likewise. (insns_between, nops_for_vr4130, append_insn): Use them. gas/testsuite/ * gas/mips/mips16-e.d, gas/mips/mips16-f.d, gas/mips/mipsel16-e.d, gas/mips/mipsel16-f.d, gas/mips/tmips16-e.d, gas/mips/tmips16-f.d, gas/mips/tmipsel16-e.d, gas/mips/tmipsel16-f.d: Fix GPR mask. * gas/mips/reginfo-1.s, gas/mips/reginfo-1a.d, gas/mips/reginfo-1b.d: New tests. * gas/mips/mips.exp: Run them.
2011-06-29gas/Richard Sandiford9-10/+36
* config/tc-mips.c (md_mips_end): Call mips_emit_delays. gas/testsuite/ * gas/mips/24k-triple-stores-9.d: Add -z to dump options and explicitly match one nop. * gas/mips/24k-triple-stores-10.d: Likewise. * gas/mips/24k-triple-stores-11.d: Likewise. * gas/mips/lifloat.d: Likewise. * gas/mips/trunc.d: Likewise 1 extra nop. * gas/mips/vr4111.d: Likewise 2 nops.
2011-06-29 PR testsuite/12040:Tom Tromey9-10/+22
* gdb.fortran/array-element.exp: Use f90, not f77. * gdb.fortran/complex.exp: Use f90, not f77. * gdb.fortran/derived-type.exp: Use f90, not f77. * gdb.fortran/library-module.exp: Use f90, not f77. * gdb.fortran/logical.exp: Use f90, not f77. * gdb.fortran/module.exp: Use f90, not f77. * gdb.fortran/multi-dim.exp: Use f90, not f77. * gdb.fortran/subarray.exp: Use f90, not f77.
2011-06-29gdbTom Tromey4-0/+14
2011-06-29 André Pönitz <andre.poenitz@nokia.com> * mi/mi-main.c (mi_cmd_list_features): Emit breakpoint-notifications. gdb/doc * gdb.texinfo (GDB/MI Miscellaneous Commands): Document breakpoint-notifications feature.
2011-06-29 * readelf.c (get_section_type_name): When displaying an unknownNick Clifton2-1/+10
section type display the hex value first on the assumption that the full message will probably be truncated into a 15 character field.
2011-06-29 PR gas/12931Nick Clifton2-1/+24
* config/tc-arm.c (mapping_state): When changing to ARM or THUMB state set the minimum required alignment of the section.
2011-06-29 * gdb.texinfo (Target Description): Remove warning aboutUlrich Weigand2-4/+5
possibly unstable format.
2011-06-29gdbTom Tromey11-528/+616
PR fortran/10036: * valprint.h (generic_emit_char, generic_printstr): Declare. * valprint.c (wchar_printable, append_string_as_wide) (print_wchar): Move from c-lang.c. (generic_emit_char): New function; mostly taken from c_emit_char. (generic_printstr): New function; mostly taken from c_printstr. * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings represented as arrays. <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character type. * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat identically to TYPE_CODE_INT. * f-lang.c (f_get_encoding): New function. (f_emit_char): Use generic_emit_char. (f_printchar): Replace comment. (f_printstr): Use generic_printstr. * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran "character" types specially. <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR for Fortran. * c-lang.c (wchar_printable, append_string_as_wide, print_wchar): Move to valprint.c (c_emit_char): Call generic_emit_char. (c_printstr): Call generic_printstr. gdb/testsuite * gdb.fortran/charset.exp: New file. * gdb.fortran/charset.f90: New file.
2011-06-29gdb/Gary Benson2-2/+4
* breakpoint.c (bpstat_what): Removed duplicated case.
2011-06-29 PR testsuite/12040:Tom Tromey4-390/+451
* lib/future.exp: New file, mostly extracted from ada.exp. Rewrote compatibility code to use rename. (gdb_find_gfortran): New proc. (gdb_default_target_compile): Refresh from dejagnu; plus a pending gfortran patch. * lib/ada.exp (gdb_find_gnatmake, gdb_default_target_compile): Move to future.exp. * lib/gdb.exp: Always load future.exp.
2011-06-29 PR gold/12818Ian Lance Taylor2-0/+7
* symtab.cc (Symbol::should_add_dynsym_entry): Don't add undefined symbols which are not used in a relocation.
2011-06-292011-06-29 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-27/+20
* config/tc-i386.c (i386_mach): Convert to ISO-C. (md_begin, pe_directive_secrel, md_estimate_size_before_relax): Ditto. (md_convert_frag, md_apply_fix, md_undefined_symbol): Ditto. (md_section_align, tc_gen_reloc): Ditto.
2011-06-29 PR gold/12898Ian Lance Taylor4-16/+63
* layout.cc (Layout::segment_precedes): Don't crash if a linker script create indistinguishable segments. (Layout::set_segment_offsets): Use stable_sort when sorting segments. Pass this to Compare_segments constructor. * layout.h (class Layout): Make segment_precedes non-static. (class Compare_segments): Change from struct to class. Add layout_ field. Add constructor. * script-sections.cc (Script_sections::attach_sections_using_phdrs_clause): Rename local orphan to is_orphan. Don't report failure to put empty section in segment. On attachment failure, report name of section, and attach to first PT_LOAD segment.
2011-06-29*** empty log message ***gdbadmin1-1/+1
2011-06-29daily updateAlan Modra1-1/+1
2011-06-28 PR gold/12934Ian Lance Taylor14-40/+192
* target-select.cc (Target_selector::Target_selector): Add emulation parameter. Change all callers. (select_target_by_bfd_name): Rename from select_target_by_name. Change all callers. (select_target_by_emulation): New function. (supported_emulation_names): New function. * target-select.h (class Target_selector): Add emulation_ field. Update declarations. (Target_selector::recognize_by_bfd_name): Rename from recognize_by_name. Change all callers. (Target_selector::supported_bfd_names): Rename from supported_names. Change all callers. (Target_selector::recognize_by_emulation): New function. (Target_selector::supported_emulations): New function. (Target_selector::emulation): New function. (Target_selector::do_recognize_by_bfd_name): Rename from do_recognize_by_name. Change all callers. (Target_selector::do_supported_bfd_names): Rename from do_supported_names. Change all callers. (Target_selector::do_recognize_by_emulation): New function. (Target_selector::do_supported_emulations): New function. (select_target_by_bfd_name): Change name in declaration. (select_target_by_emulation): Declare. (supported_emulation_names): Declare. * parameters.cc (parameters_force_valid_target): Try to find target based on emulation from -m option. * options.h (class General_options): Change doc string for -m. * options.cc (help): Print emulations. (General_options::parse_V): Likewise. * freebsd.h (Target_selector_freebsd::Target_selector_freebsd): Add emulation parameter. Change all callers.
2011-06-28 * target.h (class Target): Add osabi_ field.Ian Lance Taylor6-92/+98
(Target::osabi): New function. (Target::set_osabi): New function. (Target::Target): Initialize osabi_. (Target::do_adjust_elf_header): Make pure virtual. (Sized_target::do_adjust_elf_header): Declare. * target.cc (Sized_target::do_adjust_elf_header): New function. (class Sized_target): Instantiate all versions. * freebsd.h (class Target_freebsd): Remove. (Target_selector_freebsd::do_recognize): Call set_osabi on Target. (Target_selector_freebsd::do_recognize_by_name): Likewise. (Target_selector_freebsd::set_osabi): Remove. * i386.cc (class Target_i386): Inherit from Sized_target rather than Target_freebsd. * x86_64.cc (class Target_x86_64): Likewise.
2011-06-28 * target.h (Target::can_check_for_function_pointers): Rewrite.Ian Lance Taylor9-76/+124
Make non-virtual. (Target::can_icf_inline_merge_sections): Likewise. (Target::section_may_have_icf_unsafe_poineters): Likewise. (Target::Target_info): Add can_icf_inline_merge_sections field. (Target::do_can_check_for_function_pointers): New virtual function. (Target::do_section_may_have_icf_unsafe_pointers): Likewise. * arm.cc (Target_arm::do_can_check_for_function_pointers): Rename from can_check_for_function_pointers, move in file. (Target_arm::do_section_may_have_icf_unsafe_pointers): Rename from section_may_have_icf_unsafe_poineters, move in file. (Target_arm::arm_info): Initialize can_icf_inline_merge_sections. * i386.cc (Target_i386::do_can_check_for_function_pointers): Rename from can_check_for_function_pointers, move in file. (Target_i386::can_icf_inline_merge_sections): Remove. (Target_i386::i386_info): Initialize can_icf_inline_merge_sections. * powerpc.cc (Target_powerpc::powerpc_info) [all versions]: Initialize can_icf_inline_merge_sections. * sparc.cc (Target_sparc::sparc_info) [both version]: Likewise. * x86_64.cc (Target_x86_64::do_can_check_for_function_pointers): Rename from can_check_for_function_pointers, move in file. (Target_x86_64::can_icf_inline_merge_sections): Remove. (Target_x86_64::x86_64_info): Initialize can_icf_inline_merge_sections. * testsuite/testfile.cc (Target_test::test_target_info): Likewise. * icf.cc (get_section_contents): Correct formatting.
2011-06-282011-06-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-16/+9
* config/tc-alpha.c (s_alpha_pdesc): Fix indentation. Do not generate dummy fix.
2011-06-28 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.Tom Tromey2-0/+7
2011-06-282011-06-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-4/+13
* config/tc-alpha.c (load_expression): Use alloca instead of xmalloc. (emit_jsrjmp): Ditto. (tc_gen_reloc): Ditto.
2011-06-282011-06-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-3/+10
* vms-alpha.c (vms_private_data_struct): Make vms_linkage_index unsigned int. (_bfd_vms_write_etir): Write linkage index from reloc.
2011-06-282011-06-28 Yao Qi <yao@codesourcery.com>Yao Qi3-7/+27
* gdb.cp/exception.cc: Don't include iostream. (bar): Remove print statement. (catcher): New. (main): Remove print statements. Call function catcher. * gdb.cp/exception.exp : Don't match inferior's output in regexp. Set breakpoint on catcher, and check the value of parameter.
2011-06-282011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>Tristan Gingold2-0/+6
* mach-o.c (bfd_mach_o_read_command): Also ignore BFD_MACH_O_LC_ROUTINES_64.
2011-06-282011-06-28 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-29/+34
* config/tc-alpha.c (alpha_evax_proc_hash): Remove. (alpha_evax_proc_data): New variable. (s_alpha_ent): Prevent nested function. Remove has_insert call. (s_alpha_pdesc): Do not call demand_empty_rest_of_line in case of error. Do not search in the hash table. Check if match with .ent. (s_alpha_name): Remove unused variable. (md_begin): Remove initialization of alpha_evax_proc_hash.