public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-entryval: Merge remote branch 'origin/master' into archer-jankratochvil-entryval
@ 2010-09-02 15:07 jkratoch
  0 siblings, 0 replies; 3+ messages in thread
From: jkratoch @ 2010-09-02 15:07 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-entryval has been updated
       via  8c3b7130c8f955543c61835f22362123ef4a8893 (commit)
       via  4892da0975fd1d63ec6f4b94939bc867096b1dc7 (commit)
       via  92a98e9bd3dc86157989fdaae235bed2c0e1a298 (commit)
       via  ea8ab67e3cc2acf9a3343fb090de7b92a88fddaf (commit)
       via  22f4ce363e1585bf159c060d8363e6dd6ba77a10 (commit)
       via  d981de405a15a04135d2f34570770d9ad89e0f54 (commit)
       via  3ed98b6a4c91ae26c42b22177b9f6800c251eb81 (commit)
       via  8f83e95a50017fac2f6623663697545083bf0f44 (commit)
       via  f05c8cbcb247f29797e88a729847c9b845efd379 (commit)
       via  b5f9d7639137510dbffffb6d4e9b95836d3b38a0 (commit)
       via  9e9968a29fc6df4362519082c1a4d450205b74af (commit)
       via  2af0c7bd475faa74426bdff5a731c5ea63445951 (commit)
       via  79c1dad565481ee19bc8cd1caf2ab6fe1caf41cb (commit)
       via  2f9ac29ce98919de5f01257407f53876aeb79b76 (commit)
       via  5d784f0d560e0d9c2cc49ed2755bd6becf648e1c (commit)
       via  11e5303a1692a63cd2e17604abc7742561388af6 (commit)
       via  704aecbf881712c85309380d667f1efbb2382d2b (commit)
       via  5199ead275c904353432135fbb07c7ecafe8e9a5 (commit)
       via  2a8dee40e26adadd6565a0b046ae89b1d59cb8eb (commit)
       via  ee6f8e04736482d5a77b9b03b53e523e76b44563 (commit)
       via  881fc314b01fe886c0642a0cbb1a09f78d85e1cf (commit)
       via  92a09fd6ac19834a5f7c6b1b952beda46c725f0d (commit)
       via  abd0f09d595b12d4b7fd6912d307ec2bf31abdbc (commit)
       via  5205a74e90b0a2df6371e33039f908e0cc65a101 (commit)
       via  3cf2892284020e27403d7e60cee9b2654a154cc4 (commit)
       via  2aff8d5fea40a80b77a1c26e866170c7acdf2051 (commit)
       via  a5c45328d359d9c2f67b19618b7e3b8634d5777e (commit)
       via  acf64e9e66d9ee7fd0cb1536fd8c9940c6728112 (commit)
       via  2d1d4ca5791875896194f625d7be0261353b8730 (commit)
       via  0f12b4e58217ed2d8c085cf3a0328d1d8e014e9d (commit)
       via  fb846e72510040325bffd8f755180ea0025108dc (commit)
       via  45663fac93d772deb093c3332bb8f2486713ec06 (commit)
       via  cc2b6369c797e6f13b0c757a9663d591a408ea8f (commit)
       via  ff30927367850cba3d7cc7a061acf74c72c1fc79 (commit)
       via  0c69efc4cc258a5ac7e5eae58d740cd265d45831 (commit)
       via  b92971c9821da313730ccdcf75cb73633f041e4d (commit)
       via  c74224bac8b9a09261c38227ad89db82943e61ab (commit)
       via  94573bb92d84fcd2a7197eaa28ad287a63a9050f (commit)
       via  906fff3db29ecc9d0ed78a5df7caa1b95eb22792 (commit)
       via  18a6250849038236a8ac938dff2babf1d9b5084e (commit)
       via  65bc9f860f7c7fd3f1b502a794e14f3bc4ccf5c9 (commit)
       via  ec4723c73bb1432c5f00453f85e4175dafae21b9 (commit)
       via  e4f80798d60e87ac96ad560095112670e9b301ab (commit)
       via  c09f2e4670399aff5b8477bf71e297de96a918df (commit)
       via  c77a1a1c33daca25fd78559d0235851b2d92e301 (commit)
       via  2331390497b6478e779b54d1733fadd9d1b92fb8 (commit)
       via  a9f7dcd03f0f5914d4b30d8dd49628166e9bbe80 (commit)
       via  6d770a24a208212ba657a578f0ebf0b0729d44f5 (commit)
       via  ed16bf299a53c403d53c35a34335495b412a01bd (commit)
       via  938e334dd2164687fdfc4c6ca7269c488bf68329 (commit)
       via  c4fecec8501952baaa43bd270d22eb44dfa90155 (commit)
       via  428448a778dec10affa5dc60f511185f5e6c5d0a (commit)
       via  e9b58810822847b48c0dc6e20e3c9fbe86df2c3c (commit)
       via  70bcf84f9f23e660efadcb2326b3ba44864a3763 (commit)
       via  9a636a895cc433584d90515e57142c5d29fd7492 (commit)
       via  ceb2066155b8706520e380f2c97badbef68b97ba (commit)
       via  ecf04df8cde7ab1a0fd92a0379640b479feb99d4 (commit)
       via  529df7aae72eac86e1d5372046ec56ec6cc33145 (commit)
       via  782a8d5b4b4bb12b46db983d5fe5c8950a51ab4f (commit)
       via  29807fceccfd80ae6567634dfabfcd814383693e (commit)
       via  11653928654450f7773cf69b7f636aba94d57a39 (commit)
       via  b8bf95f37125d189cd4554dfeabc331dddc907a2 (commit)
       via  77164cf356e522ffa80fc3d85de62355d3feaf65 (commit)
       via  e52a28b29c8fe95a13a0b7a58d8e3a880ba21155 (commit)
       via  8cc55d978e6804f76e49d4b1acd7d45d817155bf (commit)
       via  2291236d08ee9692fd0611ee1321c309ef241f9e (commit)
       via  864973e52f730c54999fabe9276f6f0b05bd4720 (commit)
       via  5dc21937d50c07ec53a800a23ff5a9903c2d36ed (commit)
       via  6ff6829cdd4567d4fa8e03375aa3b706ae906718 (commit)
       via  f69a4d66715f75f8401571c4d9a2d584edf0a8f0 (commit)
       via  99bcc6f7301d7f65f6eb97b6381eeb885c7b9528 (commit)
       via  937cb923ef520b63aeff0d4b971abb29af05d5b0 (commit)
       via  b1f8e8c83102322b4f0a234499c9849708129d9b (commit)
       via  948adb64dd234f84cd29e965d5fdb048255f6ef5 (commit)
       via  4751ac68d82def483f8b35eca133da78db09a12a (commit)
       via  ef1627ca9c43016d2da071ed5ba61fc1299505dc (commit)
       via  72c9a2fc4ef8ea42ac73847865c46bae583c1c88 (commit)
       via  57c1cfefed9d946b9bf5849587cca013c644ddff (commit)
       via  e87d6c313d172c51a3e9fb11120924ca55d4b0d7 (commit)
       via  fdf9046b682ee56a8f079ac0f11a31934b50f111 (commit)
       via  74c37a5632d5473c7e76d73e9b6440d477e248f0 (commit)
       via  53ac205615a3d401754ca890cdb88e7a26b239db (commit)
       via  ea31146e178b2351acba56bf3585fcd9b89456db (commit)
       via  38f11f42e673260f2f3fc34746f76a45accd279c (commit)
       via  62c7b831f7e55a5c3689209f65d80d119794b7e2 (commit)
       via  0c069cacfdf534dc23c8b43d60364bee267e802d (commit)
       via  fbcdb325484fb52ccedd03b65603c3f01a0783a2 (commit)
       via  d0883c92e9558e179f737a08e7648ad0ab4881fe (commit)
       via  908f6fdbadc2a5c22d48d350aa8799bfe4439b3d (commit)
       via  de14cf56e232421829aa0eddeec5cb0b12fa7eb6 (commit)
       via  6a4e2f261b6af21cf465e203e2b098aba650bdb5 (commit)
       via  935370feb01920208ec5c099f3130d3f1a30bbeb (commit)
       via  5ffbb8cc56028dd2e4fbfff44a35e07b592b5b09 (commit)
       via  815ca023125e4dc2e90938816c56e7ea1089191a (commit)
       via  ebc2a8081dfb5113218d1d46e74d0325988f8744 (commit)
       via  90f5af282d2955c84854332e42653d5e7c26bb7f (commit)
       via  bae23351f8599a031ac17a6aebf44ef87038b269 (commit)
       via  f3e7fc895444d040bfe19f001e96bf54b753253b (commit)
      from  393cd96e4cc1f470b1d10a0c309cff93bb826539 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 8c3b7130c8f955543c61835f22362123ef4a8893
Merge: 393cd96 4892da0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Sep 2 17:06:14 2010 +0200

    Merge remote branch 'origin/master' into archer-jankratochvil-entryval

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                      |  124 +++-
 bfd/aout-arm.c                                     |    4 +-
 bfd/aout-ns32k.c                                   |    4 +-
 bfd/aoutx.h                                        |    2 +-
 bfd/cisco-core.c                                   |    3 +-
 bfd/coff-arm.c                                     |    4 +-
 bfd/coffcode.h                                     |    4 +-
 bfd/elf-bfd.h                                      |    6 +-
 bfd/elf-hppa.h                                     |    5 +-
 bfd/elf-m10300.c                                   |    1 +
 bfd/elf.c                                          |   81 ++-
 bfd/elf32-arm.c                                    |   59 ++-
 bfd/elf32-avr.c                                    |    1 +
 bfd/elf32-bfin.c                                   |    1 +
 bfd/elf32-cris.c                                   |    1 +
 bfd/elf32-frv.c                                    |    1 +
 bfd/elf32-hppa.c                                   |   11 +-
 bfd/elf32-i386.c                                   |    1 +
 bfd/elf32-lm32.c                                   |    1 +
 bfd/elf32-m32r.c                                   |    1 +
 bfd/elf32-m68hc11.c                                |    1 +
 bfd/elf32-m68hc12.c                                |    1 +
 bfd/elf32-m68k.c                                   |    1 +
 bfd/elf32-microblaze.c                             |    1 +
 bfd/elf32-mips.c                                   |    2 +-
 bfd/elf32-ppc.c                                    |    1 +
 bfd/elf32-s390.c                                   |    1 +
 bfd/elf32-sh.c                                     |    1 +
 bfd/elf32-sparc.c                                  |    1 +
 bfd/elf32-spu.c                                    |    1 +
 bfd/elf32-tic6x.c                                  |    1 +
 bfd/elf32-xtensa.c                                 |    1 +
 bfd/elf64-alpha.c                                  |    1 +
 bfd/elf64-hppa.c                                   |    1 +
 bfd/elf64-mips.c                                   |    2 +-
 bfd/elf64-ppc.c                                    |    1 +
 bfd/elf64-s390.c                                   |    1 +
 bfd/elf64-x86-64.c                                 |    1 +
 bfd/elflink.c                                      |   21 +-
 bfd/elfn32-mips.c                                  |    2 +-
 bfd/elfxx-ia64.c                                   |    1 +
 bfd/elfxx-mips.c                                   |    9 -
 bfd/elfxx-mips.h                                   |    2 -
 bfd/elfxx-target.h                                 |    7 +-
 bfd/netbsd-core.c                                  |    2 +-
 bfd/reloc.c                                        |    2 +-
 bfd/riscix.c                                       |    4 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  336 ++++++++-
 gdb/Makefile.in                                    |   10 +-
 gdb/NEWS                                           |   29 +
 gdb/arm-linux-tdep.c                               |   94 ++-
 gdb/arm-tdep.c                                     |  414 ++++++----
 gdb/arm-tdep.h                                     |    8 +
 gdb/bcache.c                                       |   49 +-
 gdb/bcache.h                                       |    8 +-
 gdb/breakpoint.c                                   |   31 +-
 gdb/defs.h                                         |   11 +-
 gdb/doc/ChangeLog                                  |  206 +++---
 gdb/doc/gdb.texinfo                                |   42 +-
 gdb/dwarf2read.c                                   |  635 ++++++++++-----
 gdb/exec.c                                         |    6 +-
 gdb/fbsd-nat.c                                     |    4 +-
 gdb/features/Makefile                              |    1 +
 gdb/features/arm-m-profile.xml                     |   27 +
 gdb/features/arm-with-m.c                          |   35 +
 gdb/features/arm-with-m.xml                        |   11 +
 gdb/gcore.c                                        |    4 +-
 gdb/gdbserver/ChangeLog                            |  340 +++++++--
 gdb/gdbserver/Makefile.in                          |   32 +-
 gdb/gdbserver/config.in                            |   37 +
 gdb/gdbserver/configure                            |  292 +++++++-
 gdb/gdbserver/configure.ac                         |   49 ++-
 gdb/gdbserver/configure.srv                        |    4 +
 gdb/gdbserver/event-loop.c                         |   23 +-
 gdb/gdbserver/gdbreplay.c                          |   39 +-
 gdb/gdbserver/i386-low.c                           |   25 +-
 gdb/gdbserver/i386-low.h                           |   16 +-
 gdb/gdbserver/linux-low.c                          |  113 +++-
 gdb/gdbserver/linux-low.h                          |    2 +-
 gdb/gdbserver/linux-x86-low.c                      |  101 ++-
 gdb/gdbserver/lynx-low.c                           |  810 +++++++++++++++++++
 gdb/gdbserver/lynx-low.h                           |   52 ++
 gdb/gdbserver/lynx-ppc-low.c                       |  186 +++++
 gdb/gdbserver/nto-low.c                            |    4 +-
 gdb/gdbserver/remote-utils.c                       |   10 +-
 gdb/gdbserver/server.c                             |   84 ++-
 gdb/gdbserver/server.h                             |   30 +-
 gdb/gdbserver/spu-low.c                            |    2 +
 gdb/gdbserver/target.c                             |   16 +-
 gdb/gdbserver/target.h                             |   29 +
 gdb/gdbserver/thread-db.c                          |    4 +-
 gdb/gdbserver/tracepoint.c                         |   11 +-
 gdb/gdbserver/utils.c                              |   17 +-
 gdb/gdbserver/win32-i386-low.c                     |   35 +-
 gdb/gdbserver/win32-low.c                          |    3 +-
 gdb/gdbtypes.c                                     |    2 +-
 gdb/gnu-nat.c                                      |    6 +-
 gdb/infrun.c                                       |    5 +
 gdb/iq2000-tdep.c                                  |    2 +
 gdb/linux-nat.c                                    |   14 +-
 gdb/linux-tdep.c                                   |   33 +
 gdb/mi/mi-main.c                                   |    2 +
 gdb/objfiles.c                                     |    8 +-
 gdb/objfiles.h                                     |    2 +-
 gdb/procfs.c                                       |   43 +-
 gdb/psymtab.c                                      |  125 +++-
 gdb/psymtab.h                                      |    8 +
 gdb/python/py-type.c                               |  266 +++++++-
 gdb/python/py-value.c                              |  137 +++-
 gdb/regformats/rs6000/powerpc-32.dat               |   75 ++
 gdb/symfile.c                                      |   14 +-
 gdb/symfile.h                                      |   27 +-
 gdb/symmisc.c                                      |    6 +-
 gdb/symtab.c                                       |  167 ++++-
 gdb/symtab.h                                       |    4 +
 gdb/target.c                                       |    2 +-
 gdb/target.h                                       |    6 +-
 gdb/testsuite/ChangeLog                            |  825 +++++++++++---------
 gdb/testsuite/gdb.cp/cpexprs.cc                    |   18 +-
 gdb/testsuite/gdb.cp/cpexprs.exp                   |   17 +-
 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S |   22 +-
 gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc        |   16 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc          |   12 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp         |   43 +
 gdb/testsuite/gdb.dwarf2/dw4-sig-types.h           |   15 +
 gdb/testsuite/gdb.mi/mi-nsmoribund.exp             |   22 +-
 gdb/testsuite/gdb.python/py-type.exp               |   11 +
 gdb/testsuite/gdb.python/py-value.c                |   10 +
 gdb/testsuite/gdb.python/py-value.exp              |   12 +
 gdb/version.in                                     |    2 +-
 opcodes/ChangeLog                                  |   15 +
 opcodes/i386-dis.c                                 |   68 +-
 opcodes/ppc-opc.c                                  |    8 +-
 sim/testsuite/ChangeLog                            |    4 +
 sim/testsuite/sim/cris/asm/nonvcv32.ms             |    8 +-
 136 files changed, 5377 insertions(+), 1419 deletions(-)
 create mode 100644 gdb/features/arm-m-profile.xml
 create mode 100644 gdb/features/arm-with-m.c
 create mode 100644 gdb/features/arm-with-m.xml
 create mode 100644 gdb/gdbserver/lynx-low.c
 create mode 100644 gdb/gdbserver/lynx-low.h
 create mode 100644 gdb/gdbserver/lynx-ppc-low.c
 create mode 100644 gdb/regformats/rs6000/powerpc-32.dat
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types-b.cc
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.cc
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.exp
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw4-sig-types.h

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7ae8300..7edf390 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,125 @@
+2010-09-01  Pedro Alves  <pedro@codesourcery.com>
+
+	* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
+	(netbsd_core_file_pid): ... this.
+
+2010-09-01  Tristan Gingold  <gingold@adacore.com>
+
+	* coffcode.h (coff_slurp_line_table): Add a cast.
+	(coff_slurp_reloc_table): Ditto.
+
+2010-08-30  Gunther Nikl  <gnikl@users.sourceforge.net>
+
+	* cisco-core.c (cisco_core_file_pid): Define.
+
+2010-08-30  Alan Modra  <amodra@gmail.com>
+
+	PR binutils/11953
+	* elf.c (copy_elf_program_header): Calculate map->header_size
+	from lowest_section, not first_section.  Validate program
+	header p_paddr against section lma.  Find lowest_section in
+	second loop over headers.
+
+2010-08-28  Alan Modra  <amodra@gmail.com>
+
+	* elflink.c (_bfd_elf_dynamic_symbol_p): Rename param.  Make
+	common syms local.
+	(_bfd_elf_symbol_refs_local_p): Expand comment.
+	(elf_link_output_extsym): Fix style nit.
+
+2010-08-26  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf32-arm.c (elf32_arm_final_link): Process stub sections
+	exactly once.
+
+2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11939
+	* elflink.c (elf_link_add_object_symbols): Don't set
+	unique_global for non-ELF hash link table.
+
+2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11944
+	* elf-bfd.h (elf_backend_data): Add target_id.
+	(bfd_elf_make_generic_object): Renamed to ...
+	(bfd_elf_make_object): This.
+
+	* elf.c (bfd_elf_make_generic_object): Removed.
+	(bfd_elf_make_object): New.
+	(bfd_elf_mkcorefile): Really treat it as an object file.
+
+	* elf-m10300.c (ELF_TARGET_ID): New.
+	* elf32-arm.c (ELF_TARGET_ID): Likewise.
+	* elf32-bfin.c (ELF_TARGET_ID): Likewise.
+	* elf32-cris.c (ELF_TARGET_ID): Likewise.
+	* elf32-frv.c (ELF_TARGET_ID): Likewise.
+	* elf32-i386.c (ELF_TARGET_ID): Likewise.
+	* elf32-lm32.c (ELF_TARGET_ID): Likewise.
+	* elf32-m32r.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
+	* elf32-m68k.c (ELF_TARGET_ID): Likewise.
+	* elf32-microblaze.c (ELF_TARGET_ID): Likewise.
+	* elf32-ppc.c (ELF_TARGET_ID): Likewise.
+	* elf32-s390.c (ELF_TARGET_ID): Likewise.
+	* elf32-sh.c (ELF_TARGET_ID): Likewise.
+	* elf32-sparc.c (ELF_TARGET_ID): Likewise.
+	* elf32-spu.c (ELF_TARGET_ID): Likewise.
+	* elf32-tic6x.c (ELF_TARGET_ID): Likewise.
+	* elf32-xtensa.c (ELF_TARGET_ID): Likewise.
+	* elf64-alpha.c (ELF_TARGET_ID): Likewise.
+	* elf64-hppa.c (ELF_TARGET_ID): Likewise.
+	* elf64-ppc.c (ELF_TARGET_ID): Likewise.
+	* elf64-s390.c (ELF_TARGET_ID): Likewise.
+	* elf64-x86-64.c (ELF_TARGET_ID): Likewise.
+	* elfxx-ia64.c (ELF_TARGET_ID): Likewise.
+
+	* elf32-hppa.c (elf32_hppa_mkobject): Removed.
+	(bfd_elf32_mkobject): Likewise.
+	(ELF_TARGET_ID): New.
+
+	* elf32-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf32_mkobject): Removed.
+
+	* elf64-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf64_mkobject): Removed.
+
+	* elfn32-mips.c (ELF_TARGET_ID): New.
+	(bfd_elf32_mkobject): Removed.
+
+	* elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
+	* elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
+
+	* elfxx-target.h (bfd_elfNN_mkobject): Default to
+	bfd_elf_make_object.
+	(ELF_TARGET_ID): New.  Default to GENERIC_ELF_DATA.
+	(elfNN_bed): Initialize target_id.
+
+2010-08-25  Julian Brown  <julian@codesourcery.com>
+
+	* elf32-arm.c (arm_stub_required_alignment): New.
+	(arm_build_one_stub): Use above to partition stubs.
+	(make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
+	arm_stub_a8_veneer_b_cond.
+
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+	* aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
+	* aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
+	* aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
+	* coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
+	* elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
+	* reloc.c (bfd_default_reloc_type_lookup): Likewise.
+	* riscix.c (riscix_reloc_type_lookup): Likewise.
+
+2010-08-25  Alan Modra  <amodra@gmail.com>
+
+	* elf.c (_bfd_elf_map_sections_to_segments): Don't load program
+	headers if any loaded section wraps the address space.  Simplify
+	~(m-1) to -m.  Use lma rather than vma when determining whether
+	note sections are adjacent.
+
 2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/11933
@@ -91,7 +213,7 @@
 	elf_tdata's core_lwpid instead of to core_pid.
 	* elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
 	elf_tdata's core_lwpid instead of to core_pid.
-	
+
 	* plugin.c (bfd_plugin_core_file_pid): New function.
 	* aout-target.h (MY_core_file_pid): Define.
 	* aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
diff --git a/bfd/aout-arm.c b/bfd/aout-arm.c
index 6e99b2e..9a5d155 100644
--- a/bfd/aout-arm.c
+++ b/bfd/aout-arm.c
@@ -1,6 +1,6 @@
 /* BFD back-end for raw ARM a.out binaries.
    Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
-   2007, 2009 Free Software Foundation, Inc.
+   2007, 2009, 2010 Free Software Foundation, Inc.
    Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -296,7 +296,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd,
 #define ASTD(i,j)       case i: return & MY (howto_table)[j]
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
         code = BFD_RELOC_32;
diff --git a/bfd/aout-ns32k.c b/bfd/aout-ns32k.c
index ea7d8f4..9a0737d 100644
--- a/bfd/aout-ns32k.c
+++ b/bfd/aout-ns32k.c
@@ -1,6 +1,6 @@
 /* BFD back-end for ns32k a.out-ish binaries.
    Copyright 1990, 1991, 1992, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
-   2002, 2003, 2005, 2006, 2007 Free Software Foundation, Inc.
+   2002, 2003, 2005, 2006, 2007, 2010 Free Software Foundation, Inc.
    Contributed by Ian Dall (idall@eleceng.adelaide.edu.au).
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -214,7 +214,7 @@ MY (bfd_reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
 
   BFD_ASSERT (ext == 0);
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
 	code = BFD_RELOC_32;
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index c632722..11598a0 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -269,7 +269,7 @@ NAME (aout, reloc_type_lookup) (bfd *abfd, bfd_reloc_code_real_type code)
   int ext = obj_reloc_entry_size (abfd) == RELOC_EXT_SIZE;
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
 	code = BFD_RELOC_32;
diff --git a/bfd/cisco-core.c b/bfd/cisco-core.c
index 9169ed5..29a7423 100644
--- a/bfd/cisco-core.c
+++ b/bfd/cisco-core.c
@@ -1,5 +1,5 @@
 /* BFD back-end for CISCO crash dumps.
-   Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007
+   Copyright 1994, 1997, 1999, 2000, 2001, 2002, 2004, 2005, 2006, 2007, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -77,6 +77,7 @@ static const bfd_target *cisco_core_file_p PARAMS ((bfd *));
 char *cisco_core_file_failing_command PARAMS ((bfd *));
 int cisco_core_file_failing_signal PARAMS ((bfd *));
 #define cisco_core_file_matches_executable_p generic_core_file_matches_executable_p
+#define cisco_core_file_pid _bfd_nocore_core_file_pid
 \f
 /* Examine the file for a crash info struct at the offset given by
    CRASH_INFO_LOC.  */
diff --git a/bfd/coff-arm.c b/bfd/coff-arm.c
index 2e0110a..bdadfb2 100644
--- a/bfd/coff-arm.c
+++ b/bfd/coff-arm.c
@@ -1,6 +1,6 @@
 /* BFD back-end for ARM COFF files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -817,7 +817,7 @@ coff_arm_reloc_type_lookup (bfd * abfd, bfd_reloc_code_real_type code)
 #define ASTD(i,j)       case i: return aoutarm_std_reloc_howto + j
 
   if (code == BFD_RELOC_CTOR)
-    switch (bfd_get_arch_info (abfd)->bits_per_address)
+    switch (bfd_arch_bits_per_address (abfd))
       {
       case 32:
         code = BFD_RELOC_32;
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ad35e32..790908a 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -4487,7 +4487,7 @@ coff_slurp_line_table (bfd *abfd, asection *asect)
 	    {
 	      (*_bfd_error_handler)
 		(_("%B: warning: illegal symbol index %ld in line numbers"),
-		 abfd, dst.l_addr.l_symndx);
+		 abfd, (long) symndx);
 	      symndx = 0;
 	      warned = TRUE;
 	    }
@@ -5123,7 +5123,7 @@ coff_slurp_reloc_table (bfd * abfd, sec_ptr asect, asymbol ** symbols)
 	    {
 	      (*_bfd_error_handler)
 		(_("%B: warning: illegal symbol index %ld in relocs"),
-		 abfd, dst.r_symndx);
+		 abfd, (long) dst.r_symndx);
 	      cache_ptr->sym_ptr_ptr = bfd_abs_section_ptr->symbol_ptr_ptr;
 	      ptr = NULL;
 	    }
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index 2220d4d..dbcebd2 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -689,6 +689,10 @@ struct elf_backend_data
   /* The architecture for this backend.  */
   enum bfd_architecture arch;
 
+  /* An identifier used to distinguish different target specific
+     extensions to elf_obj_tdata and elf_link_hash_table structures.  */
+  enum elf_target_id target_id;
+
   /* The ELF machine code (EM_xxxx) for this backend.  */
   int elf_machine_code;
 
@@ -1739,7 +1743,7 @@ extern bfd_reloc_status_type bfd_elf_generic_reloc
   (bfd *, arelent *, asymbol *, void *, asection *, bfd *, char **);
 extern bfd_boolean bfd_elf_allocate_object
   (bfd *, size_t, enum elf_target_id);
-extern bfd_boolean bfd_elf_make_generic_object
+extern bfd_boolean bfd_elf_make_object
   (bfd *);
 extern bfd_boolean bfd_elf_mkcorefile
   (bfd *);
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index 51a9484..3fa9ded 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -1,5 +1,6 @@
 /* Common code for PA ELF implementations.
-   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+   Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
+   2009, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -678,7 +679,7 @@ elf_hppa_reloc_final_type (bfd *abfd,
 	      /* When in 64bit mode, a 32bit relocation is supposed to
 		 be a section relative relocation.  Dwarf2 (for example)
 		 uses 32bit section relative relocations.  */
-	      if (bfd_get_arch_info (abfd)->bits_per_address != 32)
+	      if (bfd_arch_bits_per_address (abfd) != 32)
 		final_type = R_PARISC_SECREL32;
 	      break;
 	    case e_psel:
diff --git a/bfd/elf-m10300.c b/bfd/elf-m10300.c
index f151c21..a4da9d5 100644
--- a/bfd/elf-m10300.c
+++ b/bfd/elf-m10300.c
@@ -4893,6 +4893,7 @@ _bfd_mn10300_elf_reloc_type_class (const Elf_Internal_Rela *rela)
 #define TARGET_LITTLE_SYM	bfd_elf32_mn10300_vec
 #define TARGET_LITTLE_NAME	"elf32-mn10300"
 #define ELF_ARCH		bfd_arch_mn10300
+#define ELF_TARGET_ID		MN10300_ELF_DATA
 #define ELF_MACHINE_CODE	EM_MN10300
 #define ELF_MACHINE_ALT1	EM_CYGNUS_MN10300
 #define ELF_MAXPAGESIZE		0x1000
diff --git a/bfd/elf.c b/bfd/elf.c
index f9f2dad..c9e9fab 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -250,17 +250,18 @@ bfd_elf_allocate_object (bfd *abfd,
 
 
 bfd_boolean
-bfd_elf_make_generic_object (bfd *abfd)
+bfd_elf_make_object (bfd *abfd)
 {
+  const struct elf_backend_data *bed = get_elf_backend_data (abfd);
   return bfd_elf_allocate_object (abfd, sizeof (struct elf_obj_tdata),
-				  GENERIC_ELF_DATA);
+				  bed->target_id);
 }
 
 bfd_boolean
 bfd_elf_mkcorefile (bfd *abfd)
 {
   /* I think this can be done just like an object file.  */
-  return bfd_elf_make_generic_object (abfd);
+  return abfd->xvec->_bfd_set_format[(int) bfd_object] (abfd);
 }
 
 static char *
@@ -3624,6 +3625,7 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
       asection *first_tls = NULL;
       asection *dynsec, *eh_frame_hdr;
       bfd_size_type amt;
+      bfd_vma addr_mask, wrap_to = 0;
 
       /* Select the allocated sections, and sort them.  */
 
@@ -3632,6 +3634,12 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
       if (sections == NULL)
 	goto error_return;
 
+      /* Calculate top address, avoiding undefined behaviour of shift
+	 left operator when shift count is equal to size of type
+	 being shifted.  */
+      addr_mask = ((bfd_vma) 1 << (bfd_arch_bits_per_address (abfd) - 1)) - 1;
+      addr_mask = (addr_mask << 1) + 1;
+
       i = 0;
       for (s = abfd->sections; s != NULL; s = s->next)
 	{
@@ -3639,6 +3647,9 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	    {
 	      sections[i] = s;
 	      ++i;
+	      /* A wrapping section potentially clashes with header.  */
+	      if (((s->lma + s->size) & addr_mask) < (s->lma & addr_mask))
+		wrap_to = (s->lma + s->size) & addr_mask;
 	    }
 	}
       BFD_ASSERT (i <= bfd_count_sections (abfd));
@@ -3708,8 +3719,10 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	  if (phdr_size == (bfd_size_type) -1)
 	    phdr_size = get_program_header_size (abfd, info);
 	  if ((abfd->flags & D_PAGED) == 0
-	      || sections[0]->lma < phdr_size
-	      || sections[0]->lma % maxpagesize < phdr_size % maxpagesize)
+	      || (sections[0]->lma & addr_mask) < phdr_size
+	      || ((sections[0]->lma & addr_mask) % maxpagesize
+		  < phdr_size % maxpagesize)
+	      || (sections[0]->lma & addr_mask & -maxpagesize) < wrap_to)
 	    phdr_in_segment = FALSE;
 	}
 
@@ -3774,9 +3787,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 	    }
 	  else if (! writable
 		   && (hdr->flags & SEC_READONLY) == 0
-		   && (((last_hdr->lma + last_size - 1)
-			& ~(maxpagesize - 1))
-		       != (hdr->lma & ~(maxpagesize - 1))))
+		   && (((last_hdr->lma + last_size - 1) & -maxpagesize)
+		       != (hdr->lma & -maxpagesize)))
 	    {
 	      /* We don't want to put a writable section in a read only
 		 segment, unless they are on the same page in memory
@@ -3883,8 +3895,8 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info)
 		    if (s2->next->alignment_power == 2
 			&& (s2->next->flags & SEC_LOAD) != 0
 			&& CONST_STRNEQ (s2->next->name, ".note")
-			&& align_power (s2->vma + s2->size, 2)
-			   == s2->next->vma)
+			&& align_power (s2->lma + s2->size, 2)
+			   == s2->next->lma)
 		      count++;
 		    else
 		      break;
@@ -5858,7 +5870,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
       bfd_size_type amt;
       Elf_Internal_Shdr *this_hdr;
       asection *first_section = NULL;
-      asection *lowest_section = NULL;
+      asection *lowest_section;
 
       /* Compute how many sections are in this segment.  */
       for (section = ibfd->sections, section_count = 0;
@@ -5868,10 +5880,8 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	  this_hdr = &(elf_section_data(section)->this_hdr);
 	  if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
 	    {
-	      if (!first_section)
-		first_section = lowest_section = section;
-	      if (section->lma < lowest_section->lma)
-		lowest_section = section;
+	      if (first_section == NULL)
+		first_section = section;
 	      section_count++;
 	    }
 	}
@@ -5925,17 +5935,7 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	    phdr_included = TRUE;
 	}
 
-      if (map->includes_filehdr && first_section)
-	/* We need to keep the space used by the headers fixed.  */
-	map->header_size = first_section->vma - segment->p_vaddr;
-      
-      if (!map->includes_phdrs
-	  && !map->includes_filehdr
-	  && map->p_paddr_valid)
-	/* There is some other padding before the first section.  */
-	map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
-			       - segment->p_paddr);
-
+      lowest_section = first_section;
       if (section_count != 0)
 	{
 	  unsigned int isec = 0;
@@ -5948,12 +5948,41 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
 	      if (ELF_SECTION_IN_SEGMENT (this_hdr, segment))
 		{
 		  map->sections[isec++] = section->output_section;
+		  if (section->lma < lowest_section->lma)
+		    lowest_section = section;
+		  if ((section->flags & SEC_ALLOC) != 0)
+		    {
+		      bfd_vma seg_off;
+
+		      /* Section lmas are set up from PT_LOAD header
+			 p_paddr in _bfd_elf_make_section_from_shdr.
+			 If this header has a p_paddr that disagrees
+			 with the section lma, flag the p_paddr as
+			 invalid.  */
+		      if ((section->flags & SEC_LOAD) != 0)
+			seg_off = this_hdr->sh_offset - segment->p_offset;
+		      else
+			seg_off = this_hdr->sh_addr - segment->p_vaddr;
+		      if (section->lma - segment->p_paddr != seg_off)
+			map->p_paddr_valid = FALSE;
+		    }
 		  if (isec == section_count)
 		    break;
 		}
 	    }
 	}
 
+      if (map->includes_filehdr && lowest_section != NULL)
+	/* We need to keep the space used by the headers fixed.  */
+	map->header_size = lowest_section->vma - segment->p_vaddr;
+      
+      if (!map->includes_phdrs
+	  && !map->includes_filehdr
+	  && map->p_paddr_valid)
+	/* There is some other padding before the first section.  */
+	map->p_vaddr_offset = ((lowest_section ? lowest_section->lma : 0)
+			       - segment->p_paddr);
+
       map->count = section_count;
       *pointer_to_map = map;
       pointer_to_map = &map->next;
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 0cd1e64..74fb855 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -3475,6 +3475,36 @@ static bfd_reloc_status_type elf32_arm_final_link_relocate
    Elf_Internal_Rela *, bfd_vma, struct bfd_link_info *, asection *,
    const char *, int, struct elf_link_hash_entry *, bfd_boolean *, char **);
 
+static unsigned int
+arm_stub_required_alignment (enum elf32_arm_stub_type stub_type)
+{


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [SCM]  archer-jankratochvil-entryval: Merge remote branch 'origin/master' into archer-jankratochvil-entryval
@ 2010-09-04 20:02 jkratoch
  0 siblings, 0 replies; 3+ messages in thread
From: jkratoch @ 2010-09-04 20:02 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-entryval has been updated
       via  a5ab368b3fd58ca581aafca442e4706c50fc37a8 (commit)
       via  61f0884b46ba2d3f8775995ec5433328a6d2e5cd (commit)
       via  2ccd65e25123e680eea9e47a645e2b6d2fa50c79 (commit)
       via  8fc361860682f78b8c1342b84c0f3920b6a26c81 (commit)
       via  c4b8673aa65273a6308f68e7ab43865d71832488 (commit)
       via  a31d2450deff59c1a13a5e75fb83c3cde5fa8ad0 (commit)
       via  4dd6838b3744148a9f02e8f501247833cf972738 (commit)
       via  058124e05ac6c31ad258e30ef0e7cea23b39c2e5 (commit)
       via  9ab6c083f5f3d8b2c2bc6239bac45a3944283d04 (commit)
       via  8e178d050f8a4a3d75f0dbfe4329009c3bcf6982 (commit)
       via  b791ba7ae4d0e38ac1a13f944c8a4a2b4f118b6a (commit)
       via  5196fb1be55974acdcb603bf7e142c5f6e808574 (commit)
       via  57d1b0d41f1acbc4c140c49b66301040cad3fc43 (commit)
       via  a902f2ad39ee4c1d82b093a3e2093fa21a157220 (commit)
       via  bc54c3d8368d52bb0218c64afc5632fd2f6c8509 (commit)
       via  5c05b641346f70bd4884766ad38b67735618fbe2 (commit)
       via  812ad48c254399696c0aa73e92753e5b40929c1b (commit)
       via  68a15546475fe0162e39a7aed6866bd3f7692c06 (commit)
      from  c1a07bfdf67a0cf0acba58d0fbd5574036291312 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit a5ab368b3fd58ca581aafca442e4706c50fc37a8
Merge: c1a07bf 61f0884
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Sep 4 22:01:02 2010 +0200

    Merge remote branch 'origin/master' into archer-jankratochvil-entryval

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                             |    4 +
 bfd/config.bfd                            |    2 +-
 bfd/version.h                             |    2 +-
 config/ChangeLog                          |    4 +
 config/dfp.m4                             |   53 +++
 gdb/ChangeLog                             |   92 +++++-
 gdb/breakpoint.c                          |   12 +-
 gdb/cli-out.c                             |   60 ++-
 gdb/cli-out.h                             |    9 +-
 gdb/cli/cli-logging.c                     |  121 +++++-
 gdb/config.in                             |    3 +
 gdb/configure                             |    2 +-
 gdb/configure.ac                          |    2 +-
 gdb/infrun.c                              |  257 ++++++------
 gdb/python/py-breakpoint.c                |    4 +-
 gdb/record.c                              |  609 -----------------------------
 gdb/ser-pipe.c                            |   12 +-
 gdb/testsuite/ChangeLog                   |   16 +
 gdb/testsuite/gdb.base/ui-redirect.exp    |   41 ++
 gdb/testsuite/gdb.base/watchpoint.exp     |   27 ++-
 gdb/testsuite/gdb.dwarf2/dw2-filename.S   |   53 +++
 gdb/testsuite/gdb.dwarf2/dw2-filename.exp |   44 ++
 gdb/version.in                            |    2 +-
 libdecnumber/ChangeLog                    |    7 +
 libdecnumber/Makefile.in                  |    1 +
 libdecnumber/aclocal.m4                   |    1 +
 libdecnumber/configure                    |   38 ++-
 libdecnumber/configure.ac                 |   38 +--
 28 files changed, 674 insertions(+), 842 deletions(-)
 create mode 100644 config/dfp.m4
 create mode 100644 gdb/testsuite/gdb.base/ui-redirect.exp
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-filename.S
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-filename.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7edf390..26d45ff 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-02  Richard Henderson  <rth@redhat.com>
+
+	* config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
+
 2010-09-01  Pedro Alves  <pedro@codesourcery.com>
 
 	* netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 0bfb535..e42535f 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -634,7 +634,7 @@ case "${targ}" in
     ;;
   x86_64-*-mingw*)
     targ_defvec=x86_64pe_vec
-    targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec"
+    targ_selvecs="x86_64pe_vec x86_64pei_vec bfd_elf64_x86_64_vec bfd_elf64_l1om_vec i386pe_vec i386pei_vec bfd_elf32_i386_vec"
     want64=true
     targ_underscore=no
     ;;
diff --git a/bfd/version.h b/bfd/version.h
index d5cb1b3..df375d0 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100902
+#define BFD_VERSION_DATE 20100904
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/config/ChangeLog b/config/ChangeLog
index 22a3641..af06955 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,7 @@
+2010-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+	* dfp.m4: New file.
+
 2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	PR target/45084
diff --git a/config/dfp.m4 b/config/dfp.m4
new file mode 100644
index 0000000..4cace76
--- /dev/null
+++ b/config/dfp.m4
@@ -0,0 +1,53 @@
+dnl @synopsis GCC_AC_ENABLE_DECIMAL_FLOAT([target triplet])
+dnl
+dnl Enable C extension for decimal float if target supports it.
+dnl
+dnl @author Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+AC_DEFUN([GCC_AC_ENABLE_DECIMAL_FLOAT],
+[
+AC_ARG_ENABLE(decimal-float,
+[  --enable-decimal-float={no,yes,bid,dpd}
+			enable decimal float extension to C.  Selecting 'bid'
+			or 'dpd' choses which decimal floating point format
+			to use],
+[
+  case $enable_decimal_float in
+    yes | no | bid | dpd) ;;
+    *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float.
+Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
+  esac
+],
+[
+  case $1 in
+    powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux*)
+      enable_decimal_float=yes
+      ;;
+    *)
+      AC_MSG_WARN(decimal float is not supported for this target, ignored)
+      enable_decimal_float=no
+      ;;
+  esac
+])
+
+# x86's use BID format instead of DPD
+case x$enable_decimal_float in
+  xyes)
+    case $1 in
+      i?86*-*-* | x86_64*-*-*)
+	enable_decimal_float=bid
+	;;
+      *)
+	enable_decimal_float=dpd
+	;;
+    esac
+    ;;
+  xno)
+    # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
+    # dependency on libdecnumber.
+    enable_decimal_float=dpd
+    ;;
+esac
+AC_SUBST(enable_decimal_float)
+
+])
\ No newline at end of file
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2d2344c..f569efa 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,93 @@
+2010-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* breakpoint.c (can_use_hardware_watchpoint): Handle the first
+	value specially.
+
+2010-09-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Code cleanup - split print_stop_reason.
+	* infrun.c (enum inferior_stop_reason): Remove.
+	(print_stop_reason): Remove by splitting into ...
+	(print_exited_reason, print_signal_exited_reason)
+	(print_no_history_reason, print_signal_received_reason)
+	(print_end_stepping_range_reason): ... these new functions.  Update
+	the preceding comment.
+	(handle_inferior_event): Change the calls to print_exited_reason,
+	print_signal_exited_reason, print_no_history_reason,
+	print_signal_received_reason, print_end_stepping_range_reason.
+	(handle_step_into_function, handle_step_into_function_backward):
+	Change the calls to print_end_stepping_range_reason.
+
+2010-09-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
+	* cli-out.c: Include vec.h.
+	(cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
+	variable stream, initialize it, use it.
+	(cli_redirect): New function comment.  Replace the stream and
+	original_stream fields by the new streams field.  Remove the
+	original_stream != NULL conditional, assert error on NULL instead.
+	(out_field_fmt, field_separator): New variable stream, initialize it, use it.
+	(cli_out_data_ctor): Assert non-NULL stream.  Replace the stream and
+	original_stream fields by the new streams field.
+	(cli_out_set_stream): Replace the stream field by the new streams
+	field.
+	* cli-out.h: Include vec.h.
+	(ui_filep): New typedef, call DEF_VEC_P for it.
+	(struct cli_ui_out_data): Replace the stream and original_stream
+	fields by the new streams field.
+	* cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
+	NULL first.  Extend the comment.
+	(handle_redirections): Call ui_out_redirect with output.
+	* python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
+	calls outside of the TRY_CATCH block.
+
+2010-09-03  Joel Brobecker  <brobecker@adacore.com>
+
+	GDB 7.2 released.
+
+2010-09-02  Joel Brobecker  <brobecker@adacore.com>
+
+	Back out the following change:
+	| 2010-06-29  Hui Zhu  <teawater@gmail.com>
+	| * record.c (set_record_pic_cmdlist,
+	| show_record_pic_cmdlist): New variables.
+	| (set_record_pic_command,
+	| show_record_pic_command): New functions.
+	| (record_pic_function, record_pic_line, record_pic_enum,
+	| set_record_pic_type, record_pic_hide_nofunction,
+	| record_pic_hide_nosource, record_pic_hide_same): New variables.
+	| (record_pic_fputs): New function.
+	| (function_list, node_list, edge_list): New struct.
+	| (function_list, node_list, edge_list): New variables.
+	| (record_pic_cleanups, record_pic_node,
+	| record_pic_edge, cmd_record_pic): New functions.
+	| (_initialize_record): Add new commands for record pic.
+
+2010-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* config.in, configure: Regenerated.
+	* configure.ac: Check for waitpid.
+	* ser-pipe.c (pipe_close): Wait for the program to exit.
+
+2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* cli/cli-logging.c: Include gdb_assert.h.
+	(set_logging_overwrite): New function.
+	(logging_redirect): New comment.
+	(logging_no_redirect_file, set_logging_redirect)
+	(pop_output_files) <logging_no_redirect_file>: New.
+	(handle_redirections) <!logging_redirect>: New variable
+	no_redirect_file.  Remove file autoclose for tee_file_new.  No longer
+	discard cleanup for the close of former OUTPUT.  Set
+	LOGGING_NO_REDIRECT_FILE.
+	(handle_redirections) <logging_redirect>: gdb_assert
+	LOGGING_NO_REDIRECT_FILE.
+	(show_logging_command) <logging_redirect handling>: Adjust messages
+	for SAVED_FILENAME not NULL.
+	(_initialize_cli_logging): Install set_logging_overwrite and
+	set_logging_redirect.
+
 2010-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	* iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
@@ -576,7 +666,7 @@
 
 2010-08-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
-	* cli-logging.c (logging_overwrite, logging_redirect): Make them
+	* cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
 	static.
 
 2010-08-13  Ken Werner  <ken.werner@de.ibm.com>
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index a034d6a..1d3f7fc 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -8327,10 +8327,12 @@ can_use_hardware_watchpoint (struct value *v)
     {
       if (VALUE_LVAL (v) == lval_memory)
 	{
-	  if (value_lazy (v))
-	    /* A lazy memory lvalue is one that GDB never needed to fetch;
-	       we either just used its address (e.g., `a' in `a.b') or
-	       we never needed it at all (e.g., `a' in `a,b').  */
+	  if (v != head && value_lazy (v))
+	    /* A lazy memory lvalue in the chain is one that GDB never
+	       needed to fetch; we either just used its address (e.g.,
+	       `a' in `a.b') or we never needed it at all (e.g., `a'
+	       in `a,b').  This doesn't apply to HEAD; if that is
+	       lazy then it was not readable, but watch it anyway.  */
 	    ;
 	  else
 	    {
@@ -11487,7 +11489,7 @@ save_breakpoints (char *filename, int from_tty,
 	fprintf_unfiltered (fp, "  commands\n");
 	
 	ui_out_redirect (uiout, fp);
-	TRY_CATCH (ex, RETURN_MASK_ERROR)
+	TRY_CATCH (ex, RETURN_MASK_ALL)
 	  {
 	    print_command_lines (uiout, tp->commands->commands, 2);
 	  }
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index de0559f..7867311 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -26,6 +26,7 @@
 #include "cli-out.h"
 #include "gdb_string.h"
 #include "gdb_assert.h"
+#include "vec.h"
 
 typedef struct cli_ui_out_data cli_out_data;
 
@@ -224,11 +225,13 @@ cli_field_fmt (struct ui_out *uiout, int fldno,
 	       va_list args)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream;
 
   if (data->suppress_output)
     return;
 
-  vfprintf_filtered (data->stream, format, args);
+  stream = VEC_last (ui_filep, data->streams);
+  vfprintf_filtered (stream, format, args);
 
   if (align != ui_noalign)
     field_separator ();
@@ -238,20 +241,26 @@ static void
 cli_spaces (struct ui_out *uiout, int numspaces)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream;
 
   if (data->suppress_output)
     return;
-  print_spaces_filtered (numspaces, data->stream);
+
+  stream = VEC_last (ui_filep, data->streams);
+  print_spaces_filtered (numspaces, stream);
 }
 
 static void
 cli_text (struct ui_out *uiout, const char *string)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream;
 
   if (data->suppress_output)
     return;
-  fputs_filtered (string, data->stream);
+
+  stream = VEC_last (ui_filep, data->streams);
+  fputs_filtered (string, stream);
 }
 
 static void ATTRIBUTE_PRINTF (3, 0)
@@ -262,8 +271,13 @@ cli_message (struct ui_out *uiout, int verbosity,
 
   if (data->suppress_output)
     return;
+
   if (ui_out_get_verblvl (uiout) >= verbosity)
-    vfprintf_unfiltered (data->stream, format, args);
+    {
+      struct ui_file *stream = VEC_last (ui_filep, data->streams);
+
+      vfprintf_unfiltered (stream, format, args);
+    }
 }
 
 static void
@@ -280,25 +294,24 @@ static void
 cli_flush (struct ui_out *uiout)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream = VEC_last (ui_filep, data->streams);
 
-  gdb_flush (data->stream);
+  gdb_flush (stream);
 }
 
+/* OUTSTREAM as non-NULL will push OUTSTREAM on the stack of output streams
+   and make it therefore active.  OUTSTREAM as NULL will pop the last pushed
+   output stream; it is an internal error if it does not exist.  */
+
 static int
 cli_redirect (struct ui_out *uiout, struct ui_file *outstream)
 {
   cli_out_data *data = ui_out_data (uiout);
 
   if (outstream != NULL)
-    {
-      data->original_stream = data->stream;
-      data->stream = outstream;
-    }
-  else if (data->original_stream != NULL)
-    {
-      data->stream = data->original_stream;
-      data->original_stream = NULL;
-    }
+    VEC_safe_push (ui_filep, data->streams, outstream);
+  else
+    VEC_pop (ui_filep, data->streams);
 
   return 0;
 }
@@ -315,10 +328,11 @@ out_field_fmt (struct ui_out *uiout, int fldno,
 	       const char *format,...)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream = VEC_last (ui_filep, data->streams);
   va_list args;
 
   va_start (args, format);
-  vfprintf_filtered (data->stream, format, args);
+  vfprintf_filtered (stream, format, args);
 
   va_end (args);
 }
@@ -329,8 +343,9 @@ static void
 field_separator (void)
 {
   cli_out_data *data = ui_out_data (uiout);
+  struct ui_file *stream = VEC_last (ui_filep, data->streams);
 
-  fputc_filtered (' ', data->stream);
+  fputc_filtered (' ', stream);
 }
 
 /* This is the CLI ui-out implementation functions vector */
@@ -364,8 +379,11 @@ struct ui_out_impl cli_ui_out_impl =
 void
 cli_out_data_ctor (cli_out_data *self, struct ui_file *stream)
 {
-  self->stream = stream;
-  self->original_stream = NULL;
+  gdb_assert (stream != NULL);
+
+  self->streams = NULL;
+  VEC_safe_push (ui_filep, self->streams, stream);
+
   self->suppress_output = 0;
 }
 
@@ -385,8 +403,10 @@ struct ui_file *
 cli_out_set_stream (struct ui_out *uiout, struct ui_file *stream)
 {
   cli_out_data *data = ui_out_data (uiout);
-  struct ui_file *old = data->stream;
+  struct ui_file *old;
+  
+  old = VEC_pop (ui_filep, data->streams);
+  VEC_quick_push (ui_filep, data->streams, stream);
 
-  data->stream = stream;
   return old;
 }
diff --git a/gdb/cli-out.h b/gdb/cli-out.h
index b4cdd82..75875c4 100644
--- a/gdb/cli-out.h
+++ b/gdb/cli-out.h
@@ -22,14 +22,19 @@
 #define CLI_OUT_H
 
 #include "ui-out.h"
+#include "vec.h"
+
+/* Used for cli_ui_out_data->streams.  */
+
+typedef struct ui_file *ui_filep;
+DEF_VEC_P (ui_filep);
 
 /* These are exported so that they can be extended by other `ui_out'
    implementations, like TUI's.  */
 
 struct cli_ui_out_data
   {
-    struct ui_file *stream;
-    struct ui_file *original_stream;
+    VEC (ui_filep) *streams;
     int suppress_output;
   };
 
diff --git a/gdb/cli/cli-logging.c b/gdb/cli/cli-logging.c
index af63dcc..fc486d3 100644
--- a/gdb/cli/cli-logging.c
+++ b/gdb/cli/cli-logging.c
@@ -21,6 +21,7 @@
 #include "defs.h"
 #include "gdbcmd.h"
 #include "ui-out.h"
+#include "gdb_assert.h"
 
 #include "gdb_string.h"
 
@@ -46,6 +47,15 @@ show_logging_filename (struct ui_file *file, int from_tty,
 }
 
 static int logging_overwrite;
+
+static void
+set_logging_overwrite (char *args, int from_tty, struct cmd_list_element *c)
+{
+  if (saved_filename)
+    warning (_("Currently logging to %s.  Turn the logging off and on to "
+	       "make the new setting effective."), saved_filename);
+}
+
 static void
 show_logging_overwrite (struct ui_file *file, int from_tty,
 			struct cmd_list_element *c, const char *value)
@@ -55,7 +65,72 @@ Whether logging overwrites or appends to the log file is %s.\n"),
 		    value);
 }
 
+/* Value as configured by the user.  */
 static int logging_redirect;
+
+/* The on-disk file in use if logging is currently active together with
+   redirection turned off (and therefore using tee_file_new).  For active
+   logging with redirection the on-disk file is directly in GDB_STDOUT and
+   this variable is NULL.  */
+static struct ui_file *logging_no_redirect_file;
+
+static void
+set_logging_redirect (char *args, int from_tty, struct cmd_list_element *c)
+{
+  struct cleanup *cleanups = NULL;
+  struct ui_file *output, *new_logging_no_redirect_file;
+
+  if (saved_filename == NULL
+      || (logging_redirect != 0 && logging_no_redirect_file == NULL)
+      || (logging_redirect == 0 && logging_no_redirect_file != NULL))
+    return;
+
+  if (logging_redirect != 0)
+    {
+      gdb_assert (logging_no_redirect_file != NULL);
+
+      /* ui_out_redirect still has not been called for next gdb_stdout.  */
+      cleanups = make_cleanup_ui_file_delete (gdb_stdout);
+
+      output = logging_no_redirect_file;
+      new_logging_no_redirect_file = NULL;
+
+      if (from_tty)
+	fprintf_unfiltered (saved_output.out, "Redirecting output to %s.\n",
+			    logging_filename);
+    }
+  else
+    {
+      gdb_assert (logging_no_redirect_file == NULL);
+      output = tee_file_new (saved_output.out, 0, gdb_stdout, 0);
+      if (output == NULL)
+	perror_with_name (_("set logging"));
+      new_logging_no_redirect_file = gdb_stdout;


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [SCM]  archer-jankratochvil-entryval: Merge remote branch 'origin/master' into archer-jankratochvil-entryval
@ 2010-08-23 13:55 jkratoch
  0 siblings, 0 replies; 3+ messages in thread
From: jkratoch @ 2010-08-23 13:55 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-entryval has been updated
       via  393cd96e4cc1f470b1d10a0c309cff93bb826539 (commit)
       via  82a33011e68dd5e799925f98b5552ac14e152fc6 (commit)
       via  04e537a8357644a10f6ccb48e02ec5408ed42399 (commit)
       via  ec45ed45c51797421d2f3c29af22b0903bf7e3bd (commit)
       via  7ff4961fb8778ced9278c6cac343cfbd765ade3d (commit)
       via  958e73c5f68f7c8298be9a9587862662f82c4567 (commit)
       via  966abcb475a1dc21aa88f9147fdefc39ea31efa4 (commit)
       via  7c6ebe5837e970eb0e659192e42a45604d6bb33f (commit)
       via  97d5a52aa3bb8f421d76773cc0d726e57561eed2 (commit)
       via  93c0500f53bbf457e59e7e0786d42f0bd3cf8722 (commit)
       via  53b78a88d37ac51a998012a0a18f494944aa6f7f (commit)
       via  6b2f893c58141603b916d811944e6e1c902ffb04 (commit)
       via  282b8d8b60c3b88606a3d3c89ccd4fbd56605a29 (commit)
       via  4a574bb5a8f9edac8fb11da52ab93069b5055bca (commit)
       via  5c66b2073343c84cb1d8ba188cc5dc6e22797b78 (commit)
       via  76a171988636eddd5f3b8f742abcd76cd0b6a646 (commit)
       via  68dcd8ee59a320f57f03300c6312e18430fc9a8e (commit)
       via  f301c45a601be6dfe2c76b277d6d7f0d1e63f6f8 (commit)
      from  42edcdb9071ed3546fb8c9c62c041b3c02a9f2ae (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 393cd96e4cc1f470b1d10a0c309cff93bb826539
Merge: 42edcdb 82a3301
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Aug 23 15:55:08 2010 +0200

    Merge remote branch 'origin/master' into archer-jankratochvil-entryval

-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                      |   24 +
 bfd/configure                                      |   12 +-
 bfd/elf32-m68k.c                                   |   32 +-
 bfd/elf32-sh.c                                     |   69 ++-
 bfd/elflink.c                                      |    1 +
 bfd/merge.c                                        |    4 -
 bfd/version.h                                      |    2 +-
 config/ChangeLog                                   |    6 +
 config/stdint.m4                                   |    8 +-
 gdb/ChangeLog                                      |   52 ++
 gdb/dwarf2read.c                                   |  122 ++++-
 gdb/python/python.c                                |   22 +-
 gdb/ser-go32.c                                     |    7 +
 gdb/ser-mingw.c                                    |   41 ++-
 gdb/ser-pipe.c                                     |   33 +-
 gdb/serial.c                                       |   66 ++-
 gdb/serial.h                                       |   14 +
 gdb/testsuite/ChangeLog                            |    8 +
 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S |  632 ++++++++++++++++++++
 .../gdb.dwarf2/dw2-double-set-die-type.exp         |   41 ++
 gdb/testsuite/gdb.dwarf2/pr11465.S                 |  355 +++++++++++
 gdb/testsuite/gdb.dwarf2/pr11465.exp               |   40 ++
 gdb/version.in                                     |    2 +-
 libdecnumber/ChangeLog                             |    4 +
 libdecnumber/configure                             |   12 +-
 libiberty/ChangeLog                                |    7 +
 libiberty/pex-common.c                             |   14 +-
 27 files changed, 1516 insertions(+), 114 deletions(-)
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.S
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-double-set-die-type.exp
 create mode 100644 gdb/testsuite/gdb.dwarf2/pr11465.S
 create mode 100644 gdb/testsuite/gdb.dwarf2/pr11465.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9a52165..7ae8300 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,27 @@
+2010-08-22  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/11933
+	* elflink.c (elf_link_add_object_symbols): Don't check relocation
+	if input ELF object ID doesn't match output.
+
+2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* configure: Regenerate.
+
+2010-08-20  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* merge.c (sec_merge_emit): Revert the last checkin.
+
+2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+	* elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
+	BFD.
+
+2010-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
+
+	* elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
+	options unless an m68k hash table has been found.
+
 2010-08-20  Nick Clifton  <nickc@redhat.com>
 
 	* merge.c (sec_merge_emit): Do not zero pad sections that do not
diff --git a/bfd/configure b/bfd/configure
index 51a4158..e1ea93b 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -13264,8 +13264,7 @@ _ACEOF
 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
   case "$ac_cv_sizeof_char" in
     1) acx_cv_type_int8_t=char ;;
-    *) { as_fn_set_status please report a bug
-as_fn_error "no 8-bit type" "$LINENO" 5; }
+    *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
   esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
 $as_echo "$acx_cv_type_int8_t" >&6; }
@@ -13275,8 +13274,7 @@ $as_echo_n "checking for type equivalent to int16_t... " >&6; }
   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
     2:*) acx_cv_type_int16_t=int ;;
     *:2) acx_cv_type_int16_t=short ;;
-    *) { as_fn_set_status please report a bug
-as_fn_error "no 16-bit type" "$LINENO" 5; }
+    *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
   esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
 $as_echo "$acx_cv_type_int16_t" >&6; }
@@ -13286,8 +13284,7 @@ $as_echo_n "checking for type equivalent to int32_t... " >&6; }
   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
     4:*) acx_cv_type_int32_t=int ;;
     *:4) acx_cv_type_int32_t=long ;;
-    *) { as_fn_set_status please report a bug
-as_fn_error "no 32-bit type" "$LINENO" 5; }
+    *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
   esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
 $as_echo "$acx_cv_type_int32_t" >&6; }
@@ -13314,8 +13311,7 @@ $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
     2) acx_cv_type_intptr_t=int16_t ;;
     4) acx_cv_type_intptr_t=int32_t ;;
     8) acx_cv_type_intptr_t=int64_t ;;
-    *) { as_fn_set_status please report a bug
-as_fn_error "no equivalent for intptr_t" "$LINENO" 5; }
+    *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
   esac
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
 $as_echo "$acx_cv_type_intptr_t" >&6; }
diff --git a/bfd/elf32-m68k.c b/bfd/elf32-m68k.c
index c0a5ef1..975207f 100644
--- a/bfd/elf32-m68k.c
+++ b/bfd/elf32-m68k.c
@@ -4745,34 +4745,44 @@ void
 bfd_elf_m68k_set_target_options (struct bfd_link_info *info, int got_handling)
 {
   struct elf_m68k_link_hash_table *htab;
-
-  htab = elf_m68k_hash_table (info);
+  bfd_boolean use_neg_got_offsets_p;
+  bfd_boolean allow_multigot_p;
+  bfd_boolean local_gp_p;
 
   switch (got_handling)
     {
     case 0:
       /* --got=single.  */
-      htab->local_gp_p = FALSE;
-      htab->use_neg_got_offsets_p = FALSE;
-      htab->allow_multigot_p = FALSE;
+      local_gp_p = FALSE;
+      use_neg_got_offsets_p = FALSE;
+      allow_multigot_p = FALSE;
       break;
 
     case 1:
       /* --got=negative.  */
-      htab->local_gp_p = TRUE;
-      htab->use_neg_got_offsets_p = TRUE;
-      htab->allow_multigot_p = FALSE;
+      local_gp_p = TRUE;
+      use_neg_got_offsets_p = TRUE;
+      allow_multigot_p = FALSE;
       break;
 
     case 2:
       /* --got=multigot.  */
-      htab->local_gp_p = TRUE;
-      htab->use_neg_got_offsets_p = TRUE;
-      htab->allow_multigot_p = TRUE;
+      local_gp_p = TRUE;
+      use_neg_got_offsets_p = TRUE;
+      allow_multigot_p = TRUE;
       break;
 
     default:
       BFD_ASSERT (FALSE);
+      return;
+    }
+
+  htab = elf_m68k_hash_table (info);
+  if (htab != NULL)
+    {
+      htab->local_gp_p = local_gp_p;
+      htab->use_neg_got_offsets_p = use_neg_got_offsets_p;
+      htab->allow_multigot_p = allow_multigot_p;
     }
 }
 
diff --git a/bfd/elf32-sh.c b/bfd/elf32-sh.c
index a4fdd70..e48017e 100644
--- a/bfd/elf32-sh.c
+++ b/bfd/elf32-sh.c
@@ -3929,47 +3929,48 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
   Elf_Internal_Shdr *symtab_hdr;
   struct elf_link_hash_entry **sym_hashes;
   Elf_Internal_Rela *rel, *relend;
-  bfd *dynobj;
+  bfd *dynobj = NULL;
   bfd_vma *local_got_offsets;
-  asection *sgot;
-  asection *sgotplt;
-  asection *splt;
-  asection *sreloc;
-  asection *srelgot;
+  asection *sgot = NULL;
+  asection *sgotplt = NULL;
+  asection *splt = NULL;
+  asection *sreloc = NULL;
+  asection *srelgot = NULL;
   bfd_boolean is_vxworks_tls;
   unsigned isec_segment, got_segment, plt_segment, check_segment[2];
+  bfd_boolean fdpic_p = FALSE;
 
   BFD_ASSERT (is_sh_elf (input_bfd));
 
   htab = sh_elf_hash_table (info);
-  if (htab == NULL)
-    return FALSE;
+  if (htab != NULL)
+    {
+      dynobj = htab->root.dynobj;
+      sgot = htab->sgot;
+      sgotplt = htab->sgotplt;
+      splt = htab->splt;
+      fdpic_p = htab->fdpic_p;
+    }
   symtab_hdr = &elf_symtab_hdr (input_bfd);
   sym_hashes = elf_sym_hashes (input_bfd);
-  dynobj = htab->root.dynobj;
   local_got_offsets = elf_local_got_offsets (input_bfd);
 
   isec_segment = sh_elf_osec_to_segment (output_bfd,
 					 input_section->output_section);
-  if (htab->fdpic_p && htab->sgot)
+  if (fdpic_p && sgot)
     got_segment = sh_elf_osec_to_segment (output_bfd,
-					  htab->sgot->output_section);
+					  sgot->output_section);
   else
     got_segment = -1;
-  if (htab->fdpic_p && htab->splt)
+  if (fdpic_p && splt)
     plt_segment = sh_elf_osec_to_segment (output_bfd,
-					  htab->splt->output_section);
+					  splt->output_section);
   else
     plt_segment = -1;
 
-  sgot = htab->sgot;
-  sgotplt = htab->sgotplt;
-  splt = htab->splt;
-  sreloc = NULL;
-  srelgot = NULL;
   /* We have to handle relocations in vxworks .tls_vars sections
      specially, because the dynamic loader is 'weird'.  */
-  is_vxworks_tls = (htab->vxworks_p && info->shared
+  is_vxworks_tls = (htab && htab->vxworks_p && info->shared
 		    && !strcmp (input_section->output_section->name,
 				".tls_vars"));
 
@@ -4147,7 +4148,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	    {
 	      bfd_boolean dyn;
 
-	      dyn = htab->root.dynamic_sections_created;
+	      dyn = htab ? htab->root.dynamic_sections_created : FALSE;
 	      sec = h->root.u.def.section;
 	      /* In these cases, we don't need the relocation value.
 		 We check specially because in some obscure cases
@@ -4461,7 +4462,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 		  outrel.r_addend = addend;
 		}
 #endif
-	      else if (htab->fdpic_p
+	      else if (fdpic_p
 		       && (h == NULL
 			   || ((info->symbolic || h->dynindx == -1)
 			       && h->def_regular)))
@@ -4515,12 +4516,14 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	      if (! relocate)
 		continue;
 	    }
-	  else if (htab->fdpic_p && !info->shared
+	  else if (fdpic_p && !info->shared
 		   && r_type == R_SH_DIR32
 		   && (input_section->flags & SEC_ALLOC) != 0)
 	    {
 	      bfd_vma offset;
 
+	      BFD_ASSERT (htab);
+
 		if (sh_elf_osec_readonly_p (output_bfd,
 					    input_section->output_section))
 		  {
@@ -4569,6 +4572,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	  /* Relocation is to the entry for this symbol in the global
 	     offset table extension for the procedure linkage table.  */
 
+	  BFD_ASSERT (htab);
 	  BFD_ASSERT (sgotplt != NULL);
 	  relocation = (sgotplt->output_offset
 			+ (get_plt_index (htab->plt_info, h->plt.offset)
@@ -4594,6 +4598,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	  /* Relocation is to the entry for this symbol in the global
 	     offset table.  */
 
+	  BFD_ASSERT (htab);
 	  BFD_ASSERT (sgot != NULL);
 	  check_segment[0] = check_segment[1] = -1;
 
@@ -4652,7 +4657,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 
 		      /* If we initialize the GOT entry here with a valid
 			 symbol address, also add a fixup.  */
-		      if (htab->fdpic_p && !info->shared
+		      if (fdpic_p && !info->shared
 			  && sh_elf_hash_entry (h)->got_type == GOT_NORMAL
 			  && (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
 			      || h->root.type != bfd_link_hash_undefweak))
@@ -4713,7 +4718,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 		      outrel.r_offset = (sgot->output_section->vma
 					 + sgot->output_offset
 					 + off);
-		      if (htab->fdpic_p)
+		      if (fdpic_p)
 			{
 			  int dynindx
 			    = elf_section_data (sec->output_section)->dynindx;
@@ -4730,7 +4735,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 		      loc += srelgot->reloc_count++ * sizeof (Elf32_External_Rela);
 		      bfd_elf32_swap_reloca_out (output_bfd, &outrel, loc);
 		    }
-		  else if (htab->fdpic_p
+		  else if (fdpic_p
 			   && (sh_elf_local_got_type (input_bfd) [r_symndx]
 			       == GOT_NORMAL))
 		    sh_elf_add_rofixup (output_bfd, htab->srofixup,
@@ -4775,6 +4780,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	     we place at the start of the .got.plt section.  This is the same
 	     as the start of the output .got section, unless there are function
 	     descriptors in front of it.  */
+	  BFD_ASSERT (htab);
 	  BFD_ASSERT (sgotplt != NULL);
 	  check_segment[0] = got_segment;
 	  relocation -= sgotplt->output_section->vma + sgotplt->output_offset
@@ -4875,6 +4881,8 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	    bfd_vma reloc_offset;
 	    int reloc_type = R_SH_FUNCDESC;
 
+	    BFD_ASSERT (htab);
+
 	    check_segment[0] = check_segment[1] = -1;
 
 	    /* FIXME: See what FRV does for global symbols in the
@@ -4892,7 +4900,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	      }
 	    else
 	      {
-		reloc_section = htab->sgot;
+		reloc_section = sgot;
 
 		if (h != NULL)
 		  reloc_offset = h->got.offset;
@@ -5087,6 +5095,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	     executable and --export-dynamic.  If such symbols get
 	     ld.so-allocated descriptors we can not use R_SH_GOTOFFFUNCDESC
 	     for them.  */
+	  BFD_ASSERT (htab);
 
 	  check_segment[0] = check_segment[1] = -1;
 	  relocation = 0;
@@ -5139,8 +5148,8 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	      relocation = htab->sfuncdesc->output_offset + (offset & ~1);
 	    }
 
-	  relocation -= htab->root.hgot->root.u.def.value
-	    + htab->sgotplt->output_offset;
+	  relocation -= (htab->root.hgot->root.u.def.value
+			 + sgotplt->output_offset);
 #ifdef GOT_BIAS
 	  relocation -= GOT_BIAS;
 #endif
@@ -5175,6 +5184,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 
 	case R_SH_TLS_GD_32:
 	case R_SH_TLS_IE_32:
+	  BFD_ASSERT (htab);
 	  check_segment[0] = check_segment[1] = -1;
 	  r_type = sh_elf_optimized_tls_reloc (info, r_type, h == NULL);
 	  got_type = GOT_UNKNOWN;
@@ -5425,6 +5435,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	  goto final_link_relocate;
 
 	case R_SH_TLS_LD_32:
+	  BFD_ASSERT (htab);
 	  check_segment[0] = check_segment[1] = -1;
 	  if (! info->shared)
 	    {
@@ -5558,7 +5569,7 @@ sh_elf_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
 	}
 
     relocation_done:
-      if (htab->fdpic_p && check_segment[0] != (unsigned) -1
+      if (fdpic_p && check_segment[0] != (unsigned) -1
 	  && check_segment[0] != check_segment[1])
 	{
 	  /* We don't want duplicate errors for undefined symbols.  */
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 074229f..2f67c47 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -4791,6 +4791,7 @@ error_free_dyn:
   if (! dynamic
       && is_elf_hash_table (htab)
       && bed->check_relocs != NULL
+      && elf_object_id (abfd) == elf_hash_table_id (htab)
       && (*bed->relocs_compatible) (abfd->xvec, info->output_bfd->xvec))
     {
       asection *o;
diff --git a/bfd/merge.c b/bfd/merge.c
index 180af26..7aa088f 100644
--- a/bfd/merge.c
+++ b/bfd/merge.c
@@ -307,9 +307,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
       len = -off & (entry->alignment - 1);
       if (len != 0)
 	{
-	  /* We should never have an entry with an alignment
-	     greater than the section's alignment.  */
-	  BFD_ASSERT (len <= (bfd_size_type) (1 << alignment_power));
 	  if (bfd_bwrite (pad, len, abfd) != len)
 	    goto err;
 	  off += len;
@@ -327,7 +324,6 @@ sec_merge_emit (bfd *abfd, struct sec_merge_hash_entry *entry)
   /* Trailing alignment needed?  */
   off = sec->size - off;
   if (off != 0
-      && alignment_power
       && bfd_bwrite (pad, off, abfd) != off)
     goto err;
 
diff --git a/bfd/version.h b/bfd/version.h
index c5ed0ea..8b5e999 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20100820
+#define BFD_VERSION_DATE 20100823
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff --git a/config/ChangeLog b/config/ChangeLog
index 41c66e9..22a3641 100644
--- a/config/ChangeLog
+++ b/config/ChangeLog
@@ -1,3 +1,9 @@
+2010-08-21  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	PR target/45084
+	* stdint.m4 (GCC_HEADER_STDINT): Use m4 quotes for arguments
+	of AC_MSG_ERROR.
+
 2010-07-02  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
 
 	* gc++filt.m4: New file.
diff --git a/config/stdint.m4 b/config/stdint.m4
index d63081d..fbdd586 100644
--- a/config/stdint.m4
+++ b/config/stdint.m4
@@ -146,7 +146,7 @@ if test $acx_cv_header_stdint = stddef.h; then
   AC_MSG_CHECKING(for type equivalent to int8_t)
   case "$ac_cv_sizeof_char" in
     1) acx_cv_type_int8_t=char ;;
-    *) AC_MSG_ERROR(no 8-bit type, please report a bug)
+    *) AC_MSG_ERROR([no 8-bit type, please report a bug])
   esac
   AC_MSG_RESULT($acx_cv_type_int8_t)
 
@@ -154,7 +154,7 @@ if test $acx_cv_header_stdint = stddef.h; then
   case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
     2:*) acx_cv_type_int16_t=int ;;
     *:2) acx_cv_type_int16_t=short ;;
-    *) AC_MSG_ERROR(no 16-bit type, please report a bug)
+    *) AC_MSG_ERROR([no 16-bit type, please report a bug])
   esac
   AC_MSG_RESULT($acx_cv_type_int16_t)
 
@@ -162,7 +162,7 @@ if test $acx_cv_header_stdint = stddef.h; then
   case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
     4:*) acx_cv_type_int32_t=int ;;
     *:4) acx_cv_type_int32_t=long ;;
-    *) AC_MSG_ERROR(no 32-bit type, please report a bug)
+    *) AC_MSG_ERROR([no 32-bit type, please report a bug])
   esac
   AC_MSG_RESULT($acx_cv_type_int32_t)
 fi
@@ -185,7 +185,7 @@ if test "$ac_cv_type_uintptr_t" != yes; then
     2) acx_cv_type_intptr_t=int16_t ;;
     4) acx_cv_type_intptr_t=int32_t ;;
     8) acx_cv_type_intptr_t=int64_t ;;
-    *) AC_MSG_ERROR(no equivalent for intptr_t, please report a bug)
+    *) AC_MSG_ERROR([no equivalent for intptr_t, please report a bug])
   esac
   AC_MSG_RESULT($acx_cv_type_intptr_t)
 fi
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 5fe8c64..e74be97 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,55 @@
+2010-08-20  Pedro Alves  <pedro@codesourcery.com>
+
+	* python/python.c: Include "serial.h".
+	(gdbpy_event_fds): Change type to `struct serial *' a array from
+	int array.
+	(gdbpy_run_events): Change parameters.  Use serial_readchar in
+	place of read.
+	(gdbpy_post_event): Use serial_write in place of write.
+	(gdbpy_initialize_events): Use serial_pipe instead of pipe, and
+	serial_async in place of add_file_handler.
+
+2010-08-20  Pedro Alves  <pedro@codesourcery.com>
+
+	* serial.h (gdb_pipe, serial_pipe): Declare.
+	* serial.c (serial_interface_lookup): Take a const char pointer.
+	(serial_fdopen): Rename to ...
+	(serial_fdopen_ops): ... this.  Add an OPS parameter and use it.
+	Call the OPS' fdopen function if there is one.
+	(serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
+	(serial_pipe): New.
+	(struct serial_ops) <fdopen>: New field.
+
+	* ser-mingw.c (free_pipe_state):
+	(free_pipe_state): Close output on non-pex pipes.
+	(pipe_windows_fdopen): New.
+	(gdb_pipe): New.
+	(_initialize_ser_windows): Register pipe_windows_fdopen.
+	* ser-go32.c (gdb_pipe): New.
+	* ser-pipe.c (pipe_close): Close file descriptor even if there's
+	no state pointer.
+	(pipe_ops): Delete.
+	(gdb_pipe): New.
+
+2010-08-20  Keith Seitz  <keiths@redhat.com>
+
+	PR symtab/11465:
+ 	* dwarf2read.c (struct delayed_method_info): New struct.
+	(struct dwarf2_cu): Add vector method_list.
+	(scan_partial_symbols): Count methods for union, class, structure,
+	and interface types.
+	(add_to_method_list): New function.
+	(free_delayed_list): New function.


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-09-04 20:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-02 15:07 [SCM] archer-jankratochvil-entryval: Merge remote branch 'origin/master' into archer-jankratochvil-entryval jkratoch
  -- strict thread matches above, loose matches on Subject: below --
2010-09-04 20:02 jkratoch
2010-08-23 13:55 jkratoch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).