Alan Modra [Wed, 5 Sep 2012 02:54:26 +0000 (02:54 +0000)]
 
	* powerpc.cc (Powerpc_relobj::get_opd_ent): Make const.
	(Powerpc_relocate_functions::Status): New typedef.
	(Target_powerpc::Scan::get_reference_flags): Handle more relocs.
	(Target_powerpc::Scan::local): Handle REL64.
	(Target_powerpc::Scan::global): Likewise, and dynamic relocs
	for REL32 and REL64.
	(Target_powerpc::symval_for_branch): New function, extracted from..
	(Target_powerpc::Relocate::relocate): ..here.  Correct plt call
	checks.  Report overflow errors.
Alan Modra [Wed, 5 Sep 2012 00:34:20 +0000 (00:34 +0000)]
 
	* object.h (Sized_relobj_file::emit_relocs): Delete.
	(Sized_relobj_file::emit_relocs_reltype): Delete.
	* reloc.cc (Sized_relobj_file::do_relocate_sections): Call target
	relocate_relocs for --emit-relocs.
	(Sized_relobj_file::emit_relocs, emit_relocs_reltype): Delete.
	* output.h: Update comment.
	(Output_segment::first_section): New function.
	(Output_segment::first_section_load_address): Use first_section.
	* output.cc (Output_segment::first_section): New function extracted..
	(Output_segment::first_section_load_address): ..from here.  Delete.
	* target-reloc.h (relocate_for_relocatable): Rename to relocate_relocs.
	* target.h (Sized_target::relocate_for_relocatable): Likewise.
	* arm.cc (Target_arm::relocate_for_relocatable): Likewise, and
	adjust call to target.h function.
	* i386.cc (Target_i386): Likewise.
	* sparc.cc (Target_sparc): Likewise.
	* x86_64.cc (Target_x86_64): Likewise.
	* powerpc.cc (Target_powerpc): Likewise.
	(Target_powerpc::Scan::local, global): Handle R_POWERPC_TLS.  Ensure
	first tls section has section symbol for optimised local dynamic
	output relocs.
	(Target_powerpc::Relocate::relocate): Correct local dynamic value.
	(Target_powerpc::relocate_relocs): Adjust relocs emitted for
	optimised tls code.
	* testsuite/testfile.cc (Target_test::relocate_for_relocatable):
	Rename to relocate_relocs.  Update error message.
Alan Modra [Wed, 5 Sep 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Wed, 5 Sep 2012 00:00:03 +0000 (00:00 +0000)]
 
*** empty log message ***
Hans-Peter Nilsson [Tue, 4 Sep 2012 23:54:41 +0000 (23:54 +0000)]
 
	* linux-crisv32-low.c: Fix compile errors.
Joel Sherrill [Tue, 4 Sep 2012 21:40:46 +0000 (21:40 +0000)]
 
2012-09-03 Joel Sherrill <joel.sherrill@oarcorp.com>
	* configure.ac: Always link against dv-sockser.o.
	* configure: Regenerate.
H.J. Lu [Tue, 4 Sep 2012 13:52:06 +0000 (13:52 +0000)]
 
Add Intel Itanium Series 9500 support
bfd/
2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>
	* cpu-ia64-opc.c (ins_cnt6a): New function.
	(ext_cnt6a): Ditto.
	(ins_strd5b): Ditto.
	(ext_strd5b): Ditto.
	(elf64_ia64_operands): Add new operand types.
gas/
2012-09-04  Sergey A. Guriev  <sergey.a.guriev@intel.com>
	* config/tc-ia64.c (reg_symbol): Add a new register.
	(indirect_reg): Ditto.
	(pseudo_func): Add new symbolic constants.
	(operand_match): Add new operand types recognition.
	(operand_insn): Add new register recognition.
	(md_begin): Add new register definition.
	(specify_resource): Add new register recognition.
gas/testsuite/
2012-09-04  Sergey A. Guriev  <sergey.a.guriev@intel.com>
	* gas/testsuite/gas/ia64/psn.d: New file.
	* gas/testsuite/gas/ia64/psn.s: New file.
	* gas/testsuite/gas/ia64/ia64.exp: Add new testcase.
	* gas/testsuite/gas/ia64/opc-i.d: Fixed failing tests.
	* gas/testsuite/gas/ia64/opc-m.d: Ditto.
include/opcode/
2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>
	* ia64.h (ia64_opnd): Add new operand types.
opcodes/
2012-09-04  Sergey A. Guriev <sergey.a.guriev@intel.com>
	* ia64-asmtab.h (completer_index): Extend bitfield to full uint.
	* ia64-gen.c: Promote completer index type to longlong.
	(irf_operand): Add new register recognition.
	(in_iclass_mov_x): Add an entry for the new mov_* instruction type.
	(lookup_specifier): Add new resource recognition.
	(insert_bit_table_ent): Relax abort condition according to the
	changed completer index type.
	(print_dis_table): Fix printf format for completer index.
	* ia64-ic.tbl: Add a new instruction class.
	* ia64-opc-i.c (ia64_opcodes_i): Define new I-instructions.
	* ia64-opc-m.c (ia64_opcodes_m): Define new M-instructions.
	* ia64-opc.h: Define short names for new operand types.
	* ia64-raw.tbl: Add new RAW resource for DAHR register.
	* ia64-waw.tbl: Add new WAW resource for DAHR register.
	* ia64-asmtab.c: Regenerate.
H.J. Lu [Tue, 4 Sep 2012 12:35:35 +0000 (12:35 +0000)]
 
Ignore section symbols without a BFD section
bfd/
	PR binutils/14493
	* elf.c (ignore_section_sym): Also ignore section symbols without
	a BFD section.
binutils/
	PR binutils/14493
	* readelf.c (get_symbol_index_type): Check bad section index.
Andreas Schwab [Tue, 4 Sep 2012 08:04:31 +0000 (08:04 +0000)]
 
* powerpc.cc (do_make_elf_object): Allow ET_EXEC files with
--just-symbols.
Yao Qi [Tue, 4 Sep 2012 01:47:49 +0000 (01:47 +0000)]
 
gdb/gdbserver/
	* tracepoint.c (cmd_qtsv): Adjust debug message.
	Don't check CUR_TPOINT.
Alan Modra [Tue, 4 Sep 2012 00:00:05 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Tue, 4 Sep 2012 00:00:02 +0000 (00:00 +0000)]
 
*** empty log message ***
Andreas Krebbel [Mon, 3 Sep 2012 12:03:48 +0000 (12:03 +0000)]
 
2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
	* elf32-s390.c (elf_s390_relocate_section): Handle PLTOFF for
	local and global ifunc symbols.
	* elf64-s390.c (elf_s390_relocate_section): Likewise.
Nick Clifton [Mon, 3 Sep 2012 10:13:11 +0000 (10:13 +0000)]
 
	PR sim/14540
	* armsupp.c (ARMul_MRC): Return 0 if access to the MRC instruction
	is denied.
Alan Modra [Mon, 3 Sep 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Mon, 3 Sep 2012 00:00:03 +0000 (00:00 +0000)]
 
*** empty log message ***
Yit Phang Khoo [Sun, 2 Sep 2012 22:57:43 +0000 (22:57 +0000)]
 
2012-09-02  Khoo Yit Phang  <khooyp@cs.umd.edu>
	Do not enable -lmcheck by default when Python is enabled with
	threading support.
	* configure.ac: (python_has_threads) New variable, by testing
	if WITH_THREAD is defined in Python.h.
	Move --enable-lmcheck after --with-python.
	Do not enable -lmcheck by default if python_has_threads=yes.
	Warn if --enable-lmcheck and python_has_threads=yes.
	* configure: Regenerate.
H.J. Lu [Sun, 2 Sep 2012 12:17:27 +0000 (12:17 +0000)]
 
Add hdynamic to elf_link_hash_table for _DYNAMIC
	* elf-bfd.h (elf_link_hash_table): Add hdynamic for the
	_DYNAMIC symbol.
	* elflink.c (_bfd_elf_link_create_dynamic_sections): Set
	hdynamic.
	* elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Check
	hdynamic instead of "_DYNAMIC".
	* elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
	* elf32-cr16.c (elf32_arm_finish_dynamic_symbol): Likewise.
	* elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
	* elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
	* elf32-i386.c (elf_i386_convert_mov_to_lea): Likewise.
	* elf32-lm32.c (lm32_elf_finish_dynamic_symbol): Likewise.
	* elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
	* elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
	* elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
	* elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
	* elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
	* elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
	* elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
	* elf64-aarch64.c elf64_aarch64_finish_dynamic_symbol(): Likewise.
	* elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
	* elf64-ia64-vms.c (elf64_ia64_finish_dynamic_symbol): Likewise.
	* elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
	* elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
	* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
	* elfnn-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
	* elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
	* elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
	* elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
	* elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Check
	hdynamic, hgot, hplt instead of _DYNAMIC, _GLOBAL_OFFSET_TABLE_,
	_PROCEDURE_LINKAGE_TABLE_.
	* elf32-score.c (s3_bfd_score_elf_finish_dynamic_symbol): Likewise.
	* elf32-score7.c (s7_bfd_score_elf_finish_dynamic_symbol): Likewise.
gdbadmin [Sun, 2 Sep 2012 00:00:32 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Sun, 2 Sep 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
Hans-Peter Nilsson [Sat, 1 Sep 2012 18:10:50 +0000 (18:10 +0000)]
 
	PR gas/14521
	* config/tc-mmix.h (tc_frob_file_before_fix): Renumber sections
	after call to mmix_frob_file.
Hans-Peter Nilsson [Sat, 1 Sep 2012 18:09:26 +0000 (18:09 +0000)]
 
	PR gas/14521
	* gas/mmix/group-1.d, gas/mmix/group-1.s: New test.
Yit Phang Khoo [Sat, 1 Sep 2012 03:14:15 +0000 (03:14 +0000)]
 
2012-08-30  Khoo Yit Phang  <khooyp@cs.umd.edu>
	* MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
H.J. Lu [Sat, 1 Sep 2012 02:50:14 +0000 (02:50 +0000)]
 
Don't optimize relocation against _DYNAMIC
bfd/
	* elf32-i386.c (elf_i386_convert_mov_to_lea): Don't optimize
	_DYNAMIC.
	* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
ld/testsuite/
	* ld-i386/i386.exp: Run mov1a, mov1b.
	* ld-x86-64/x86-64.exp: Run mov1a, mov1b, mov1c, mov1d.
	* ld-i386/mov1.s: New file.
	* ld-i386/mov1a.d: Likewise.
	* ld-i386/mov1b.d: Likewise.
	* ld-x86-64/mov1.s: Likewise.
	* ld-x86-64/mov1a.d: Likewise.
	* ld-x86-64/mov1b.d: Likewise.
	* ld-x86-64/mov1c.d: Likewise.
	* ld-x86-64/mov1d.d: Likewise.
gdbadmin [Sat, 1 Sep 2012 00:00:33 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Sat, 1 Sep 2012 00:00:05 +0000 (00:00 +0000)]
 
daily update
H.J. Lu [Fri, 31 Aug 2012 20:41:41 +0000 (20:41 +0000)]
 
Convert mov to lea in size_dynamic_sections
bfd/
	* elf32-i386.c (elf_i386_convert_mov_to_lea): New.
	(elf_i386_size_dynamic_sections): Use it on input sections.
	(elf_i386_relocate_section): Don't convert
	"mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
	for local symbols here.
	* elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): New.
	(elf_x86_64_size_dynamic_sections): Use it on input sections.
	(elf_x86_64_relocate_section): Don't convert
	"mov foo@GOTPCREL(%rip), %reg" to "lea foo@GOTOFF(%reg), %reg"
	for local symbols.
ld/testsuite/
	* ld-i386/i386.exp: Run lea1d, lea1f, lea1f.
	* ld-x86-64/x86-64.exp: Run lea1g, lea1h, lea1i, lea1j, lea1k,
	lea1l.
	* ld-ifunc/ifunc-13-i386.d: Remove R_386_RELATIVE entry.
	* ld-i386/lea1d.d: New file.
	* ld-i386/lea1e.d: Likewise.
	* ld-i386/lea1f.d: Likewise.
	* ld-x86-64/lea1g.d: Likewise.
	* ld-x86-64/lea1h.d: Likewise.
	* ld-x86-64/lea1i.d: Likewise.
	* ld-x86-64/lea1j.d: Likewise.
	* ld-x86-64/lea1k.d: Likewise.
	* ld-x86-64/lea1l.d: Likewise.
Maciej W. Rozycki [Fri, 31 Aug 2012 19:15:59 +0000 (19:15 +0000)]
 
	* doc/c-mips.texi (MIPS Opts): Correct a typo in the -mips5
	option.
Yao Qi [Fri, 31 Aug 2012 08:41:57 +0000 (08:41 +0000)]
 
gdb/
	* mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
	DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
	Update some commands.
	* mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
	* mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
	to 1.
Yao Qi [Fri, 31 Aug 2012 08:30:38 +0000 (08:30 +0000)]
 
gdb/
	* mi/mi-cmds.c (mi_cmds): Add 'static'.
H.J. Lu [Fri, 31 Aug 2012 04:26:17 +0000 (04:26 +0000)]
 
Convert mov to lea for loading local function address
bfd/
	* elf32-i386.c (elf_i386_relocate_section): Convert
	"mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
	for local symbols.
	* elf64-x86-64.c (elf_x86_64_relocate_section): Convert
	"mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg"
	for local symbols.
ld/testsuite/
	* ld-i386/i386.exp: Run lea1a, lea1b, lea1c.
	* ld-x86-64/x86-64.exp: Run lea1a, lea1b, lea1c, lea1d, lea1e,
	lea1f.
	* ld-i386/lea1.s: New file.
	* ld-i386/lea1a.d: Likewise.
	* ld-i386/lea1b.d: Likewise.
	* ld-i386/lea1c.d: Likewise.
	* ld-x86-64/lea1.s: Likewise.
	* ld-x86-64/lea1a.d: Likewise.
	* ld-x86-64/lea1b.d: Likewise.
	* ld-x86-64/lea1c.d: Likewise.
	* ld-x86-64/lea1d.d: Likewise.
	* ld-x86-64/lea1e.d: Likewise.
	* ld-x86-64/lea1f.d: Likewise.
H.J. Lu [Fri, 31 Aug 2012 02:52:14 +0000 (02:52 +0000)]
 
Provide __executable_start for PIE
ld/
	PR ld/14525
	* scripttempl/elf.sc: Also provide __executable_start for PIE.
ld/testsuite/
	PR ld/14525
	* ld-elf/elf.exp: Run pr14525.
	* ld-elf/pr14525.c: New.
	* ld-elf/pr14525.out: Likewise.
Alan Modra [Fri, 31 Aug 2012 02:42:57 +0000 (02:42 +0000)]
 
	PR ld/14464
	* elf64-ppc.c (ppc64_elf_relocate_section): Map symbols defined
	by a linker script in .opd to corresponding input .opd section.
Alan Modra [Fri, 31 Aug 2012 01:09:52 +0000 (01:09 +0000)]
 
	* powerpc.cc (Powerpc_relobj): Add and use Address typedef.
	(Powerpc_relobj::toc_base_offset): New stub function.
	(Target_powerpc): Add tp_offset, dtp_offset.  Rename
	got_mod_index_offset to tlsld_got_offset.  Update all refs.
	(Target_powerpc::Relocate::enum skip_tls): New.
	(Target_powerpc::call_tls_get_addr_): New var.
	(Target_powerpc::is_branch_reloc): Move to file scope.
	(Target_powerpc::relocate_tls, optimize_tls_reloc): Delete.
	(Target_powerpc::optimize_tls_gd, optimize_tls_ld, optimize_tls_ie):
	New functions.
	(Target_powerpc::enum Got_type): Delete old values, add new ones.
	(powerpc_info): Correct common_pagesize for ppc64.
	(at_tls_transform, needs_dynamic_reloc, use_plt_offset): New functions.
	(Powerpc_relocate_functions): Add overflow check enums and functions.
	Add non-shift version of rela, rela_ua.  Delete all rel public
	functions.  Delete addr16_lo.  Add addr64, addr64_u, addr32,
	addr32_u, addr24, addr16_u, addr16_hi2, addr16_ha2, addr16_hi3,
	addr16_ha3, addr14 functions.
	(Output_data_got_powerpc::add_constant_pair): New function.
	(Output_data_got_powerpc::got_base_offset): Likewise.
	(Output_data_got_powerpc::do_write): Correct 64-bit got header.
	(instruction constants): Sort, add some more.
	(Output_data_glink::do_write): Add and use Address typedef.  Use
	object->toc_base_offset() stub for 64-bit.
	(Target_powerpc::tlsld_got_offset): Use add_constant_pair.
	(Target_powerpc::Scan::get_reference_flags): Handle more relocs.
	(Target_powerpc::Scan::local, global): Emit relative dynamic reloc
	for R_PPC64_TOC.  Handle more relocs.  Generate got entries for TLS.
	Always treat .opd relocs as against locally defined symbol.
	Correct condition for RELATIVE relocs.
	(Target_powerpc::do_finalize_sections): Test for NULL sections.
	(Target_powerpc::Relocate::relocate): Use plt call stub as value
	for 32-bit syms with a plt entry.  Correct ppc64 toc base
	calculations.  Handle TLS relocs, and more.  Add overflow
	checking and adjust for Powerpc_relocate_functions changes.
	(Target_powerpc::relocate_for_relocatable): Handle zero r_sym.
	Reinstate --emit-relocs code with FIXME.
Alan Modra [Fri, 31 Aug 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Fri, 31 Aug 2012 00:00:02 +0000 (00:00 +0000)]
 
*** empty log message ***
Yit Phang Khoo [Thu, 30 Aug 2012 18:59:53 +0000 (18:59 +0000)]
 
Add "Khoo Yit Phang" to gdb/MAINTAINERS.
Mike Frysinger [Thu, 30 Aug 2012 07:05:19 +0000 (07:05 +0000)]
 
sim: cr16: update syscall list
Mike Frysinger [Thu, 30 Aug 2012 06:10:28 +0000 (06:10 +0000)]
 
sim: cr16: improve trap handling
Mike Frysinger [Thu, 30 Aug 2012 06:09:45 +0000 (06:09 +0000)]
 
sim: cr16: add sim_complete_command stub
Alan Modra [Thu, 30 Aug 2012 05:57:05 +0000 (05:57 +0000)]
 
	* layout.cc (Layout::set_segment_offsets): Set p_align to
	abi_pagesize, not common_pagesize.
	(Layout::relaxation_loop_body): Similarly use abi_pagesize
	to determine whether file header can go in segment.
Alan Modra [Thu, 30 Aug 2012 05:54:59 +0000 (05:54 +0000)]
 
	* output.h (Output_reloc::Output_reloc <output section>): Add
	is_relative param.  Adjust calls.
	(Output_reloc::add_output_section_relative): New functions.
	* output.cc (Output_reloc::Output_reloc <output section>): Handle
	is_relative.
	(Output_reloc::symbol_value): Handle SECTION_CODE.
gdbadmin [Thu, 30 Aug 2012 00:00:33 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Thu, 30 Aug 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
Peter Bergner [Wed, 29 Aug 2012 22:34:04 +0000 (22:34 +0000)]
 
	* ppc-opc.c (VXASHB_MASK): New define.
	(powerpc_opcodes) <vsldoi>: Use VXASHB_MASK.
Doug Evans [Wed, 29 Aug 2012 19:17:16 +0000 (19:17 +0000)]
 
	* main.c (print_gdb_help): Remove reference to
	--use-deprecated-index-sections.
H.J. Lu [Wed, 29 Aug 2012 01:02:41 +0000 (01:02 +0000)]
 
Replace malloc with xmalloc
	* argv.c (dupargv): Replace malloc with xmalloc.  Don't check
	xmalloc return.
	(buildargv): Likewise.  Also replace strdup with xstrdup.
	(expandargv): Don't check dupargv return.
H.J. Lu [Wed, 29 Aug 2012 00:45:49 +0000 (00:45 +0000)]
 
Replace alloca with xmalloc/free
	PR binutils/14526
	* argv.c (buildargv): Replace alloca with xmalloc/free.
gdbadmin [Wed, 29 Aug 2012 00:00:34 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Wed, 29 Aug 2012 00:00:05 +0000 (00:00 +0000)]
 
daily update
Maciej W. Rozycki [Tue, 28 Aug 2012 20:29:19 +0000 (20:29 +0000)]
 
	* ld-elf/export-class.sd: New test.
	* ld-elf/export-class.vd: New test.
	* ld-elf/export-class-def.s: New test source.
	* ld-elf/export-class-dep.s: New test source.
	* ld-elf/export-class-lib.s: New test source.
	* ld-elf/export-class-ref.s: New test source.
	* ld-elf/export-class-lib.ver: New test version script.
	* ld-elf/export-class.exp: New test script.
	* ld-arm/arm-export-class.rd: New test.
	* ld-arm/arm-export-class.xd: New test.
	* ld-arm/export-class.exp: New test script.
	* ld-i386/i386-export-class.rd: New test.
	* ld-i386/i386-export-class.xd: New test.
	* ld-i386/export-class.exp: New test script.
	* ld-mips-elf/mips-32-export-class.rd: New test.
	* ld-mips-elf/mips-32-export-class.xd: New test.
	* ld-mips-elf/mips-64-export-class.rd: New test.
	* ld-mips-elf/mips-64-export-class.xd: New test.
	* ld-mips-elf/export-class.exp: New test script.
	* ld-powerpc/powerpc-32-export-class.rd: New test.
	* ld-powerpc/powerpc-32-export-class.xd: New test.
	* ld-powerpc/powerpc-64-export-class.rd: New test.
	* ld-powerpc/powerpc-64-export-class.xd: New test.
	* ld-powerpc/export-class.exp: New test script.
	* ld-x86-64/x86-64-64-export-class.rd: New test.
	* ld-x86-64/x86-64-x32-export-class.rd: New test.
	* ld-x86-64/export-class.exp: New test script.
Maciej W. Rozycki [Tue, 28 Aug 2012 20:17:56 +0000 (20:17 +0000)]
 
	* elf32-ppc.c (ppc_elf_relocate_section): Assert that dynindx is
	not minus one.
	* elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
Maciej W. Rozycki [Tue, 28 Aug 2012 20:13:27 +0000 (20:13 +0000)]
 
	* elflink.c (_bfd_elf_merge_symbol): Also override the version
	a dynamic symbol defaulted to if preempted with a hidden or
	internal definition.
Yao Qi [Tue, 28 Aug 2012 16:53:30 +0000 (16:53 +0000)]
 
gdb/gdbserver/
	* ax.c, tracepoint.c: Replace ATTR_FORMAT with ATTRIBUTE_PRINTF.
	* server.h: Include 'libiberty.h' and 'ansidecl.h'.
	(ATTR_NORETURN, ATTR_FORMAT, ATTR_MALLOC): Remove.
	Remove declarations of xmalloc, xreallloc, xstrdup and
	freeargv.
	* Makefile.in (libiberty_h): New.
	(server_h): Append dependencies 'libiberty.h' and 'ansidecl.h'.
	(linux-bfin-low.o): Append dependency 'libiberty.h'.
Peter Bergner [Tue, 28 Aug 2012 16:41:07 +0000 (16:41 +0000)]
 
	* ppc-opc.c (UIMM4, UIMM3, UIMM2, VXVA_MASK, VXVB_MASK, VXVAVB_MASK,
	VXVDVA_MASK, VXUIMM4_MASK, VXUIMM3_MASK, VXUIMM2_MASK): New defines.
	(powerpc_opcodes) <vexptefp, vlogefp, vrefp, vrfim, vrfin, vrfip,
	vrfiz, vrsqrtefp, vupkhpx, vupkhsb, vupkhsh, vupklpx, vupklsb,
	vupklsh>: Use VXVA_MASK.
	<vspltisb, vspltish, vspltisw>: Use VXVB_MASK.
	<mfvscr>: Use VXVAVB_MASK.
	<mtvscr>: Use VXVDVA_MASK.
	<vspltb>: Use VXUIMM4_MASK.
	<vsplth>: Use VXUIMM3_MASK.
	<vspltw>: Use VXUIMM2_MASK.
Yao Qi [Tue, 28 Aug 2012 14:08:42 +0000 (14:08 +0000)]
 
gdb/
	* cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
	(init_cmds): Call add_setshow_uinteger_cmd for command
	'max-user-call-depth'.
	* cli/cli-script.c (execute_user_command): Add 'unsigned' to the
	declaration of 'max_user_call_depth'.
	* frame.c (backtrace_limit): Add 'unsigned'.
	(_initialize_frame): Call add_setshow_uinteger_cmd for command
	'limit'.
	* remote.c (remoteaddresssize): Add 'unsigned'.
	(remote_address_masked): Change local var 'address_size' to
	'unsigned'.
	(_initialize_remote): Call add_setshow_uinteger_cmd for
	'remoteaddresssize'.
	* top.c (history_size): Add 'unsigned'.
	(show_commands): Change local variables to 'unsigned'.
	(set_history_size_command): Don't check history_size is negative.
	Adjust the condition to call unstifle_history and set history_size
	to UNIT_MAX.
Pedro Alves [Tue, 28 Aug 2012 09:05:35 +0000 (09:05 +0000)]
 
2012-08-28  Pedro Alves  <palves@redhat.com>
	PR gdb/14428
	gdb/
	* infcmd.c (default_print_one_register_info): New, factored out
	from default_print_registers_info.
	(default_print_registers_info): Use it.  Mark value unavailable if
	necessary.
	(registers_info): Print user registers with
	default_print_one_register_info.
	gdb/testsuite/
	* gdb.base/pc-fp.exp: Adjust expected output of 'info registers pc fp'.
Walter Lee [Tue, 28 Aug 2012 06:28:31 +0000 (06:28 +0000)]
 
Add padding to the plt section so that its size is a multiple of its
entry size.
	* elf32-tilepro.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
	of header.
	(tilepro_plt_entry_build): Account for new header size.
	(tilepro_elf_finish_dynamic_sections): Ditto.
	(tilepro_elf_plt_sym_val): Ditto.
	* elfxx-tilegx.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
	of header + tail.
	(tilegx_elf_finish_dynamic_sections): Account for new padding.
Walter Lee [Tue, 28 Aug 2012 02:43:22 +0000 (02:43 +0000)]
 
Add support for constructing pc-relative addresses to the plt, by
adding the necessary assembly operators and relocations.
bfd:
	* reloc.c (Add BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
	BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): new relocations.
	* elfxx-tilegx.c (tilegx_elf_howto_table): Handle new relocations.
	(tilegx_reloc_map): Ditto.
	(reloc_to_create_func): Ditto.
	(tilegx_elf_check_relocs): Ditto.
	(tilegx_elf_gc_sweep_hook): Ditto.
	(tilegx_elf_relocate_section): Ditto.
	* libbfd.h: Regenerate.
	* bfd-in2.h: Regenerate.
gas:
	* tc-tilegx.c (O_hw0_plt): Define operator.
	(O_hw1_plt): Ditto.
	(O_hw1_last_plt): Ditto.
	(O_hw2_last_plt): Ditto.
	(md_begin): Handle new operators.
	(emit_tilegx_instruction): Ditto.
	(md_apply_fix): Ditto.
	* doc/c-tilegx.texi: Document new operators.
include/elf:
	* tilegx.h (R_TILEGX_IMM16_X0_HW0_PLT_PCREL): New relocation.
	(R_TILEGX_IMM16_X1_HW0_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW1_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X1_HW1_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW2_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X1_HW2_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW3_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X1_HW3_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL): Ditto.
	(R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL	): Ditto.
	(R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): Ditto.
Alan Modra [Tue, 28 Aug 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Tue, 28 Aug 2012 00:00:02 +0000 (00:00 +0000)]
 
*** empty log message ***
H.J. Lu [Mon, 27 Aug 2012 17:00:42 +0000 (17:00 +0000)]
 
Check if TUI_SRC_WIN is not NULL before referencing it
	PR tui/14486
	* tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
	is not NULL before referencing it.
Jan Kratochvil [Mon, 27 Aug 2012 16:55:39 +0000 (16:55 +0000)]
 
gdb/
	* breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
	variable pc.  Call find_pc_line instead of find_pc_overlay, restore
	original PC for it.
gdb/testsuite/
	* gdb.base/break-caller-line.c: New file.
	* gdb.base/break-caller-line.exp: New file.
Jan Kratochvil [Mon, 27 Aug 2012 16:50:54 +0000 (16:50 +0000)]
 
gdb/
	* auto-load.c (auto_load_objfile_script): Rename to ...
	(auto_load_objfile_script_1): ... here, change variable realname to
	parameter realname, document it, add return value, add variable retval.
	(auto_load_objfile_script): New function.
gdb/doc/
	* gdb.texinfo (objfile-gdb.py file): New paragraph for .exe stripping.
Jan Kratochvil [Mon, 27 Aug 2012 16:47:15 +0000 (16:47 +0000)]
 
gdb/
	* cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
	followed by a whitespace.
Jan Kratochvil [Mon, 27 Aug 2012 16:43:26 +0000 (16:43 +0000)]
 
ChangeLog fix:
	PR gdb/14494.
	* dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
	Move the SEC_HAS_CONTENTS check here - for any NAMES use.
	(dwarf2_locate_sections) <eh_frame>: Move the variable and check from
	here.
Jan Kratochvil [Mon, 27 Aug 2012 16:37:45 +0000 (16:37 +0000)]
 
gdb/
	* dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
	Move the SEC_HAS_CONTENTS check here - for any NAMES use.
	(dwarf2_locate_sections) <eh_frame>: Move the variable and check from
	here.
Jan Kratochvil [Mon, 27 Aug 2012 16:34:35 +0000 (16:34 +0000)]
 
gdb/testsuite/
	* gdb.ada/rdv_wait.exp (set debug-file-directory): New command.
	* gdb.arch/i386-cfi-notcurrent.S: New file.
	* gdb.arch/i386-cfi-notcurrent.exp: New file.
Pedro Alves [Mon, 27 Aug 2012 08:58:01 +0000 (08:58 +0000)]
 
2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
	* memattr.c (create_mem_region): Fix memory region overlapping
	checking.
2012-08-27  Wei-cheng Wang  <cole945@gmail.com>
	    Yao Qi <yao@codesourcery.com>
	    Pedro Alves <palves@redhat.com>
	* gdb.base/memattr.exp (delete_memory, region_pass, region_fail):
	New procedures.
	(top level): Add overlap checking tests.
Alan Modra [Mon, 27 Aug 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Mon, 27 Aug 2012 00:00:03 +0000 (00:00 +0000)]
 
*** empty log message ***
H.J. Lu [Sun, 26 Aug 2012 14:41:28 +0000 (14:41 +0000)]
 
Don't set HOST_LIB_PATH_bfd/HOST_LIB_PATH_opcodes
	PR binutils/4970
	* Makefile.def (host_modules): Rmove lib_path=.libs from bfd
	and opcodes.
	* Makefile.in: Regenerated.
H.J. Lu [Sun, 26 Aug 2012 14:34:40 +0000 (14:34 +0000)]
 
Sync toplevel files with GCC tree
2012-08-14   Diego Novillo  <dnovillo@google.com>
	Merge from cxx-conversion branch.
	* Makefile.tpl (STAGE[+id+]_CXXFLAGS): Remove
	POSTSTAGE1_CONFIGURE_FLAGS.
	* Makefile.in: Regenerate.
	* configure.ac (ENABLE_BUILD_WITH_CXX): Remove.  Update all users.
	Force C++ when bootstrapping.
	* configure: Regenerate.
2012-07-06  Richard Guenther  <rguenther@suse.de>
	* Makefile.def (cloog): Pass $(HOST_GMPINC) and $(HOST_ISLINC)
	as CPPFLAGS, pass path to built gmp as LDFLAGS, always use
	--with-gmp=system.
	* Makefile.in: Regenerated.
	* configure: Likewise.
2012-07-06  Richard Guenther  <rguenther@suse.de>
	* configure.ac (extra_isl_gmp_configure_flags): Initialize and subst.
	* Makefile.def (isl): Use extra_isl_gmp_configure_flags and
	supply V=1 as extra_make_flags.
	* configure: Regenerated.
	* Makefile.in: Likewise.
2012-07-03  Richard Guenther  <rguenther@suse.de>
	* Makfile.def (isl): Remove not necessary extra_exports and
	extra_make_flags.
	(cloog): Use $$CPPFLAGS instead of ${CPPFLAGS}.
	* Makefile.in: Regenerated.
2012-07-03  Richard Guenther  <rguenther@suse.de>
	* Makefile.def (cloog): Add V=1 to extra_make_flags.
	* configure.ac: If either the ISL or the CLooG check failed
	do not try to build in-tree versions.
	* Makefile.in: Regenerated.
	* configure: Regenerated.
2012-07-02  Richard Guenther  <rguenther@suse.de>
	Michael Matz  <matz@suse.de>
	Tobias Grosser <tobias@grosser.es>
	Sebastian Pop <sebpop@gmail.com>
	* Makefile.def: Add ISL host module, remove PPL host module.
	Adjust ClooG host module to use the proper ISL.
	* Makefile.tpl: Pass ISL include flags instead of PPL ones.
	* configure.ac: Include config/isl.m4.  Add ISL host library,
	remove PPL.  Remove PPL configury, add ISL configury, adjust
	ClooG configury.
	* Makefile.in: Regenerated.
	* configure: Likewise.
2012-07-02  Richard Guenther  <rguenther@suse.de>
	Merge from graphite branch
	2011-07-21  Tobias Grosser  <tobias@grosser.es>
	* configure: Regenerated.
	* config/cloog.m4: Remove support for CLooG-ppl and CLooG-parma,
	both cloog.org and legacy versions. The only supported version will
	be CLooG with the isl backend.
	2011-07-21  Tobias Grosser  <tobias@grosser.es>
	* configure: Regenerated.
	* configure.ac: Require cloog isl 0.17.0
	2011-07-21  Tobias Grosser  <tobias@grosser.es>
	* configure: Regenerated.
	* config/cloog.m4: Do not define CLOOG_ORG
2012-06-29  Steven Bosscher  <steven@gcc.gnu.org>
	* configure.ac: Skip C if explicitly selected.
	* configure: Regenerate.
2012-06-28  Christophe Lyon <christophe.lyon@st.com>
	* configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure
	they contain -O2.
	* configure: Regenerate.
2012-06-20  Jason Merrill  <jason@redhat.com>
	* Makefile.tpl (check-target-libgomp-c++): New.
	(check-target-libitm-c++): New.
	* Makefile.def (c++): Add them.
	* Makefile.in: Regenerate.
2012-05-16  Olivier Hainque  <hainque@adacore.com>
	* Makefile.tpl (gcc-no-fixedincludes): Rename into ...
	(gcc-install-no-fixedincludes): Now forwarder to local target in gcc/
	(install-no-fixedincludes): Adjust accordingly.
	* Makefile.in: Regenerate.
2012-05-09  Nick Clifton  <nickc@redhat.com>
	    Paul Smith  <psmith@gnu.org>
	PR bootstrap/50461
	* configure.ac (mpfr-dir): When using in-tree MPFR sources
	allow for the fact that from release v3.1.0 of MPFR the source
	files were moved into a src sub-directory.
	* configure: Regenerate.
2012-05-07  Janne Blomqvist  <jb@gcc.gnu.org>
	* configure.ac: Bump minimum MPFR version to 2.4.0.
	* configure: Regenerated.
2012-05-01  Richard Henderson  <rth@redhat.com>
	* Makefile.def (libatomic): New target_module.
	* configure.ac (target_libraries): Add libatomic.
	(noconfigdirs): Check if libatomic is supported.
	* Makefile.in, configure: Rebuild.
config/
2012-08-26  Art Haas <ahaas@impactweather.com>
	* cloog.m4 (CLOOG_INIT_FLAGS): Use = instead of == in test.
2012-07-04  Tristan Gingold  <gingold@adacore.com>
	* isl.m4 (ISL_CHECK_VERSION): Set to yes if cross-compiling.
	Fix comments.
2012-07-03  Richard Guenther  <rguenther@suse.de>
	* cloog.m4: Remove debugging print.
2012-07-03  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
	* isl.m4 (ISL_CHECK_VERSION): Add -lisl to LIBS, not LDFLAGS.
2012-07-02  Richard Guenther  <rguenther@suse.de>
	* isl.m4 (_ISL_CHECK_CT_PROG): Omit main function header/footer.
	Fix version test.
2012-07-02  Richard Guenther  <rguenther@suse.de>
	Michael Matz  <matz@suse.de>
	Tobias Grosser <tobias@grosser.es>
	Sebastian Pop <sebpop@gmail.com>
	* cloog.m4: Set up to work against ISL only.
	* isl.m4: New file.
H.J. Lu [Sun, 26 Aug 2012 14:09:08 +0000 (14:09 +0000)]
 
Sync libtool.m4 with GCC tree
2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
	Merge upstream change
	* libtool.m4 (_LT_ENABLE_LOCK): Support x32.
2011-11-21  Andreas Tobler  <andreast@fgznet.ch>
	* libtool.m4: Additional FreeBSD 10 fixes.
gdbadmin [Sun, 26 Aug 2012 00:00:33 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Sun, 26 Aug 2012 00:00:04 +0000 (00:00 +0000)]
 
daily update
gdbadmin [Sat, 25 Aug 2012 00:00:33 +0000 (00:00 +0000)]
 
*** empty log message ***
Alan Modra [Sat, 25 Aug 2012 00:00:05 +0000 (00:00 +0000)]
 
daily update
H.J. Lu [Fri, 24 Aug 2012 19:00:16 +0000 (19:00 +0000)]
 
Skip gas/elf/group0c.d for Solaris
	* gas/elf/group0c.d: Skip Solaris.
Sriraman Tallam [Fri, 24 Aug 2012 18:35:35 +0000 (18:35 +0000)]
 
Patch adds support to allow plugins to map selected subset of sections to unique
segments.
2012-08-24  Sriraman Tallam  <tmsriram@google.com>
	* gold.cc (queue_middle_tasks): Call layout again when unique
	segments for sections is desired.
	* layout.cc (Layout::Layout): Initialize new members.
	(Layout::get_output_section_flags): New function.
	(Layout::choose_output_section): Call get_output_section_flags.
	(Layout::layout): Make output section for mapping to a unique segment.
	(Layout::insert_section_segment_map): New function.
	(Layout::attach_allocated_section_to_segment): Make unique segment for
	output sections marked so.
	(Layout::segment_precedes): Check for unique segments when sorting.
	* layout.h (Layout::Unique_segment_info): New struct.
	(Layout::Section_segment_map): New typedef.
	(Layout::insert_section_segment_map): New function.
	(Layout::get_output_section_flags): New function.
	(Layout::is_unique_segment_for_sections_specified): New function.
	(Layout::set_unique_segment_for_sections_specified): New function.
	(Layout::unique_segment_for_sections_specified_): New member.
	(Layout::section_segment_map_): New member.
	* object.cc (Sized_relobj_file<size, big_endian>::do_layout):
	Rename is_gc_pass_one to is_pass_one.
	Rename is_gc_pass_two to is_pass_two.
	Rename is_gc_or_icf to is_two_pass.
	Check for which pass based on whether symbols data is present.
	Make it two pass when unique segments for sections is desired.
	* output.cc (Output_section::Output_section): Initialize new
	members.
	* output.h (Output_section::is_unique_segment): New function.
	(Output_section::set_is_unique_segment): New function.
	(Output_section::is_unique_segment_): New member.
	(Output_section::extra_segment_flags): New function.
	(Output_section::set_extra_segment_flags): New function.
	(Output_section::extra_segment_flags_): New member.
	(Output_section::segment_alignment): New function.
	(Output_section::set_segment_alignment): New function.
	(Output_section::segment_alignment_): New member.
	(Output_segment::Output_segment): Initialize is_unique_segment_.
	(Output_segment::is_unique_segment): New function.
	(Output_segment::set_is_unique_segment): New function.
	(Output_segment::is_unique_segment_): New member.
	* plugin.cc (allow_unique_segment_for_sections): New function.
	(unique_segment_for_sections): New function.
	(Plugin::load): Add new functions to transfer vector.
	* Makefile.am (plugin_final_layout.readelf.stdout): Add readelf output.
	* Makefile.in: Regenerate.
	* testsuite/plugin_final_layout.sh: Check if unique segment
	functionality works.
	* testsuite/plugin_section_order.c (onload): Check if new interfaces
	are available.
	(allow_unique_segment_for_sections): New global.
	(unique_segment_for_sections): New global.
	(claim_file_hook): Call allow_unique_segment_for_sections.
	(all_symbols_read_hook): Call unique_segment_for_sections.
2012-08-24  Sriraman Tallam  <tmsriram@google.com>
	* plugin-api.h (ld_plugin_allow_unique_segment_for_sections):
	New interface.
	(ld_plugin_unique_segment_for_sections): New interface.
	(LDPT_ALLOW_UNIQUE_SEGMENT_FOR_SECTIONS): New enum val.
	(LDPT_UNIQUE_SEGMENT_FOR_SECTIONS): New enum val.
	(tv_allow_unique_segment_for_sections): New member.
	(tv_unique_segment_for_sections): New member.
H.J. Lu [Fri, 24 Aug 2012 18:24:52 +0000 (18:24 +0000)]
 
Use failif on ld-elf/exclude3 tests
	* ld-elf/exclude3a.d: Remove target and use failif.
	* ld-elf/exclude3b.d: Change target to *-*-linux* *-*-gnu* and
	use failif
	* ld-elf/exclude3d.d: Removed.
H.J. Lu [Fri, 24 Aug 2012 18:20:40 +0000 (18:20 +0000)]
 
Add Solaris/x86-64 support to eh[1-4] test
	* ld-elf/elf.exp: Add Solaris/x86-64 support to eh[1-4] test.
H.J. Lu [Fri, 24 Aug 2012 17:57:52 +0000 (17:57 +0000)]
 
Properly check x32 support
	* gas/i386/ilp32/ilp32.exp (gas_64_check): Renamed to ...
	(gas_x32_check): This.  Check elf32-x86-64.
	Remove Solaris check.
	* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
	* gas/i386/ilp32/elf/ilp32.exp: Likewise.
	* gas/i386/ilp32/lns/ilp32.exp: Likewise.
H.J. Lu [Fri, 24 Aug 2012 17:42:56 +0000 (17:42 +0000)]
 
Skip x32 tests for Solaris
	* gas/i386/ilp32/ilp32.exp: Skip Solaris.
	* gas/i386/ilp32/cfi/ilp32.exp: Likewise.
	* gas/i386/ilp32/elf/ilp32.exp: Likewise.
	* gas/i386/ilp32/lns/ilp32.exp: Likewise.
Tom Tromey [Fri, 24 Aug 2012 15:26:23 +0000 (15:26 +0000)]
 
	* lib/gdb.exp (skip_unwinder_tests): Don't leave 'ok' set if
	gdb_test_multiple fails for other reasons.
Yit Phang Khoo [Fri, 24 Aug 2012 15:23:59 +0000 (15:23 +0000)]
 
Move misplaced entries from gdb/ChangeLog to gdb/doc/ChangeLog.
2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
	Document how to return from "python-interactive" to GDB.
	* gdb.texinfo (Python Commands): Update documentation.
2012-08-22  Khoo Yit Phang <khooyp@cs.umd.edu>
	Add a new "python-interactive" command that starts a standard
	Python interactive prompt with "pi" as alias, and add "py" as
	an alias to "python".
	* gdb.texinfo (Python Commands): Document the new commands.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:14:40 +0000 (08:14 +0000)]
 
	* gas/config/tc-arm.c (ARM_ENC_TAB): Add sha1h and sha2op entries.
	(do_sha1h): New function.
	(do_sha1su1): Likewise.
	(do_sha256su0): Likewise.
	(insns): Add 2 operand SHA instructions.
	* gas/testsuite/gas/arm/armv8-a+crypto.s: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+crypto.d: Likewise.
	* opcodes/arm-dis.c (neon_opcodes): Add 2 operand sha instructions.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:14:04 +0000 (08:14 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add sha3op entry.
	(do_crypto_3op_1): New function.
	(do_sha1c): Likewise.
	(do_sha1p): Likewise.
	(do_sha1m): Likewise.
	(do_sha1su0): Likewise.
	(do_sha256h): Likewise.
	(do_sha256h2): Likewise.
	(do_sha256su1): Likewise.
	(insns): Add SHA 3 operand instructions.
	* gas/testsuite/gas/arm/armv8-a+crypto.d: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+crypto.s: Likewise.
	* opcodes/arm-dis.c (neon_opcodes): Add SHA 3-operand instructions.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:13:24 +0000 (08:13 +0000)]
 
	* gas/config/tc-arm.c (neon_type_mask): Add P64 type.
	(type_chk_of_el_type): Handle P64 type.
	(el_type_of_type_chk): Likewise.
	(do_neon_vmull): Handle VMULL.P64.
	* gas/testsuite/gas/arm/armv8-a+crypto.d: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+crypto.s: Likewise.
	* opcodes/arm-dis.c (neon_opcodes): Handle VMULL.P64.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:12:45 +0000 (08:12 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add aes entry.
	(neon_type_mask): Add N_UNT.
	(neon_check_type): Don't always decay typed to untyped sizes.
	(do_crypto_2op_1): New function.
	(do_aese): Likewise.
	(do_aesd): Likewise.
	(do_aesmc.8): Likewise.
	(do_aesimc.8): Likewise.
	(insns): Add AES instructions.
	* gas/testsuite/gas/arm/armv8-a+crypto.d: New testcase.
	* gas/testsuite/gas/arm/armv8-a+crypto.s: Likewise.
	* opcodes/arm-dis.c (neon_opcodes): Add support for AES instructions.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:11:44 +0000 (08:11 +0000)]
 
	* gas/config/tc-arm.c (el_type_type_check): Add handling for 16-bit
	floating point types.
	(do_neon_cvttb_2): New function.
	(do_neon_cvttb_1): Likewise.
	(do_neon_cvtb): Refactor to use do_neon_cvttb_1.
	(do_neon_cvtt): Likewise.
	* gas/testsuite/gas/arm/armv8-a+fp.d: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+fp.s: Likewise.
	* gas/testsuite/gas/arm/half-prec-vfpv3.s: Likewise.
	* opcodes/arm-dis.c (coprocessor_opcodes): Add support for HP/DP
	conversions.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:11:13 +0000 (08:11 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add vrint entries.
	(neon_cvt_mode): Add neon_cvt_mode_r.
	(do_vrint_1): New function.
	(do_vrint_x): Likewise.
	(do_vrint_z): Likewise.
	(do_vrint_r): Likewise.
	(do_vrint_a): Likewise.
	(do_vrint_n): Likewise.
	(do_vrint_p): Likewise.
	(do_vrint_m): Likewise.
	(insns): Add VRINT instructions.
	* gas/testsuite/gas/arm/armv8-a+fpv5.d: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+fpv5.s: Likewise.
	* gas/testsuite/gas/arm/armv8-a+simdv3.d: Likewise.
	* gas/testsuite/gas/arm/armv8-a+simdv3.s: Likewise.
	* opcodes/arm-dis.c (coprocessor_opcodes): Add VRINT.
	(neon_opcodes): Likewise.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:09:50 +0000 (08:09 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add vcvta entry.
	(neon_cvt_mode): New enumeration.
	(do_vfp_nsyn_cvt_fpv8): New function.
	(do_neon_cvt_1): Add support for new conversions.
	(do_neon_cvtr): Use neon_cvt_mode enumerator.
	(do_neon_cvt): Likewise.
	(do_neon_cvta): New function.
	(do_neon_cvtn): Likewise.
	(do_neon_cvtp): Likewise.
	(do_neon_cvtm): Likewise.
	(insns): Add new VCVT instructions.
	* gas/testsuite/gas/arm/armv8-a+fp.d: Update testcase.
	* gas/testsuite/gas/arm/armv8-a+fp.s: Likewise.
	* gas/testsuite/gas/arm/armv8-a+simd.d: Likewise.
	* gas/testsuite/gas/arm/armv8-a+simd.s: Likewise.
	* opcodes/arm-dis.c (coprocessor_opcodes): Add support for new VCVT
	variants.
	(neon_opcodes): Likewise.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:09:01 +0000 (08:09 +0000)]
 
	* gas/config/tc-arm.c (CVT_FLAVOUR_VAR): New define.
	(CVT_VAR): New helper define.
	(neon_cvt_flavour): New enumeration, function renamed...
	(get_neon_cvt_flavour): ...to this.
	(do_vfp_nsyn_cvt): Update to use new neon_cvt_flavour.
	(do_vfp_nsyn_cvtz): Likewise.
	(do_neon_cvt_1): Likewise.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:07:36 +0000 (08:07 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add vmaxnm, vminnm entries.
	(vfp_or_neon_is_neon_bits): Add NEON_CHECK_ARCH8 enumerator.
	(vfp_or_neon_is_neon): Add check for SIMD for ARMv8.
	(do_maxnm): New function.
	(insns): Add vmaxnm, vminnm entries.
	* gas/testsuite/gas/testsuite/gas/armv8-a+fp.d: Update testcase.
	* gas/testsuite/gas/testsuite/gas/armv8-a+fp.s: Likewise.
	* gas/testsuite/gas/testsuite/gas/armv8-a+simd.d: New testcase.
	* gas/testsuite/gas/testsuite/gas/armv8-a+simd.s: Likewise.
	* opcodes/arm-dis.c (coprocessor_opcodes): Add VMAXNM/VMINNM.
	(neon_opcodes): Likewise.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:06:36 +0000 (08:06 +0000)]
 
	* gas/config/tc-arm.c (NEON_ENC_TAB): Add entries for VSEL.
	(NEON_ENC_FPV8_): New define.
	(do_vfp_nsyn_fpv8): New function.
	(do_vsel): Likewise.
	(insns): Add VSEL instructions.
	* gas/testsuite/gas/arm/armv8-a+fp.d: New testcase.
	* gas/testsuite/gas/arm/armv8-a+fp.s: Likewise.
	* opcodes/arm-dis.c (coprocessor_opcodes): Add VSEL.
	(print_insn_coprocessor): Add new %<>c bitfield format
	specifier.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:03:39 +0000 (08:03 +0000)]
 
	* gas/config/tc-arm.c (do_rm_rn): New function.
	(do_strlex): Likewise.
	(do_t_strlex): Likewise.
	(insns): Add support for LDRA/STRL instructions.
	* gas/testsuite/gas/arm/armv8-a-bad.l: Update testcase.
	* gas/testsuite/gas/arm/armv8-a-bad.s: Likewise.
	* gas/testsuite/gas/arm/armv8-a.d: Likewise.
	* gas/testsuite/gas/arm/armv8-a.s: Likewise.
	* opcodes/arm-dis.c (arm_opcodes): Add LDRA/STRL instructions.
	(thumb32_opcodes): Likewise.
	(print_arm_insn): Add support for %<>T formatter.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:02:51 +0000 (08:02 +0000)]
 
	* gas/config/tc-arm.c (do_t_bkpt_hlt1): New function.
	(do_t_hlt): New function.
	(do_t_bkpt): Use do_t_bkpt_hlt1.
	(insns): Add HLT.
	* gas/testsuite/gas/arm/armv8-a-bad.l: Update for HLT.
	* gas/testsuite/gas/arm/armv8-a-bad.s: Likewise.
	* gas/testsuite/gas/arm/armv8-a.d: Likewise.
	* gas/testsuite/gas/arm/armv8-a.s: Likewise.
	* opcodes/arm-dis.c (arm_opcodes): Add HLT.
	(thumb_opcodes): Likewise.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:02:09 +0000 (08:02 +0000)]
 
	* gas/config/tc-arm.c (insns): Add DCPS instruction.
	* gas/testsuite/gas/arm/armv8-a.d: Update.
	* gas/testsuite/gas/arm/armv8-a.s: Likewise.
	* opcodes/arm-dis.c (thumb32_opcodes): Add DCPS instruction.
Matthew Gretton-Dann [Fri, 24 Aug 2012 08:01:18 +0000 (08:01 +0000)]
 
	* gas/config/tc-arm.c (T16_32_TAB): Add _sevl.
	(insns): Add SEVL.
	* gas/testsuite/gas/arm/armv8-a.s: New testcase.
	* gas/testsuite/gas/arm/armv8-a.d: Likewise.
	* opcodes/arm-dis.c (arm_opcodes): Add SEVL.
	(thumb_opcodes): Likewise.
	(thumb32_opcodes): Likewise.