public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-01-10 23:26 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-01-10 23:26 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  fb2f150dc840dab31f4c322e44d0d22780c2f909 (commit)
       via  cca7c7b2f839db7ef38bbdafb32925548e5b5735 (commit)
       via  69f6bc73a02f2a4d2f1125082dbcf3f5774539f7 (commit)
       via  b3b0cb4d915852276dbc8ace1556565d19d48a87 (commit)
       via  7a56a2c458cc543b6afc9db2dc3aefceedfbc51c (commit)
       via  dda21c0c8bc20cbaa85e2b24a7dfd7c4c0ce394e (commit)
       via  2e95d670cb8ca9b13c88fa6adbc7baef9239d0ea (commit)
       via  7cf22d1d6c85d9b75935dc65af7e12a609209424 (commit)
       via  51e678e7efcbe1e933d970491c733d84becb6768 (commit)
       via  58f8992d79a305a8427d5f592d0ccad451810d87 (commit)
       via  5ff7044261fce3ced393828fe0ed3cf66cf99651 (commit)
       via  9ae07e44039acecbd6047f49907b47131ebae43e (commit)
       via  784c173fcf9c84e1963a573a951291ef83054009 (commit)
       via  91394ed36ab2a6859c9be169f0eb5fccf0e95559 (commit)
       via  5f86b229221212b4c1c52869539798a25cc09455 (commit)
       via  7540d7a5126e83863832aaf8dfb88acdd77775ed (commit)
       via  1e70e6d6733c989b0f62aa4b90e9ca3e31fd601c (commit)
       via  91b400cbb0793ce12e724d0a74c20b2b69ba886a (commit)
       via  f53d9973143fcc59408221cff3695913a733c9d8 (commit)
       via  dfa92f2938a8a455558975906ac4fc6fab1994a9 (commit)
       via  113dc1139de965378886f0cda76aadcac0fc700c (commit)
       via  73b561a36d0072895e39cc25b599180f64bb8358 (commit)
       via  5e5bd1d1aaec8c5dc2d017559310c5d3b1f7e941 (commit)
       via  251821d85bf51b64556ffa53496f8d5b717d1b28 (commit)
       via  fc7825b81de334217f74fb3206bfc793cfa6d426 (commit)
       via  72e31e9dbd9ef0b29f4c217d0e4ec62a8240ed68 (commit)
       via  036999d0a933897c90eedebb8561fd61fe53b9e9 (commit)
       via  7002b113b9e2afed981d3eb9d4157c98a3a3c447 (commit)
       via  8ee6a98bd6643233f00f0c91693ea6a571d54182 (commit)
       via  21f684e3486b49b52365d0e6e012067f75c53a04 (commit)
       via  a296a0ecadd622bf0f1484bd0027196dea637915 (commit)
       via  f1aba448dbe81323a66229bee669b96c1975c092 (commit)
       via  427836f3214de2556bf2058fcbc34406ff8ce095 (commit)
       via  0859dc381bc745337a127755d33638f183e3f75d (commit)
       via  60e49fc0d2c1cb723806c540588a9fc9dc45f779 (commit)
       via  81592205b450e76260e628188cc24720d9d33a9d (commit)
       via  dcc61fc257100b0742340b450af4f958b138673d (commit)
       via  befd85e74b156e716882e75fdbd68ec5b07db36a (commit)
       via  a32f5f7e42cd949873aeb19f97e5308c8cb11a24 (commit)
       via  127bbf3a1da05460653cdc725da8b835cb3e4b28 (commit)
       via  e90465bc2f297fd8ad13589444565e33bc523ee5 (commit)
       via  c401d0f0d9ecf583e1ba7f3615843e6b990af2ee (commit)
       via  db684da85b5b658f953ed0bfa8a0dbd6b94b6222 (commit)
       via  edaa5febe3edb1e9cddeb2ac7600849553d5eb8f (commit)
       via  52e43ba70a07811d551d2c688fd75ce8fd5f8f51 (commit)
       via  10871c6b8a336f2b146936bdb760e5c60974638d (commit)
       via  03738d56d907cc637dc5d598fd733fe9dff3a8d1 (commit)
       via  a5061bc7b92b8e0047c1c8b8c22fb5446b859a1b (commit)
       via  4b91d20df87a5bbdf4d0921548e43a3a9d859fde (commit)
       via  7515bba947f7024128d2e7781ade7103f3e06ef8 (commit)
       via  f3c58c5f3e59ede0c7dcc1a0e6679357a3ffee3f (commit)
      from  36c59ca86e4ed5765b3fef856ca5269084e0c20e (commit)

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

- Log -----------------------------------------------------------------
commit fb2f150dc840dab31f4c322e44d0d22780c2f909
Merge: cca7c7b2f839db7ef38bbdafb32925548e5b5735 69f6bc73a02f2a4d2f1125082dbcf3f5774539f7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Jan 11 00:23:33 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

commit cca7c7b2f839db7ef38bbdafb32925548e5b5735
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Jan 11 00:22:13 2009 +0100

    Move the `type' garbage collector down from archer-jankratochvil-vla, approx.
    commits:
    16a63ebc3925d782f3df69b4159b8ef29c7ecc0d
    eef2176b1a600542410faa676c336726f5c2a8c2
    204d89c72980d5576c9db996a88349ab154a66e7

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

Summary of changes:
 bfd/ChangeLog                              |    9 +
 bfd/elf32-cris.c                           |   10 +-
 bfd/version.h                              |    2 +-
 gdb/CONTRIBUTE                             |    3 +-
 gdb/ChangeLog                              |  171 +
 gdb/MAINTAINERS                            |    2 +
 gdb/Makefile.in                            |    4 +-
 gdb/arch-utils.c                           |    8 +-
 gdb/breakpoint.c                           |  151 +-
 gdb/cli/cli-cmds.c                         |    2 +-
 gdb/coff-pe-read.c                         |   25 +-
 gdb/config/pa/linux.mh                     |    1 -
 gdb/corefile.c                             |    5 +-
 gdb/defs.h                                 |    2 -
 gdb/doc/ChangeLog                          |   14 +
 gdb/doc/gdb.texinfo                        |   35 +-
 gdb/doc/gdbint.texinfo                     |   14 +-
 gdb/event-top.c                            |    4 +-
 gdb/exec.c                                 |   11 +-
 gdb/f-typeprint.c                          |    3 +-
 gdb/gdbarch.c                              |  318 +-
 gdb/gdbarch.sh                             |   26 +-
 gdb/gdbtypes.c                             |  311 +-
 gdb/gdbtypes.h                             |   33 +-
 gdb/infrun.c                               |    1 -
 gdb/interps.c                              |    1 -
 gdb/mi/mi-main.c                           |    1 +
 gdb/remote-sim.c                           |   17 +-
 gdb/ser-mingw.c                            |    2 +-
 gdb/symfile.c                              |    1 +
 gdb/testsuite/ChangeLog                    |    9 +
 gdb/testsuite/gdb.fortran/derived-type.exp |   61 +-
 gdb/testsuite/gdb.fortran/subarray.exp     |   58 +-
 gdb/top.c                                  |    9 +-
 gdb/utils.c                                |   11 +-
 gdb/value.c                                |   28 +-
 gdb/varobj.c                               |    2 +-
 gdb/version.in                             |    2 +-
 gdb/win32-nat.c                            |   81 +-
 include/gdb/ChangeLog                      |    5 +
 include/gdb/callback.h                     |    6 +-
 include/opcode/ChangeLog                   |    5 +
 include/opcode/ppc.h                       |    8 +-
 libiberty/ChangeLog                        |    9 +
 libiberty/cp-demangle.c                    |   17 +-
 opcodes/ChangeLog                          |   54 +
 opcodes/i386-gen.c                         |   89 +-
 opcodes/i386-init.h                        |  106 +-
 opcodes/i386-opc.h                         |   22 +-
 opcodes/i386-opc.tbl                       |   17 +-
 opcodes/i386-tbl.h                         | 3558 ++++++++--------
 opcodes/ppc-opc.c                          | 6202 ++++++++++++++--------------
 sim/ChangeLog                              |   17 +
 sim/common/ChangeLog                       |   11 +
 sim/common/callback.c                      |    6 +-
 sim/common/cgen-ops.h                      |   42 +-
 sim/common/sim-io.h                        |    4 +-
 sim/cris/traps.c                           |   75 +-
 sim/frv/ChangeLog                          |    4 +
 sim/frv/sem.c                              |  108 +-
 sim/testsuite/ChangeLog                    |    5 +
 sim/testsuite/sim/cris/c/hellodyn3.c       |    9 +
 sim/testsuite/sim/cris/c/mmap5.c           |   91 +
 sim/testsuite/sim/cris/c/mmap6.c           |    8 +
 sim/testsuite/sim/cris/c/mmap7.c           |   14 +
 sim/testsuite/sim/cris/c/mmap8.c           |    9 +
 66 files changed, 6291 insertions(+), 5658 deletions(-)
 create mode 100644 sim/testsuite/sim/cris/c/hellodyn3.c
 create mode 100644 sim/testsuite/sim/cris/c/mmap5.c
 create mode 100644 sim/testsuite/sim/cris/c/mmap6.c
 create mode 100644 sim/testsuite/sim/cris/c/mmap7.c
 create mode 100644 sim/testsuite/sim/cris/c/mmap8.c

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c114076..da237ce 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
+	<case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
+	the program, the known offset starts at the negative size of the
+	TLS section.
+	<case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
+	Similar.
+
 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
 
 	* config.bfd: Add lm32-*-rtems*.
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index ea268fc..dbc00ba 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1721,8 +1721,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	      bfd_vma off;
 
 	      /* The symbol is defined in the program, so just write
-		 (1, known_tpoffset) into the GOT.  */
+		 (1, -prog_tls_size+known_tpoffset) into the GOT.  */
 	      relocation -= elf_hash_table (info)->tls_sec->vma;
+	      relocation -= elf_hash_table (info)->tls_sec->size;
 
 	      if (h != NULL)
 		{
@@ -1872,8 +1873,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	      bfd_vma off;
 
 	      /* The symbol is defined in the program, so just write
-		 the known_tpoffset into the GOT.  */
+		 the -prog_tls_size+known_tpoffset into the GOT.  */
 	      relocation -= elf_hash_table (info)->tls_sec->vma;
+	      relocation -= elf_hash_table (info)->tls_sec->size;
 
 	      if (h != NULL)
 		off = h->got.offset;
@@ -2001,7 +2003,9 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 
 	  /* NULL if we had an error.  */
 	  relocation -= elf_hash_table (info)->tls_sec == NULL
-	    ? 0 : elf_hash_table (info)->tls_sec->vma;
+	    ? 0
+	    : (elf_hash_table (info)->tls_sec->vma
+	       + elf_hash_table (info)->tls_sec->size);
 
 	  /* The TLS-relative offset is the relocation.  */
 	  break;
diff --git a/bfd/version.h b/bfd/version.h
index 65dbb42..2bde24f 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20090106
+#define BFD_VERSION_DATE 20090110
 #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/gdb/CONTRIBUTE b/gdb/CONTRIBUTE
index 67a2ed4..75b6ddf 100644
--- a/gdb/CONTRIBUTE
+++ b/gdb/CONTRIBUTE
@@ -49,7 +49,8 @@ o	Copyright Assignment
 	taking care of your contributions) to obtain the relevant
 	forms.
 
-	Small changes can be accepted without a copyright assignment form on file.
+        Small changes can be accepted without a copyright assignment form
+        on file.
 
 	Ref: http://www.gnu.org/prep/maintain.html#SEC6
 
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 8c93b4a..9ceec2b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,174 @@
+2009-01-09  Andreas Schwab  <schwab@suse.de>
+
+	* Makefile.in (init.c): Set LANG/LC_ALL to C, not c.
+
+2009-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* gdbtypes.c (append_composite_type_field): Correct the location of
+	appended fields.
+
+2009-01-09  Pedro Alves  <pedro@codesourcery.com>
+
+	* defs.h (deprecated_error_hook): Delete declaration.
+	* interps.c (clear_interpreter_hooks): Adjust.
+	* remote-sim.c (gdb_os_error): Don't try to call
+	deprecated_error_hook.  No need to call exit anymore.
+	* top.c (deprecated_error_hook): Delete.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* arch-utils.c (gdbarch_update_p): Use host_address_to_string
+	to print the address of the gdbarch pointer.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* gdbarch.sh: Fix all the compilation errors on amd64-windows
+	due to casting a pointer to a long when printing a function
+	address. Instead, use host_address_to_string to convert our
+	address to a string.
+	* gdbarch.c: Regenerate.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* event-top.c (async_disconnect, async_stop_sig): use "raise"
+	instead of "kill" to raise a signal.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (get_module_name): Change the type of parameter
+	"base_address" to LPVOID.  Remove unnecessary cast.
+	(struct lm_info): Change type of load_addr to LPVOID.
+	(win32_make_so): Change the type of parameter "load_addr"
+	to LPVOID.  Remove some unnecessary casts.
+	(handle_unload_dll): Change the type of "lpBaseOfDll" to LPVOID.
+	(win32_xfer_shared_libraries): Add missing cast.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (has_detach_ability, set_process_privilege):
+	Cast the result of GetProcAddress to (void *) to avoid
+	a compilation warning.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (CONTEXT_EXTENDED_REGISTERS): Define to 0 if not
+	already defined.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (get_image_name, win32_xfer_memory): Fix type
+	definition of local variable "done".
+	(info_w32_command, handle_exception): Remove unnecessary cast.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (kernel32_DebugSetProcessKillOnExit): Renames
+	DebugSetProcessKillOnExit.  Update all uses in this file.
+	(kernel32_DebugActiveProcessStop): Renames DebugActiveProcessStop.
+	Update all uses in this file.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* win32-nat.c (do_initial_win32_stuff): Add new ops parameter,
+	and use it when pushing the target.
+	(win32_attach, win32_create_inferior): Update call to
+	do_initial_win32_stuff.
+	(win32_detach, win32_mourn_inferior): Use our ops parameter
+	instead of the global win32_ops to unpush the target.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* ser-mingw.c (ser_windows_open): Use proper type when casting
+	in call to _open_osfhandle.
+
+2009-01-09  Kai Tietz  <kai.tietz@onevision.com>
+
+	* coff-pe-read.c (read_pe_exported_syms): Fix typo.
+
+2009-01-09  Joel Brobecker  <brobecker@adacore.com>
+
+	* CONTRIBUTE: Minor reformatting.
+
+2009-01-08  Kai Tietz  <kai.tietz@onevision.com>
+
+	* MAINTAINERS: Add myself to Write After Approval.
+	* coff-pe-read.c (read_pe_exported_syms): Enable read of PE+
+	export directory.
+
+2009-01-08  Nathan Froyd  <froydnj@codesourcery.com>
+
+	* remote-sim.c (gdb_os_error): Mark as a noreturn function.
+	Call exit to make it obvious to GCC.
+
+2009-01-08  Tom Tromey  <tromey@redhat.com>
+
+	PR breakpoints/9350:
+	* varobj.c (varobj_invalidate): Unconditionally free
+	all_rootvarobj.
+	* symfile.c (syms_from_objfile): Free local_addr when returning
+	normally.
+	* exec.c (exec_file_attach): Do cleanups before returning.
+	(exec_file_command): Likewise.
+	* corefile.c (reopen_exec_file): Do cleanups before returning.
+	* breakpoint.c (insert_breakpoint_locations): Do cleanups before
+	returning. 
+	(do_vec_free): New function.
+	(update_global_location_list): Make a cleanup for old_locations.
+	Do cleanups before returning.  Remove unused variable 'e'.
+	(find_condition_and_thread): Free result of parsing the
+	expression.
+	(print_it_typical): Do cleanups before returning.
+	(breakpoint_re_set_one): Always free sals.sals.
+
+2009-01-08  Joel Brobecker  <brobecker@adacore.com>
+	    Emi Suzuki  <emi-suzuki@tjsys.co.jp>
+ 
+	* breakpoint.c (do_enable_breakpoint): Use update_watchpoint for
+	watchpoints.
+
+2009-01-07  Doug Evans  <dje@google.com>
+
+	* top.c (gdb_prompt_string): Delete, unused.
+
+2009-01-07  Pedro Alves  <pedro@codesourcery.com>
+
+	Delete ONE_PROCESS_WRITETEXT leftovers.
+
+	* breakpoint.c (insert_bp_location): Delete process_warning
+	argument.  Adjust.
+	(insert_breakpoint_locations): Adjust.
+	(reattach_breakpoints): Adjust.
+	* infrun.c (normal_stop): Drop "It might be running in another
+	process" notice.
+
+2009-01-07  Stan Shebs  <stan@codesourcery.com>
+
+	* config/pa/linux.mh (XDEPFILES): Remove.
+
+2009-01-07  Doug Evans  <dje@google.com>
+
+	* cli/cli-cmds.c (set_debug): Fix cut-n-paste error.
+
+2009-01-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* f-typeprint.c (f_type_print_base <TYPE_CODE_STRUCT>): Fix output
+	spacing, a regression from 2008-04-22.
+
+2009-01-07  Joel Brobecker  <brobecker@adacore.com>
+
+	* utils.c (gdb_print_host_address): Adjust implementation to
+	reuse host_address_to_string. Move comment explaining the conversion
+	from host address to string from here...
+	(host_address_to_string): ... to there.
+
+2009-01-07  Emi Suzuki  <emi-suzuki@tjsys.co.jp>
+
+	* MAINTAINERS: Add myself for write after approval privileges.
+
+2009-01-06  Tom Tromey  <tromey@redhat.com>
+
+	* value.c (set_internalvar): Use value_free, not xfree.
+
 2009-01-06  Jim Blandy  <jimb@red-bean.com>
 
 	Check return values of functions declared with warn_unused_result
diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS
index d599826..672d5f7 100644
--- a/gdb/MAINTAINERS
+++ b/gdb/MAINTAINERS
@@ -580,10 +580,12 @@ Jackie Smith Cashion				jsmith@redhat.com
 Michael Snyder					msnyder@vmware.com
 Petr Sorfa					petrs@caldera.com
 Andrew Stubbs					ams@codesourcery.com
+Emi Suzuki					emi-suzuki@tjsys.co.jp
 Ian Lance Taylor				ian@airs.com
 Gary Thomas					gthomas@redhat.com
 Jason Thorpe					thorpej@netbsd.org
 Caroline Tice					ctice@apple.com
+Kai Tietz					kai.tietz@onevision.com
 Tom Tromey					tromey@redhat.com
 David Ung					davidu@mips.com
 D Venkatasubramanian				dvenkat@noida.hcltech.com
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 14eaa37..2fe2d7a 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -1011,8 +1011,8 @@ init.c: $(INIT_FILES)
 	@rm -f init.c-tmp init.l-tmp
 	@touch init.c-tmp
 	@echo gdbtypes > init.l-tmp
-	@-LANG=c ; export LANG ; \
-	LC_ALL=c ; export LC_ALL ; \
+	@-LANG=C ; export LANG ; \
+	LC_ALL=C ; export LC_ALL ; \
 	echo $(INIT_FILES) | \
 	tr ' ' '\012' | \
 	sed \
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index 41c4933..c1ea9da 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -495,8 +495,8 @@ gdbarch_update_p (struct gdbarch_info info)
     {
       if (gdbarch_debug)
 	fprintf_unfiltered (gdb_stdlog, "gdbarch_update_p: "
-			    "Architecture 0x%08lx (%s) unchanged\n",
-			    (long) new_gdbarch,
+			    "Architecture %s (%s) unchanged\n",
+			    host_address_to_string (new_gdbarch),
 			    gdbarch_bfd_arch_info (new_gdbarch)->printable_name);
       return 1;
     }
@@ -504,8 +504,8 @@ gdbarch_update_p (struct gdbarch_info info)
   /* It's a new architecture, swap it in.  */
   if (gdbarch_debug)
     fprintf_unfiltered (gdb_stdlog, "gdbarch_update_p: "
-			"New architecture 0x%08lx (%s) selected\n",
-			(long) new_gdbarch,
+			"New architecture %s (%s) selected\n",
+			host_address_to_string (new_gdbarch),
 			gdbarch_bfd_arch_info (new_gdbarch)->printable_name);
   deprecated_current_gdbarch_select_hack (new_gdbarch);
 
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2e25490..65bbca9 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -1029,14 +1029,14 @@ should_be_inserted (struct bp_location *bpt)
 
 /* Insert a low-level "breakpoint" of some type.  BPT is the breakpoint.
    Any error messages are printed to TMP_ERROR_STREAM; and DISABLED_BREAKS,
-   PROCESS_WARNING, and HW_BREAKPOINT_ERROR are used to report problems.
+   and HW_BREAKPOINT_ERROR are used to report problems.
 
    NOTE drow/2003-09-09: This routine could be broken down to an object-style
    method for each breakpoint or catchpoint type.  */
 static int
 insert_bp_location (struct bp_location *bpt,
 		    struct ui_file *tmp_error_stream,
-		    int *disabled_breaks, int *process_warning,
+		    int *disabled_breaks,
 		    int *hw_breakpoint_error)
 {
   int val = 0;
@@ -1179,9 +1179,6 @@ Note: automatically using hardware breakpoints for read-only addresses.\n"));
 	    }
 	  else
 	    {
-#ifdef ONE_PROCESS_WRITETEXT
-	      *process_warning = 1;
-#endif
 	      if (bpt->loc_type == bp_loc_hardware_breakpoint)
 		{
 		  *hw_breakpoint_error = 1;
@@ -1279,10 +1276,9 @@ insert_breakpoint_locations (void)
   int val = 0;
   int disabled_breaks = 0;
   int hw_breakpoint_error = 0;
-  int process_warning = 0;
 
   struct ui_file *tmp_error_stream = mem_fileopen ();
-  make_cleanup_ui_file_delete (tmp_error_stream);
+  struct cleanup *cleanups = make_cleanup_ui_file_delete (tmp_error_stream);
   
   /* Explicitly mark the warning -- this will only be printed if
      there was an error.  */
@@ -1300,7 +1296,7 @@ insert_breakpoint_locations (void)
 	continue;
 
       val = insert_bp_location (b, tmp_error_stream,
-				    &disabled_breaks, &process_warning,
+				    &disabled_breaks,
 				    &hw_breakpoint_error);
       if (val)
 	error = val;
@@ -1352,14 +1348,11 @@ insert_breakpoint_locations (void)
 			      "Could not insert hardware breakpoints:\n\
 You may have requested too many hardware breakpoints/watchpoints.\n");
 	}
-#ifdef ONE_PROCESS_WRITETEXT
-      if (process_warning)
-	fprintf_unfiltered (tmp_error_stream,
-			    "The same program may be running in another process.");
-#endif
       target_terminal_ours_for_output ();
       error_stream (tmp_error_stream);
     }
+
+  do_cleanups (cleanups);
 }
 
 int
@@ -1405,7 +1398,7 @@ reattach_breakpoints (int pid)
   int val;
   struct cleanup *old_chain = save_inferior_ptid ();
   struct ui_file *tmp_error_stream = mem_fileopen ();
-  int dummy1 = 0, dummy2 = 0, dummy3 = 0;
+  int dummy1 = 0, dummy2 = 0;
 
   make_cleanup_ui_file_delete (tmp_error_stream);
 
@@ -1416,7 +1409,7 @@ reattach_breakpoints (int pid)
       {
 	b->inserted = 0;
 	val = insert_bp_location (b, tmp_error_stream,
-				  &dummy1, &dummy2, &dummy3);
+				  &dummy1, &dummy2);
 	if (val != 0)
 	  {
 	    do_cleanups (old_chain);
@@ -2241,13 +2234,13 @@ watchpoint_value_print (struct value *val, struct ui_file *stream)
 static enum print_stop_action
 print_it_typical (bpstat bs)
 {
-  struct cleanup *old_chain, *ui_out_chain;
+  struct cleanup *old_chain;
   struct breakpoint *b;
   const struct bp_location *bl;
   struct ui_stream *stb;
-  int bp_temp = 0;  
-  stb = ui_out_stream_new (uiout);
-  old_chain = make_cleanup_ui_out_stream_delete (stb);
+  int bp_temp = 0;
+  enum print_stop_action result;
+
   /* bs->breakpoint_at can be NULL if it was a momentary breakpoint
      which has since been deleted.  */
   if (bs->breakpoint_at == NULL)
@@ -2255,6 +2248,9 @@ print_it_typical (bpstat bs)
   bl = bs->breakpoint_at;
   b = bl->owner;
 
+  stb = ui_out_stream_new (uiout);
+  old_chain = make_cleanup_ui_out_stream_delete (stb);
+
   switch (b->type)
     {
     case bp_breakpoint:
@@ -2277,7 +2273,7 @@ print_it_typical (bpstat bs)
 	}
       ui_out_field_int (uiout, "bkptno", b->number);
       ui_out_text (uiout, ", ");
-      return PRINT_SRC_AND_LOC;
+      result = PRINT_SRC_AND_LOC;
       break;
 
     case bp_shlib_event:
@@ -2285,20 +2281,20 @@ print_it_typical (bpstat bs)
 	 variable?  (If so, we report this as a generic, "Stopped due
 	 to shlib event" message.) */
       printf_filtered (_("Stopped due to shared library event\n"));
-      return PRINT_NOTHING;
+      result = PRINT_NOTHING;
       break;
 
     case bp_thread_event:
       /* Not sure how we will get here. 
 	 GDB should not stop for these breakpoints.  */
       printf_filtered (_("Thread Event Breakpoint: gdb should not stop!\n"));
-      return PRINT_NOTHING;
+      result = PRINT_NOTHING;
       break;
 
     case bp_overlay_event:
       /* By analogy with the thread event, GDB should not stop for these. */
       printf_filtered (_("Overlay Event Breakpoint: gdb should not stop!\n"));
-      return PRINT_NOTHING;
+      result = PRINT_NOTHING;
       break;
 
     case bp_watchpoint:
@@ -2309,17 +2305,16 @@ print_it_typical (bpstat bs)
 	  (uiout, "reason",
 	   async_reason_lookup (EXEC_ASYNC_WATCHPOINT_TRIGGER));
       mention (b);
-      ui_out_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "value");
+      make_cleanup_ui_out_tuple_begin_end (uiout, "value");
       ui_out_text (uiout, "\nOld value = ");
       watchpoint_value_print (bs->old_val, stb->stream);
       ui_out_field_stream (uiout, "old", stb);
       ui_out_text (uiout, "\nNew value = ");
       watchpoint_value_print (b->val, stb->stream);
       ui_out_field_stream (uiout, "new", stb);
-      do_cleanups (ui_out_chain);
       ui_out_text (uiout, "\n");
       /* More than one watchpoint may have been triggered.  */
-      return PRINT_UNKNOWN;
+      result = PRINT_UNKNOWN;
       break;
 
     case bp_read_watchpoint:
@@ -2328,13 +2323,12 @@ print_it_typical (bpstat bs)
 	  (uiout, "reason",
 	   async_reason_lookup (EXEC_ASYNC_READ_WATCHPOINT_TRIGGER));
       mention (b);
-      ui_out_chain = make_cleanup_ui_out_tuple_begin_end (uiout, "value");
+      make_cleanup_ui_out_tuple_begin_end (uiout, "value");
       ui_out_text (uiout, "\nValue = ");
       watchpoint_value_print (b->val, stb->stream);
       ui_out_field_stream (uiout, "value", stb);
-      do_cleanups (ui_out_chain);
       ui_out_text (uiout, "\n");
-      return PRINT_UNKNOWN;
+      result = PRINT_UNKNOWN;
       break;
 
     case bp_access_watchpoint:
@@ -2346,7 +2340,7 @@ print_it_typical (bpstat bs)


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-06-12 22:31 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-06-12 22:31 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  5ab462f150488aee69b94ca1755daef0c8d8007e (commit)
       via  4dbe3c7a9fcacfc9810c912b813a7a07d0ff92e7 (commit)
       via  81ebf370fe37f61ac55bd3ff64d66901b83696cd (commit)
       via  a898a7b200a3a31a35be65ac4f68413d7b579ecb (commit)
       via  c4ad487cb16d25add8ac9c0d38367ca5ed3a8794 (commit)
       via  670f24233bbc15fb62dee9c2267c0f22cd03fa71 (commit)
       via  4688c31093f8962806654ccd6cd187f76449ded2 (commit)
       via  6414d6c855497a8c05f9e4935a311f10e4ee81f9 (commit)
       via  0f3afabfe95cacbf8b1d7db284de829a96094024 (commit)
       via  b582291f6c898df361ee26a5113840cd0f4044cf (commit)
       via  394c61d68264eac8322c7b0cbfc093cf8443b354 (commit)
       via  cfdd89a769cd42d58a977fb0bfe40889bb8b24a1 (commit)
       via  1b9ca31e68bae8bc9703c0a98b8f7157324cd385 (commit)
       via  be645e778f859b9b996db0183fc9deb170674089 (commit)
       via  ced391d639e9bbb85e780151564a6c4e3b446f5e (commit)
       via  d196776a2091735a10f1b213109ba71dd9b38e38 (commit)
       via  cfbc53184b215a037f70aad8a49b87c7ae12dba0 (commit)
       via  a4170828dee49f1d714b927d8d58d752f718b8ec (commit)
       via  259b8197d9883301ed0e36eb7e87f84f08235900 (commit)
       via  8da72197d2fed63f540484293da013c0d2a02336 (commit)
       via  fba47fc03c10e74afaa069c1f7504f63726ebf0e (commit)
       via  7384699a5c819053f57177435ee075901c6b27ac (commit)
       via  86a6fd26ded3abdd8477fadac88c2f0d8fbd103d (commit)
       via  82c47ca870a245321b4e0d5be676e869c6478cdb (commit)
       via  27305e21926948d6b1ed549d6755521dcb898936 (commit)
       via  2565059a0d631e781bb78bb5d293156e18918e31 (commit)
       via  af3f233a276344d8c817a6d998b88f90f4631e08 (commit)
       via  a28e0e5db7cd184b4e4af290df6e7289fd20049f (commit)
       via  335f903bd2270007d89537d49ed1e19240d0d336 (commit)
      from  d6581ecbcc8edd7dadfb44093baba0d996f14aea (commit)

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

- Log -----------------------------------------------------------------
commit 5ab462f150488aee69b94ca1755daef0c8d8007e
Merge: d6581ecbcc8edd7dadfb44093baba0d996f14aea 4dbe3c7a9fcacfc9810c912b813a7a07d0ff92e7
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date:   Sat Jun 13 00:31:06 2009 +0200

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog            |  144 +++++++++++++
 bfd/bfd-in2.h            |   12 +
 bfd/bfdio.c              |   30 +++
 bfd/cache.c              |   34 +++-
 bfd/elf32-arm.c          |   13 +-
 bfd/elf32-moxie.c        |   21 ++-
 bfd/libbfd.h             |    7 +
 bfd/mach-o-i386.c        |  164 +++++++++++++++-
 bfd/mach-o-target.c      |   17 ++-
 bfd/mach-o.c             |  508 ++++++++++++++++++++++++++++++++--------------
 bfd/mach-o.h             |  167 +++++++++++++--
 bfd/opncls.c             |   79 ++++----
 bfd/reloc.c              |   16 ++
 bfd/version.h            |    2 +-
 gdb/ChangeLog            |  106 ++++++++++
 gdb/NEWS                 |    5 +
 gdb/breakpoint.c         |  101 +++++-----
 gdb/darwin-nat.c         |    4 +-
 gdb/doc/ChangeLog        |    5 +
 gdb/doc/gdb.texinfo      |   30 +++
 gdb/dwarf2read.c         |    5 +
 gdb/eval.c               |   10 +-
 gdb/exec.c               |   21 --
 gdb/exec.h               |   10 +-
 gdb/i386-nto-tdep.c      |  136 +++++++++---
 gdb/inferior.c           |   30 +++-
 gdb/inferior.h           |    2 +
 gdb/infrun.c             |   84 +++++++--
 gdb/nto-tdep.c           |   34 ---
 gdb/nto-tdep.h           |   11 -
 gdb/symtab.c             |    2 -
 gdb/varobj.c             |    2 +-
 gdb/version.in           |    2 +-
 include/elf/ChangeLog    |    4 +
 include/elf/moxie.h      |    1 +
 include/opcode/ChangeLog |    5 +
 include/opcode/moxie.h   |    8 +-
 opcodes/ChangeLog        |    7 +
 opcodes/moxie-dis.c      |    9 +-
 opcodes/moxie-opc.c      |   49 +++--
 sim/moxie/ChangeLog      |    5 +
 sim/moxie/interp.c       |  220 +++++++++-----------
 42 files changed, 1573 insertions(+), 549 deletions(-)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 296493b..7f1ce47 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,147 @@
+2009-06-10  Philip Blundell  <philb@gnu.org>
+
+	* elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
+	elf_sec->this_hdr == NULL.
+
+2009-06-12  Tristan Gingold  <gingold@adacore.com>
+
+	* reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
+	* bfd-in2.h: Regenerated.
+	* libbfd.h: Regenerated.
+
+	* mach-o.c (FILE_ALIGN): New macro.
+	(bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
+	(bfd_mach_o_print_symbol): Ditto.
+	(bfd_mach_o_scan_write_thread): Adjust type of variable offset.
+	(bfd_mach_o_get_reloc_upper_bound): New function.
+	(bfd_mach_o_canonicalize_reloc): Ditto.
+	(bfd_mach_o_scan_write_relocs): Ditto.
+	(bfd_mach_o_scan_write_section_32): Remove offset argument.
+	(bfd_mach_o_scan_write_section_64): Ditto.
+	(bfd_mach_o_scan_write_segment_32): Write relocs.  Fix size of data
+	written for load command.  Do not compute section file offset.
+	(bfd_mach_o_scan_write_segment_64): Ditto.
+	(bfd_mach_o_scan_write_symtab): Compute file offset first.
+	Adjust for bfd_mach_o_asymbol.  Move code to convert from BFD to
+	Mach-O to ...
+	(bfd_mach_o_mangle_symbols): ... this new function.
+	(bfd_mach_o_write_contents): Be sure to habe load commands built.
+	Call bfd_mach_o_mangle_symbols.
+	(bfd_mach_o_build_commands): Adjust for filelen field.
+	Use FILE_ALIGN macro.  Clear section file offset if section is empty.
+	Do not set symtab file offset anymore here.
+	(bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
+	(bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
+	Set reloc_count and rel_filepos section fields.
+	(bfd_mach_o_scan_read_section_32): Type of argument offset is now
+	unsigned int.
+	(bfd_mach_o_scan_read_section_64): Ditto.
+	(bfd_mach_o_scan_read_section): Ditto.
+	(bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
+	bfd_mach_o_asymbol.  Use unsigned int for file offset type.
+	(bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
+	Handle weak-ref symbols.
+	(bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
+	(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+	(bfd_mach_o_scan): Remove assignment to removed field.
+	(bfd_mach_o_mkobject_init): Ditto.
+	(bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
+	(bfd_mach_o_bfd_reloc_type_lookup): New macro.
+	(bfd_mach_o_bfd_reloc_name_lookup): Ditto.
+	(bfd_mach_o_swap_reloc_in): Ditto.
+	(bfd_mach_o_swap_reloc_out): Ditto.
+
+	* mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
+	(BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
+	(BFD_MACH_O_REFERENCE_FLAG_DEFINED)
+	(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
+	(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
+	(BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
+	(BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
+	(BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
+	(BFD_MACH_O_N_WEAK_DEF): New macros.
+	Add comments.
+	(bfd_mach_o_section_type): Add new enumeration values.
+	(BFD_MACH_O_S_SELF_MODIFYING_CODE)
+	(BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
+	(BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
+	(BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
+	macros.
+	(BFD_MACH_O_GENERIC_RELOC_VANILLA)
+	(BFD_MACH_O_GENERIC_RELOC_PAIR)
+	(BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
+	(BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
+	(BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
+	(BFD_MACH_O_RELENT_SIZE): Ditto.
+	(BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
+	(BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
+	(BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
+	(BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
+	(BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
+	(BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
+	(BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
+	(BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
+	(bfd_mach_o_reloc_info): New struct.
+	(bfd_mach_o_asymbol): New struct.
+	(bfd_mach_o_symtab_command): The symbols field is now of type
+	bfd_mach_o_asymbol.
+	(bfd_mach_o_load_command): The offset and len fields are now of type
+	unsigned int.
+	(mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
+	Add a filelen field.  Add comments.
+	(bfd_mach_o_backend_data): New struct.
+	(bfd_mach_o_get_backend_data): New macro.
+	(bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
+	bfd_mach_o_asymbol.
+	(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+	(bfd_mach_o_get_reloc_upper_bound): New prototype.
+	(bfd_mach_o_canonicalize_reloc): Ditto.
+	
+	* mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
+	duplicated macro.  Now defined to _bfd_generic_is_local_label.
+	(TARGET_NAME_BACKEND): New macro...
+	(TARGET_NAME_BACKEND): ... used to name a new variable.
+	(TARGET_NAME): Define relocs table using bfd_mach_o, reference
+	Mach-O backend data.
+
+	* mach-o-i386.c (i386_howto_table): New variable.
+	(bfd_mach_o_i386_swap_reloc_in): New function.
+	(bfd_mach_o_i386_swap_reloc_out): Ditto.
+	(bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
+	(bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
+	(bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
+	(bfd_mach_o_bfd_reloc_type_lookup)
+	(bfd_mach_o_bfd_reloc_name_lookup): Ditto.
+
+2009-06-11  Eric Paris  <eparis@redhat.com>
+	    Nick Clifton  <nickc@redhat.com>
+
+	* opncls.c (_maybe_make_executable): New function.  Gives execute
+	permission to an executable bfd that was opened for writing
+	provided that it is a regular file.  Replaces common code found in...
+	(bfd_close): here and ...
+	(bfd_close_all_done): here.
+
+2009-06-11  Anthony Green  <green@moxielogic.com>
+
+	* reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
+	* bfd-in2.h: Rebuilt.
+	* libbfd.h: Rebuilt.
+	* elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
+	relocation support.
+	(moxie_reloc_map): Ditto.
+	Clean up copyright notice.
+
+2009-06-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
+	
+	* bfd-in2.h: bfd_mmap prototype.
+	* bfdio.c (bfd_mmap): New function.
+	* libbfd.h (bfd_iovec): Add bmmap.
+	* cache.c (cache_bmmap): New function.
+	(cache_iovec): Initialize bmmap member.
+	* opencls.c (opncls_bmmap): New function.
+	(opncls_iovec): Initialize bmmap member.	
+	
 2009-06-09  Tristan Gingold  <gingold@adacore.com>
 
 	* mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 004affe..9b98f8c 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -463,6 +463,7 @@ extern int bfd_seek (bfd *, file_ptr, int);
 extern file_ptr bfd_tell (bfd *);
 extern int bfd_flush (bfd *);
 extern int bfd_stat (bfd *, struct stat *);
+extern void *bfd_mmap (bfd *, void *, bfd_size_type, int, int, file_ptr);
 
 /* Deprecated old routines.  */
 #if __GNUC__
@@ -2736,6 +2737,10 @@ to compensate for the borrow when the low bits are added.  */
   BFD_RELOC_MIPS_JUMP_SLOT,
 
 
+/* Moxie ELF relocations.  */
+  BFD_RELOC_MOXIE_10_PCREL,
+
+
 /* Fujitsu Frv Relocations.  */
   BFD_RELOC_FRV_LABEL16,
   BFD_RELOC_FRV_LABEL24,
@@ -4494,6 +4499,13 @@ BFD_RELOC_XTENSA_ASM_EXPAND.  */
   BFD_RELOC_LM32_GLOB_DAT,
   BFD_RELOC_LM32_JMP_SLOT,
   BFD_RELOC_LM32_RELATIVE,
+
+/* Difference between two section addreses.  Must be followed by a
+BFD_RELOC_MACH_O_PAIR.  */
+  BFD_RELOC_MACH_O_SECTDIFF,
+
+/* Mach-O generic relocations.  */
+  BFD_RELOC_MACH_O_PAIR,
   BFD_RELOC_UNUSED };
 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
 reloc_howto_type *bfd_reloc_type_lookup
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 16bbf03..9b85338 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -158,6 +158,8 @@ DESCRIPTION
 .  int (*bclose) (struct bfd *abfd);
 .  int (*bflush) (struct bfd *abfd);
 .  int (*bstat) (struct bfd *abfd, struct stat *sb);
+.  void* (*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
+.                  int prot, int flags, file_ptr offset);
 .};
 
 */
@@ -511,3 +513,31 @@ bfd_get_size (bfd *abfd)
 
   return buf.st_size;
 }
+
+
+/*
+FUNCTION
+	bfd_mmap
+
+SYNOPSIS
+	void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
+	                int prot, int flags, file_ptr offset);
+
+DESCRIPTION
+	Return mmap()ed region of the file, if possible and implemented.
+
+*/
+
+void *
+bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
+	  int prot, int flags, file_ptr offset)
+{
+  void *ret = (void *)-1;
+  if ((abfd->flags & BFD_IN_MEMORY) != 0)
+    return ret;
+
+  if (abfd->iovec == NULL)
+    return ret;
+
+  return abfd->iovec->bmmap (abfd, addr, len, prot, flags, offset);
+}
diff --git a/bfd/cache.c b/bfd/cache.c
index 50674e8..c6873a9 100644
--- a/bfd/cache.c
+++ b/bfd/cache.c
@@ -46,6 +46,10 @@ SUBSECTION
 #include "libbfd.h"
 #include "libiberty.h"
 
+#ifdef HAVE_MMAP
+#include <sys/mman.h>
+#endif
+
 /* In some cases we can optimize cache operation when reopening files.
    For instance, a flush is entirely unnecessary if the file is already
    closed, so a flush would use CACHE_NO_OPEN.  Similarly, a seek using
@@ -388,10 +392,38 @@ cache_bstat (struct bfd *abfd, struct stat *sb)
   return sts;
 }
 
+static void *
+cache_bmmap (struct bfd *abfd ATTRIBUTE_UNUSED,
+	     void *addr ATTRIBUTE_UNUSED,
+	     bfd_size_type len ATTRIBUTE_UNUSED,
+	     int prot ATTRIBUTE_UNUSED,
+	     int flags ATTRIBUTE_UNUSED,
+	     file_ptr offset ATTRIBUTE_UNUSED)
+{
+  void *ret = (void *) -1;
+
+  if ((abfd->flags & BFD_IN_MEMORY) != 0)
+    abort ();
+#ifdef HAVE_MMAP
+  else
+    {
+      FILE *f = bfd_cache_lookup (abfd, CACHE_NO_SEEK_ERROR);
+      if (f == NULL)
+	return ret;
+
+      ret = mmap (addr, len, prot, flags, fileno (f), offset);
+      if (ret == (void *) -1)
+	bfd_set_error (bfd_error_system_call);
+    }
+#endif
+
+  return ret;
+}
+
 static const struct bfd_iovec cache_iovec =
 {
   &cache_bread, &cache_bwrite, &cache_btell, &cache_bseek,
-  &cache_bclose, &cache_bflush, &cache_bstat
+  &cache_bclose, &cache_bflush, &cache_bstat, &cache_bmmap
 };
 
 /*
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 2a2d461..df4be8b 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -3175,11 +3175,12 @@ arm_type_of_stub (struct bfd_link_info *info,
 
 	  /* We have an extra 2-bytes reach because of
 	     the mode change (bit 24 (H) of BLX encoding).  */
-	  if (branch_offset > (ARM_MAX_FWD_BRANCH_OFFSET + 2)
-	      || (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET)
-	      || ((r_type == R_ARM_CALL) && !globals->use_blx)
-	      || (r_type == R_ARM_JUMP24)
-	      || (r_type == R_ARM_PLT32))
+	  if ((branch_offset > (ARM_MAX_FWD_BRANCH_OFFSET + 2)
+               || (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET)
+               || ((r_type == R_ARM_CALL) && !globals->use_blx)
+               || (r_type == R_ARM_JUMP24)
+               || (r_type == R_ARM_PLT32))
+              && !use_plt)
 	    {
 	      stub_type = (info->shared | globals->pic_veneer)
 		/* PIC stubs.  */
@@ -8960,7 +8961,7 @@ elf32_arm_fix_exidx_coverage (asection **text_section_order,
 	  struct bfd_elf_section_data *elf_sec = elf_section_data (sec);
 	  Elf_Internal_Shdr *hdr = &elf_sec->this_hdr;
 	  
-	  if (hdr->sh_type != SHT_ARM_EXIDX)
+	  if (!hdr || hdr->sh_type != SHT_ARM_EXIDX)
 	    continue;
 	  
 	  if (elf_sec->linked_to)
diff --git a/bfd/elf32-moxie.c b/bfd/elf32-moxie.c
index e3f01d2..23a16ff 100644
--- a/bfd/elf32-moxie.c
+++ b/bfd/elf32-moxie.c
@@ -1,5 +1,4 @@
 /* moxie-specific support for 32-bit ELF.
-   Copyright 2008 Anthony Green.
    Copyright 2009 Free Software Foundation, Inc.
 
    Copied from elf32-fr30.c which is..
@@ -62,6 +61,21 @@ static reloc_howto_type moxie_elf_howto_table [] =
 	 0x00000000,		/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
+
+  /* A 10 bit PC-relative relocation.  */
+  HOWTO (R_MOXIE_PCREL10,	/* type.  */
+	 1,			/* rightshift.  */
+	 1,			/* size (0 = byte, 1 = short, 2 = long).  */
+	 10,			/* bitsize.  */
+	 TRUE,			/* pc_relative.  */
+	 0,			/* bitpos.  */
+	 complain_overflow_signed, /* complain_on_overflow.  */
+	 bfd_elf_generic_reloc,	/* special_function.  */
+	 "R_MOXIE_PCREL10",		/* name.  */
+	 FALSE,			/* partial_inplace.  */
+	 0,			/* src_mask.  */
+	 0x000003FF,		/* dst_mask.  */
+	 TRUE),			/* pcrel_offset.  */
 };
 \f
 /* Map BFD reloc types to MOXIE ELF reloc types.  */
@@ -74,8 +88,9 @@ struct moxie_reloc_map
 
 static const struct moxie_reloc_map moxie_reloc_map [] =
 {
-  { BFD_RELOC_NONE,           R_MOXIE_NONE },
-  { BFD_RELOC_32,             R_MOXIE_32 },
+  { BFD_RELOC_NONE,            R_MOXIE_NONE },
+  { BFD_RELOC_32,              R_MOXIE_32 },
+  { BFD_RELOC_MOXIE_10_PCREL,  R_MOXIE_PCREL10 },
 };
 
 static reloc_howto_type *
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index ea1a080..d0499e8 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -773,6 +773,9 @@ struct bfd_iovec
   int (*bclose) (struct bfd *abfd);
   int (*bflush) (struct bfd *abfd);
   int (*bstat) (struct bfd *abfd, struct stat *sb);
+  /* Just like mmap: (void*)-1 on failure, mmapped address on success.  */
+  void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
+                  int prot, int flags, file_ptr offset);
 };
 /* Extracted from bfdwin.c.  */
 struct _bfd_window_internal {
@@ -1030,6 +1033,8 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_MIPS_COPY",
   "BFD_RELOC_MIPS_JUMP_SLOT",
 
+  "BFD_RELOC_MOXIE_10_PCREL",
+
   "BFD_RELOC_FRV_LABEL16",
   "BFD_RELOC_FRV_LABEL24",
   "BFD_RELOC_FRV_LO16",
@@ -2064,6 +2069,8 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_LM32_GLOB_DAT",
   "BFD_RELOC_LM32_JMP_SLOT",
   "BFD_RELOC_LM32_RELATIVE",
+  "BFD_RELOC_MACH_O_SECTDIFF",
+  "BFD_RELOC_MACH_O_PAIR",
  "@@overflow: BFD_RELOC_UNUSED@@",
 };
 #endif
diff --git a/bfd/mach-o-i386.c b/bfd/mach-o-i386.c
index 7d389f5..f600c01 100644
--- a/bfd/mach-o-i386.c
+++ b/bfd/mach-o-i386.c
@@ -60,9 +60,171 @@ bfd_mach_o_i386_mkobject (bfd *abfd)
   return TRUE;
 }
 
+static reloc_howto_type i386_howto_table[]=
+{
+  HOWTO(BFD_RELOC_32, 0, 2, 32, FALSE, 0,
+	complain_overflow_bitfield,
+	NULL, "32",
+	FALSE, 0xffffffff, 0xffffffff, FALSE),
+  HOWTO(BFD_RELOC_16, 0, 1, 16, FALSE, 0,
+	complain_overflow_bitfield,
+	NULL, "16",
+	FALSE, 0xffff, 0xffff, FALSE),
+  HOWTO(BFD_RELOC_8, 0, 0, 8, FALSE, 0,
+	complain_overflow_bitfield,
+	NULL, "8",
+	FALSE, 0xff, 0xff, FALSE),
+  HOWTO(BFD_RELOC_32_PCREL, 0, 2, 32, TRUE, 0,
+	complain_overflow_bitfield,
+	NULL, "DISP32",
+	FALSE, 0xffffffff, 0xffffffff, TRUE),
+  HOWTO(BFD_RELOC_16_PCREL, 0, 1, 16, TRUE, 0,
+	complain_overflow_bitfield,
+	NULL, "DISP16",
+	FALSE, 0xffff, 0xffff, TRUE),
+  HOWTO(BFD_RELOC_MACH_O_SECTDIFF, 0, 2, 32, FALSE, 0,
+	complain_overflow_bitfield,
+	NULL, "SECTDIFF_32",
+	FALSE, 0xffffffff, 0xffffffff, FALSE),
+  HOWTO(BFD_RELOC_MACH_O_PAIR, 0, 2, 32, FALSE, 0,
+	complain_overflow_bitfield,
+	NULL, "PAIR_32",
+	FALSE, 0xffffffff, 0xffffffff, FALSE),
+};
+
+static bfd_boolean
+bfd_mach_o_i386_swap_reloc_in (arelent *res, bfd_mach_o_reloc_info *reloc)
+{
+  if (reloc->r_scattered)
+    {
+      switch (reloc->r_type)
+        {
+        case BFD_MACH_O_GENERIC_RELOC_PAIR:
+          if (reloc->r_length != 2)
+            return FALSE;
+          res->howto = &i386_howto_table[3];
+          res->address = res[-1].address;
+          return TRUE;
+        case BFD_MACH_O_GENERIC_RELOC_SECTDIFF:
+        case BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF:
+          if (reloc->r_length != 2)
+            return FALSE;
+          res->howto = &i386_howto_table[2];
+          return TRUE;
+        default:
+          return FALSE;
+        }
+    }
+  else
+    {
+      switch (reloc->r_type)
+        {
+        case BFD_MACH_O_GENERIC_RELOC_VANILLA:
+          switch ((reloc->r_length << 1) | reloc->r_pcrel)
+            {
+            case 0: /* len = 0, pcrel = 0  */
+              res->howto = &i386_howto_table[2];
+              return TRUE;
+            case 2: /* len = 1, pcrel = 0  */
+              res->howto = &i386_howto_table[1];
+              return TRUE;
+            case 3: /* len = 1, pcrel = 1  */
+              res->howto = &i386_howto_table[4];
+              return TRUE;
+            case 4: /* len = 2, pcrel = 0  */
+              res->howto = &i386_howto_table[0];
+              return TRUE;
+            case 5: /* len = 2, pcrel = 1  */
+              res->howto = &i386_howto_table[3];
+              return TRUE;
+            default:
+              return FALSE;
+            }
+          break;
+        default:
+          return FALSE;
+        }
+    }
+}
+
+static bfd_boolean
+bfd_mach_o_i386_swap_reloc_out (arelent *rel, bfd_mach_o_reloc_info *rinfo)
+{
+  rinfo->r_address = rel->address;
+  switch (rel->howto->type)
+    {
+    case BFD_RELOC_32:
+    case BFD_RELOC_32_PCREL:
+    case BFD_RELOC_16:


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-06-09 21:46 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-06-09 21:46 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  b701d88201bbf4fe58abfd3fe9cc331bc114a0a4 (commit)
       via  05bd28a1266bccb328641243751b99149a84d97f (commit)
       via  565c9aa33e55e8e0e69ab465960933814e5962b2 (commit)
       via  6d39bcf37f783e342726eed04d1ae3a40ad79df4 (commit)
       via  4c31272dcf0f40289a1a3e9d16e5ee991153317a (commit)
       via  372af84868fde99f15c4db8786b66e1778b698b6 (commit)
       via  76503562fb1712ba45e5cc6d6c376ed86cccb1e9 (commit)
       via  c7cba6373f7692b9ffe4a7746c6ce95bbcf11d68 (commit)
       via  8b15c70b94fa6212b80152f0de488e79bedad5d7 (commit)
       via  eae12918c2c6620a96b86f9a6612473dfbb6da33 (commit)
       via  312fb671d5f76672f0a0a4c674064952843b5797 (commit)
       via  e83f4f0b6910c27e3d1e6c50dcc04ddd8f68e509 (commit)
       via  685b55f764ce7b80bf4eef9e5f92218122453170 (commit)
       via  7ee5d55b96c060075710bfdea08ce5d9d57a4d0b (commit)
       via  074f3a486ea46e1d067453576539e040f985d604 (commit)
       via  bc01dce949f1ec4ce53ca670b683adaede5d1b87 (commit)
       via  b81319240b4a1a714084699e0535b25ae00f28ba (commit)
       via  57f72d1723df488f34e9178341852938f301f3e9 (commit)
       via  bf27a1ec0e149e218c0a381c0b042a7656fd8497 (commit)
       via  592c43f5653189b1ac108e487eb9e0042ebd2c0c (commit)
       via  b36e6aa11412cde83ded346d55e8bdd0f876ec7f (commit)
       via  8a0f8bd77ef79343086cec51a87f7665227bf478 (commit)
       via  c737c68b548d9f779baff5d49d6513a996c9aa73 (commit)
       via  6ce3aa262f3cc58533632996970bb30943dbafd1 (commit)
       via  bf675113da4a123fceca551e31386433a23512f6 (commit)
       via  eb2e2438ffe1232319d73657570d74726d7ce91b (commit)
       via  f489d277483737a05eb37cbfe6c922e57bdd5947 (commit)
       via  74be40a6fe5885d05289bff6e40e69c33183dc4c (commit)
       via  34aabb20445d257f995a7f978b12f555e59eb02e (commit)
       via  fde63f98995baeb7e99dd3dbf445d75479c26763 (commit)
       via  34014599a92bf094a5a58f4d6b27ee159e006c93 (commit)
       via  8ce94a1e94e57161644178e91284d20b4199c74a (commit)
       via  51224dc570bfebdb7d1dc1c12a706758cf44d6b7 (commit)
       via  5d56be8d948d513bb471495f9cc8057c66896740 (commit)
       via  858d628d55bc64cadb0a47787e236aee7486f3b3 (commit)
       via  bc6adcd1f8cceed14e4b244c6796210d2905ce35 (commit)
       via  4c7cbb0a2338dbd815667ce0a517c6a4e4a07065 (commit)
       via  a3c9ee0006fd9734f396c8753500aba05c2133a4 (commit)
       via  dd57c53d8f54ca0793696ee70482e4669b006308 (commit)
       via  351ae25bf0052adb20a7fe51baac6d615abb0068 (commit)
       via  9fddf096a5c4873cb46f48bb621ebe66b96d1843 (commit)
       via  ad80246e559bf16a5d1d30ac8fb3b1978f033f9c (commit)
       via  27a0a2c5bd6bdef0bf5bb53d98d0ea6d2f0696c7 (commit)
       via  32d7e7fbdc648fcf81cb0f484070344b5e78d223 (commit)
       via  a23ef5405428e7fe07b4c01ffb1b33000cfacf09 (commit)
       via  bf4cd77781349b1968616919a12e96b7c74158e8 (commit)
       via  77a91124678352c6cd265a189d9e4e9d9323ed8c (commit)
       via  bc5284cc19ee108242a81b378fcdec6a7691170a (commit)
       via  0f12dbcf00ef0b056552f3d30cdfd4663b864cfc (commit)
       via  2a8342d67bd977626f44b23a77b46b8293db37d0 (commit)
       via  9b78a3616c3ee29f31bfb7daa8d31b4413656dce (commit)
       via  ea4154c95adef19e78ebaf863fe13dc70636c5cc (commit)
       via  f68839aaf768188364094f818573495522e66260 (commit)
       via  e54933a8ab019fbfbd7c7dd6535edad07e25317c (commit)
       via  168706ddf9cdf51463ca7e94065d0d1d9f49253b (commit)
       via  d4c3859e9db37c08cbbf8a007aaf5acaac0848d7 (commit)
       via  8306ebb06129191e761824190d242dea45bc4be8 (commit)
       via  3cc052ca78860cd389acd5bc814bc0c3bfa578fd (commit)
       via  01fd408740e4fe1df642d1536272295d2ca3c833 (commit)
       via  048afcd4b95a23ea0ac1cc1df4559860e297796d (commit)
       via  60413c457f4d4b381843d6a89c6be865f2cf990d (commit)
       via  954a9ab9b93b7607291994bc8f1edd249abd5cf8 (commit)
       via  3e71f11fa7b4f4807dfbacb341acc533d12cf5bc (commit)
       via  5166d8949e0d58843dffea14b569a27452139cf1 (commit)
       via  ad1d71b4c2c22c9ade23c661081878f797a86e6f (commit)
       via  47211f4a31ff3189bdfc7f4d2deaf6af5c10acc3 (commit)
       via  845223f98bd0213365a9de0f352065a6a4b00027 (commit)
       via  9f389f7f1218f394e9c8040d204b8a8b5815d013 (commit)
       via  d0841a7a0349a41128ca895bc04ad346a13883f9 (commit)
       via  8fea4e1c2debf5f2602f96de502f35662c73e182 (commit)
       via  e2b12342b77073638798f3d51f160fa44eacda04 (commit)
       via  8bbd6636b6945f701870d267c76f19cd27056831 (commit)
       via  69203a1a77818f59613d2e3b17c829924418a9fa (commit)
       via  8d4cbb4579424356215c550a5a49644fc6818a9c (commit)
       via  77a26251319202d42eb4ddb4604c707ad2ffa179 (commit)
       via  a3a214309d65d485294811c2b73c8d29a1f95919 (commit)
       via  3c9eb299025292769a09d9868c17ac621d232602 (commit)
       via  53ad60e6dd9c7ad33571f8db1558729ebb04aab5 (commit)
       via  2ec3d727a7305d1dbb28f1fee1ef02450ee82845 (commit)
       via  6959c5dd85756c341bf41599a3442c9e18d78746 (commit)
       via  61a137e12497d5948d62eb7506ffe11e777e8df2 (commit)
       via  d1a013a98481217e506ce158dc2e87549b5cd64d (commit)
       via  c00f4e539f049265ea547d1799fb357b9c610688 (commit)
       via  efc324e41583e7f096123f2121d5dcd9bbb7567b (commit)
       via  61f191dc6d87b039c58dd4cf7d64b07cb06c5b31 (commit)
       via  9aa1a1aef45622e854aa732b6e7313dc659cd6a5 (commit)
       via  67839f608a5f02f89b0788c540ef758a993651cd (commit)
       via  1e292fcd978994da261b81848f5bc68c69cf05f8 (commit)
       via  28f8a7dcb7465f0afe190bfbe8770c6be086522f (commit)
       via  b5bd67ccf12aa51d4f7638a458c55a52d485999f (commit)
       via  bef88c007a7ae080002beb3ba8a4a8258f59e2cb (commit)
       via  00098a51f15b9c5fdbb02aeee3817dd656dfa741 (commit)
       via  6b07559d667d8a8c4392b0152bee496060d85a42 (commit)
       via  7784b546df3857011e9a25975264d2a1f85a5fca (commit)
       via  1e5e2afd7cfa6bb62abb9493a514c70489e19c32 (commit)
       via  e7fb349f3821b038563752abccf90a5fd252d0d9 (commit)
       via  23b92bc2138a7aa498b01e39ebf2183f6cf6de17 (commit)
       via  a9e3fce8a9858d78e554861e41a7ce32c52d5a2e (commit)
       via  e87845632a8e4beb6923f78d7b368730671e1cf8 (commit)
       via  c6749ef83091a93bb81f7ecf6c42d850294e21c3 (commit)
       via  6a1a70d26eb39755635b466cb6f50eee602ecf13 (commit)
       via  51c892357c62187fa462745acca179c26ccb66b8 (commit)
       via  c912928872cf4014fb5a223607144bbd5b57db79 (commit)
       via  6386feea553f2ddbc0db53a16ea0a1fe854ec84b (commit)
       via  c2b4ef6eefaa305e2dc627c4eba5cf594c14c5f8 (commit)
       via  f5890ff18a4276c610380ca21c9fafe2d3e24296 (commit)
       via  5e1ef3df87dcf5d535f32cabe29ed74864951914 (commit)
       via  274ed8624ae0228ded0d34a89fef930c6660d830 (commit)
       via  f24a0e8353bd7c6ac79281ca0e79306db60f3026 (commit)
       via  5aea0bd7b481870153c42f5e705248072aca77ed (commit)
       via  3cbc17db979a9bfa6ad8b6a6b60acf008e4936af (commit)
       via  5ed3c6d8fec56cea2cf5593cc10ed394e66f51a8 (commit)
       via  d65a6e6baa8ed8677ee23de1553ddb136ad0df56 (commit)
       via  a4f5173a537a9ce6e10c9b7e89d7e8e0dcb34846 (commit)
       via  80da459c465687b50b9f41f591dd3c9b557e9bb8 (commit)
       via  6ddf1afb85a400d24551d01d38f9cbccde28f058 (commit)
       via  d8516c7fe64c21f98c81ca96b582616e1bf6e054 (commit)
       via  2f6bfc6a33c2f138f438abec0993e0c6eea19c71 (commit)
       via  a1f05c69a91555fcfde5e0056c8768bf96eb23c0 (commit)
       via  c6372ab5f91d433418ff6169ff3cc830936aca6f (commit)
       via  b5e3e370c0aa5c73c5188c4c004e228be3efb1c9 (commit)
       via  e24ff4483d0bff673eb239913a443d494537549d (commit)
       via  ac4005abc7a136127ae046db10aa5eaffe7a0aee (commit)
       via  546da8d3a3377dc9e427f354e1edb0da4ef9b4c8 (commit)
       via  0efdb1199ccffd23a13d30a9e917fb5f7182ad8b (commit)
       via  36e31abea910a4676548f886c9833f68b2248391 (commit)
       via  e52936c1ba43e5e5e1b8ef8af204dc365cc04d63 (commit)
       via  ab50f59f12b38d09a50cff1a27f2cc79bb64b410 (commit)
       via  bf0cd74600c9c7305a99e1c3912296d6f8bcd7c5 (commit)
       via  3762a5c52929067fe652808aa9560b1f06ef01a6 (commit)
       via  7e02d1681fe6880801781375fa78ca29bc3bc27f (commit)
       via  6fea4b8aef82dd1c02e76454d9ba4f433e435434 (commit)
       via  23c9946e3b77ae32350d2601ed35d4e6f7aba1d9 (commit)
       via  f3cb6ca5b57df4e72a47143cf951a3ba0703a777 (commit)
      from  59c5ab041dce3d467a11922c38876f830cfc35a4 (commit)

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

- Log -----------------------------------------------------------------
commit b701d88201bbf4fe58abfd3fe9cc331bc114a0a4
Merge: 59c5ab041dce3d467a11922c38876f830cfc35a4 05bd28a1266bccb328641243751b99149a84d97f
Author: Jan Kratochvil <jkratoch@host1.dyn.jankratochvil.net>
Date:   Tue Jun 9 23:45:44 2009 +0200

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 ChangeLog                                          |   31 +
 Makefile.in                                        |   27 +-
 Makefile.tpl                                       |   16 +-
 bfd/ChangeLog                                      |  513 +++-
 bfd/Makefile.am                                    | 4111 +++++++++++++++-----
 bfd/Makefile.in                                    | 4118 +++++++++++++++-----
 bfd/aclocal.m4                                     |    5 +-
 bfd/archures.c                                     |    2 +
 bfd/bfd-in.h                                       |    2 +
 bfd/bfd-in2.h                                      |    6 +
 bfd/bfd.c                                          |    1 +
 bfd/bfdio.c                                        |    7 +-
 bfd/bout.c                                         |    4 +
 bfd/coff-rs6000.c                                  |    2 +
 bfd/config.bfd                                     |    9 +-
 bfd/configure                                      |  851 +++--
 bfd/configure.in                                   |   29 +-
 gdb/config/mips/nm-irix5.h => bfd/cpu-plugin.c     |   31 +-
 bfd/dep-in.sed                                     |   14 +-
 bfd/doc/Makefile.in                                |    8 +-
 bfd/elf-bfd.h                                      |    7 +-
 bfd/elf-m10300.c                                   |    4 +
 bfd/elf32-avr.c                                    |    4 +
 bfd/elf32-frv.c                                    |    4 +
 bfd/elf32-i386.c                                   |  704 +++-
 bfd/elf32-ppc.c                                    |   42 +-
 bfd/elf32-spu.c                                    |   46 +-
 bfd/elf32-xtensa.c                                 |    4 +
 bfd/elf64-mmix.c                                   |    4 +
 bfd/elf64-x86-64.c                                 |  706 +++-
 bfd/elflink.c                                      |  162 +-
 bfd/elfxx-ia64.c                                   |    4 +
 bfd/elfxx-sparc.c                                  |    4 +
 bfd/libbfd.h                                       |    2 +
 bfd/mach-o-i386.c                                  |   68 +
 bfd/mach-o-target.c                                |   54 +-
 bfd/mach-o.c                                       | 1149 ++++---
 bfd/mach-o.h                                       |   89 +-
 bfd/makefile.vms                                   |    2 +-
 bfd/plugin.c                                       |  494 +++
 .../gdb.python/python-value.c => bfd/plugin.h      |   49 +-
 bfd/po/id.po                                       |   12 +-
 bfd/reloc.c                                        |    8 +
 bfd/reloc16.c                                      |    4 +
 bfd/targets.c                                      |    6 +
 bfd/version.h                                      |    2 +-
 bfd/vms.c                                          |    4 +
 bfd/xcofflink.c                                    |   39 +-
 config.guess                                       |   51 +-
 config.sub                                         |    4 +-
 config/ChangeLog                                   |    4 +
 config/plugins.m4                                  |   11 +
 configure                                          |    2 +-
 configure.ac                                       |    2 +-
 gdb/ChangeLog                                      |  796 ++++
 gdb/Makefile.in                                    |   18 +
 gdb/ada-lang.c                                     |   40 +-
 gdb/ada-tasks.c                                    |    2 +-
 gdb/ada-valprint.c                                 |    6 +-
 gdb/aix-thread.c                                   |    6 +-
 gdb/alpha-nat.c                                    |   11 +-
 gdb/auxv.c                                         |   11 +-
 gdb/auxv.h                                         |   21 +-
 gdb/ax-gdb.c                                       |    8 +-
 gdb/bfd-target.c                                   |   37 +-
 gdb/breakpoint.c                                   |   76 +-
 gdb/breakpoint.h                                   |    2 +
 gdb/bsd-kvm.c                                      |   12 +-
 gdb/c-exp.y                                        |   11 +-
 gdb/c-valprint.c                                   |    6 +-
 gdb/cli/cli-decode.c                               |    2 +-
 gdb/cli/cli-dump.c                                 |    2 +-
 gdb/coffread.c                                     |   18 +-
 gdb/config/i386/cygwin.mh                          |    1 -
 gdb/config/i386/mingw.mh                           |    1 -
 gdb/config/i386/mingw64.mh                         |    1 -
 gdb/config/i386/nm-cygwin64.h                      |   19 -
 gdb/config/i386/nm-i386sol2.h                      |    2 -
 gdb/config/mips/irix5.mh                           |    1 -
 gdb/config/mips/irix6.mh                           |    1 -
 gdb/config/sparc/nm-sol2.h                         |    9 -
 gdb/configure                                      |    4 +-
 gdb/configure.ac                                   |    4 +-
 gdb/configure.tgt                                  |    5 +-
 gdb/corelow.c                                      |   84 +-
 gdb/cp-valprint.c                                  |   38 +-
 gdb/darwin-nat-info.c                              |    2 +-
 gdb/dfp.c                                          |   55 +-
 gdb/dfp.h                                          |    2 +-
 gdb/doc/ChangeLog                                  |   52 +
 gdb/doc/gdb.texinfo                                |  666 ++++-
 gdb/doc/gdbint.texinfo                             |   15 +-
 gdb/dwarf2loc.c                                    |    8 +-
 gdb/dwarf2loc.h                                    |    6 +-
 gdb/dwarf2read.c                                   |   17 +-
 gdb/eval.c                                         |    6 +-
 gdb/exceptions.c                                   |    2 +-
 gdb/exec.c                                         |  299 +-
 gdb/exec.h                                         |   26 +-
 gdb/expprint.c                                     |    2 +-
 gdb/findcmd.c                                      |    4 +-
 gdb/findvar.c                                      |   21 +-
 gdb/frame.c                                        |    4 +-
 gdb/frv-tdep.c                                     |    2 +-
 gdb/gdbcore.h                                      |    2 +
 gdb/gdbserver/ChangeLog                            |   21 +
 gdb/gdbserver/inferiors.c                          |    4 +-
 gdb/gdbserver/linux-low.c                          |   73 +-
 gdb/gdbserver/remote-utils.c                       |    2 +-
 gdb/gdbserver/server.c                             |    2 +-
 gdb/gdbserver/server.h                             |    2 +-
 gdb/gdbserver/target.c                             |    6 +-
 gdb/gdbthread.h                                    |    7 +-
 gdb/gnu-nat.c                                      |   10 +-
 gdb/gnu-v2-abi.c                                   |    2 +-
 gdb/gnu-v3-abi.c                                   |    3 +-
 gdb/go32-nat.c                                     |   10 +-
 gdb/hppa-tdep.c                                    |    3 +
 gdb/hpux-thread.c                                  |   10 +-
 gdb/i386-linux-tdep.c                              |  461 +--
 gdb/i386-sol2-nat.c                                |   13 +
 gdb/i386-tdep.c                                    |    7 +
 gdb/inf-child.c                                    |   10 +-
 gdb/inf-ptrace.c                                   |   36 +-
 gdb/inf-ttrace.c                                   |   52 +-
 gdb/infcall.c                                      |    4 +-
 gdb/infcmd.c                                       |   18 +-
 gdb/inferior.c                                     |    8 +
 gdb/inferior.h                                     |   10 +-
 gdb/inflow.c                                       |    3 +-
 gdb/infrun.c                                       |  368 ++-
 gdb/irix5-nat.c                                    |   12 +-
 gdb/jv-lang.c                                      |   16 +-
 gdb/jv-valprint.c                                  |    6 +-
 gdb/linespec.c                                     |   13 +-
 gdb/linux-nat.c                                    |   56 +-
 gdb/linux-record.c                                 |    3 +-
 gdb/linux-record.h                                 |    1 -
 gdb/linux-thread-db.c                              |   14 +-
 gdb/m32r-tdep.c                                    |    2 +-
 gdb/mdebugread.c                                   |  417 +-
 gdb/mi/mi-cmd-var.c                                |   53 +
 gdb/mi/mi-cmds.c                                   |    1 +
 gdb/mi/mi-cmds.h                                   |    1 +
 gdb/mi/mi-interp.c                                 |    6 +-
 gdb/mi/mi-main.c                                   |   10 +-
 gdb/mips-tdep.c                                    |    2 +-
 gdb/mn10300-tdep.c                                 |    2 +-
 gdb/monitor.c                                      |   10 +-
 gdb/nto-procfs.c                                   |   12 +-
 gdb/nto-tdep.h                                     |    2 -
 gdb/p-valprint.c                                   |    9 +-
 gdb/printcmd.c                                     |   59 +-
 gdb/proc-utils.h                                   |    4 +
 gdb/procfs.c                                       |   53 +-
 gdb/{config/i386/nm-cygwin.h => procfs.h}          |   24 +-
 gdb/python/python-internal.h                       |   23 +
 gdb/python/python-objfile.c                        |  229 ++
 gdb/python/python-prettyprint.c                    |  599 +++
 gdb/python/python-type.c                           |  799 ++++
 gdb/python/python-value.c                          |   69 +
 gdb/python/python.c                                |  169 +-
 gdb/python/python.h                                |    6 +
 gdb/remote-m32r-sdi.c                              |   15 +-
 gdb/remote-mips.c                                  |   10 +-
 gdb/remote-sim.c                                   |   13 +-
 gdb/remote.c                                       |   65 +-
 gdb/rs6000-nat.c                                   |    3 +-
 gdb/scm-exp.c                                      |    2 +-
 gdb/scm-lang.c                                     |   51 +-
 gdb/scm-lang.h                                     |   22 +-
 gdb/scm-valprint.c                                 |   66 +-
 gdb/sol-thread.c                                   |    2 +-
 gdb/solib.c                                        |   20 +-
 gdb/source.c                                       |    8 +-
 gdb/sparc-sol2-nat.c                               |   17 +
 gdb/stabsread.c                                    |   63 +-
 gdb/stack.c                                        |   50 +-
 gdb/symfile.c                                      |   21 +-
 gdb/symtab.h                                       |   31 +-
 gdb/target-memory.c                                |    2 +-
 gdb/target.c                                       |  377 +-
 gdb/target.h                                       |   78 +-
 gdb/testsuite/ChangeLog                            |  114 +
 gdb/testsuite/gdb.arch/i386-sse.c                  |   55 +-
 gdb/testsuite/gdb.arch/i386-sse.exp                |   16 +-
 gdb/testsuite/gdb.base/break-always.exp            |    5 +-
 gdb/testsuite/gdb.base/display.exp                 |    8 +-
 gdb/testsuite/gdb.base/macscp.exp                  |   28 +-
 gdb/testsuite/gdb.mi/mi-async.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-basics.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi-break.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-cli.exp                    |    4 +-
 gdb/testsuite/gdb.mi/mi-disassemble.exp            |    2 +-
 gdb/testsuite/gdb.mi/mi-eval.exp                   |    2 +-
 gdb/testsuite/gdb.mi/mi-file-transfer.exp          |    2 +-
 gdb/testsuite/gdb.mi/mi-file.exp                   |    2 +-
 gdb/testsuite/gdb.mi/mi-nsthrexec.exp              |  101 +
 gdb/testsuite/gdb.mi/mi-regs.exp                   |    2 +-
 gdb/testsuite/gdb.mi/mi-return.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi-simplerun.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-stepi.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-var-block.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-var-cmd.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi-var-display.exp            |    2 +-
 gdb/testsuite/gdb.mi/mi-var-invalidate.exp         |    4 +-
 gdb/testsuite/gdb.mi/mi-watch.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-basics.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi2-break.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-cli.exp                   |    4 +-
 gdb/testsuite/gdb.mi/mi2-disassemble.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi2-eval.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-file.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-regs.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-return.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi2-simplerun.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-stepi.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-block.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-child.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-cmd.exp               |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-display.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi2-watch.exp                 |    2 +-
 .../python-value.c => gdb.mi/nsthrexec.c}          |   49 +-
 gdb/testsuite/gdb.python/python-mi.exp             |   99 +
 gdb/testsuite/gdb.python/python-prettyprint.c      |  191 +
 gdb/testsuite/gdb.python/python-prettyprint.exp    |   92 +
 gdb/testsuite/gdb.python/python-prettyprint.py     |  151 +
 .../gdb.python/python-template.cc}                 |   21 +-
 gdb/testsuite/gdb.python/python-template.exp       |   75 +
 gdb/testsuite/gdb.python/python-value.c            |    6 +-
 gdb/testsuite/gdb.python/python-value.exp          |   38 +
 gdb/testsuite/gdb.python/python.exp                |    3 +
 gdb/testsuite/gdb.server/ext-run.exp               |    2 +-
 gdb/testsuite/gdb.server/file-transfer.exp         |    2 +-
 gdb/testsuite/gdb.server/server-mon.exp            |    2 +-
 gdb/testsuite/gdb.server/server-run.exp            |    2 +-
 gdb/testsuite/gdb.threads/fork-thread-pending.c    |  109 +
 gdb/testsuite/gdb.threads/fork-thread-pending.exp  |  128 +
 gdb/testsuite/gdb.threads/hand-call-in-threads.c   |  127 +
 gdb/testsuite/gdb.threads/hand-call-in-threads.exp |  160 +
 gdb/testsuite/gdb.threads/manythreads.c            |    3 +
 .../python-value.c => gdb.threads/thread-execl.c}  |   49 +-
 gdb/testsuite/gdb.threads/thread-execl.exp         |   53 +
 .../threxit-hop-specific.c}                        |   47 +-
 gdb/testsuite/gdb.threads/threxit-hop-specific.exp |   59 +
 gdb/testsuite/gdb.trace/actions.exp                |    2 +-
 gdb/testsuite/gdb.trace/backtrace.exp              |    2 +-
 gdb/testsuite/gdb.trace/deltrace.exp               |    2 +-
 gdb/testsuite/gdb.trace/infotrace.exp              |    2 +-
 gdb/testsuite/gdb.trace/packetlen.exp              |    2 +-
 gdb/testsuite/gdb.trace/passc-dyn.exp              |    2 +-
 gdb/testsuite/gdb.trace/passcount.exp              |    2 +-
 gdb/testsuite/gdb.trace/report.exp                 |    2 +-
 gdb/testsuite/gdb.trace/save-trace.exp             |    2 +-
 gdb/testsuite/gdb.trace/tfind.exp                  |    2 +-
 gdb/testsuite/gdb.trace/tracecmd.exp               |    2 +-
 gdb/testsuite/gdb.trace/while-dyn.exp              |    2 +-
 gdb/testsuite/gdb.trace/while-stepping.exp         |    2 +-
 gdb/testsuite/lib/mi-support.exp                   |  105 +-
 gdb/thread.c                                       |   84 +-
 gdb/top.c                                          |   16 +-
 gdb/tracepoint.c                                   |   66 +-
 gdb/v850-tdep.c                                    |    2 +-
 gdb/valarith.c                                     |   26 +-
 gdb/valops.c                                       |   59 +-
 gdb/valprint.c                                     |   63 +-
 gdb/valprint.h                                     |    6 +
 gdb/value.c                                        |  354 ++-
 gdb/value.h                                        |   42 +-
 gdb/varobj.c                                       |  535 +++-
 gdb/varobj.h                                       |    9 +
 gdb/version.in                                     |    2 +-
 gdb/windows-nat.c                                  |   14 +-
 include/ChangeLog                                  |   18 +
 include/ansidecl.h                                 |   27 +-
 include/coff/ChangeLog                             |    5 +
 include/coff/symconst.h                            |    7 +
 include/dyn-string.h                               |   15 +-
 include/elf/ChangeLog                              |   10 +
 include/elf/common.h                               |   10 +-
 include/elf/i386.h                                 |    1 +
 include/elf/x86-64.h                               |    1 +
 include/fibheap.h                                  |   11 +-
 include/fopen-vms.h                                |   12 +-
 include/opcode/ChangeLog                           |    4 +
 include/opcode/moxie.h                             |    2 +
 libdecnumber/ChangeLog                             |    9 +
 libdecnumber/decContext.h                          |    8 +
 libdecnumber/decDPD.h                              |    8 +
 libdecnumber/decNumber.h                           |    8 +
 libdecnumber/dpd/decimal128.h                      |    8 +
 libdecnumber/dpd/decimal32.h                       |    8 +
 libdecnumber/dpd/decimal64.h                       |    8 +
 libiberty/ChangeLog                                |   26 +
 libiberty/config.h-vms                             |   22 +-
 libiberty/fibheap.c                                |   10 +-
 libiberty/makefile.vms                             |   18 +-
 libiberty/pex-win32.c                              |    5 +
 libiberty/snprintf.c                               |   16 +-
 libiberty/vsnprintf.c                              |   16 +-
 opcodes/ChangeLog                                  |   59 +
 opcodes/Makefile.am                                | 2265 +++++++++---
 opcodes/Makefile.in                                | 2265 +++++++++---
 opcodes/dep-in.sed                                 |   12 +-
 opcodes/ia64-gen.c                                 |   82 +-
 opcodes/makefile.vms                               |    5 +-
 opcodes/mep-asm.c                                  |   48 +-
 opcodes/mep-desc.c                                 |   50 +-
 opcodes/mep-desc.h                                 |    9 +-
 opcodes/mep-dis.c                                  |    2 +-
 opcodes/mep-ibld.c                                 |   22 +-
 opcodes/mep-opc.c                                  |    2 +-
 opcodes/mep-opc.h                                  |    3 +
 opcodes/moxie-dis.c                                |   11 +
 opcodes/moxie-opc.c                                |   24 +-
 opcodes/po/id.po                                   |    4 +-
 opcodes/po/nl.po                                   |  248 +-
 opcodes/po/opcodes.pot                             |  217 +-
 setup.com                                          |   31 +
 319 files changed, 22620 insertions(+), 7033 deletions(-)
 copy gdb/config/mips/nm-irix5.h => bfd/cpu-plugin.c (50%)
 create mode 100644 bfd/mach-o-i386.c
 create mode 100644 bfd/plugin.c
 copy gdb/testsuite/gdb.python/python-value.c => bfd/plugin.h (51%)
 create mode 100644 config/plugins.m4
 delete mode 100644 gdb/config/i386/nm-cygwin64.h
 rename gdb/{config/i386/nm-cygwin.h => procfs.h} (50%)
 create mode 100644 gdb/python/python-objfile.c
 create mode 100644 gdb/python/python-prettyprint.c
 create mode 100644 gdb/python/python-type.c
 create mode 100644 gdb/testsuite/gdb.mi/mi-nsthrexec.exp
 copy gdb/testsuite/{gdb.python/python-value.c => gdb.mi/nsthrexec.c} (60%)
 create mode 100644 gdb/testsuite/gdb.python/python-mi.exp
 create mode 100644 gdb/testsuite/gdb.python/python-prettyprint.c
 create mode 100644 gdb/testsuite/gdb.python/python-prettyprint.exp
 create mode 100644 gdb/testsuite/gdb.python/python-prettyprint.py
 rename gdb/{config/mips/nm-irix5.h => testsuite/gdb.python/python-template.cc} (73%)
 create mode 100644 gdb/testsuite/gdb.python/python-template.exp
 create mode 100644 gdb/testsuite/gdb.threads/fork-thread-pending.c
 create mode 100644 gdb/testsuite/gdb.threads/fork-thread-pending.exp
 create mode 100644 gdb/testsuite/gdb.threads/hand-call-in-threads.c
 create mode 100644 gdb/testsuite/gdb.threads/hand-call-in-threads.exp
 copy gdb/testsuite/{gdb.python/python-value.c => gdb.threads/thread-execl.c} (60%)
 create mode 100644 gdb/testsuite/gdb.threads/thread-execl.exp
 copy gdb/testsuite/{gdb.python/python-value.c => gdb.threads/threxit-hop-specific.c} (53%)
 create mode 100644 gdb/testsuite/gdb.threads/threxit-hop-specific.exp

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index a8bb834..a786e13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,34 @@
+2009-06-03  Jerome Guitton  <guitton@adacore.com>
+	    Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+        * Makefile.tpl (all): Avoid a trailing backslash.
+        * Makefile.in: Regenerate.
+
+2009-06-03  Ben Elliston  <bje@au.ibm.com>
+
+	* config.sub, config.guess: Update from upstream sources.
+
+2009-06-02  Alexandre Oliva  <aoliva@redhat.com>
+
+	* Makefile.tpl ([+compare-target+]): Compare all stage
+	directories, rather than just gcc.
+	* Makefile.in: Rebuilt.
+
+2009-05-28  Doug Kwan  <dougkwan@google.com>
+
+	* configure.ac: Support gold for target arm*-*-*.
+	* configure: Regenerate.
+
+2009-05-27  Alexandre Oliva  <aoliva@redhat.com>
+
+	* Makefile.tpl (all): Avoid harmless warning in make all when
+	gcc-bootstrap is enabled but stage_last does not exist.
+	* Makefile.in: Rebuilt.
+
+2009-05-25  Tristan Gingold  <gingold@adacore.com>
+
+	* setup.com: Complete the file with configuration and build.
+
 2009-05-18  Alexandre Oliva  <aoliva@redhat.com>
 
 	PR other/40159
diff --git a/Makefile.in b/Makefile.in
index 110f7d6..fdc2d2e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -855,15 +855,16 @@ all:
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 @if gcc-bootstrap
 	if [ -f stage_last ]; then \
-	  TFLAGS="$(STAGE$(shell sed s,^stage,, stage_last)_TFLAGS)"; \
+	  TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
 	  $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
 	else \
 @endif gcc-bootstrap
 	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
 @if gcc-bootstrap
 	    ; \
-	fi
+	fi \
 @endif gcc-bootstrap
+	&& :
 
 .PHONY: all-build
 
@@ -52210,15 +52211,16 @@ compare:
 	: $(MAKE); $(stage); \
 	rm -f .bad_compare ; \
 	echo Comparing stages 2 and 3 ; \
-	cd stage3-gcc; \
-	files=`find . -name "*$(objext)" -print` ; \
-	cd .. ; \
+        sed=`echo stage3 | sed 's,^stage,,;s,.,.,g'`; \
+	files=`find stage3-* -name "*$(objext)" -print | \
+		 sed -n s,^stage$$sed-,,p` ; \
 	for file in $${files} ; do \
-	  f1=$$r/stage2-gcc/$$file; f2=$$r/stage3-gcc/$$file; \
+	  f1=$$r/stage2-$$file; f2=$$r/stage3-$$file; \
+	  if test ! -f $$f1; then continue; fi; \
 	  $(do-compare) > /dev/null 2>&1; \
 	  if test $$? -eq 1; then \
 	    case $$file in \
-	      ./cc*-checksum$(objext) | ./libgcc/* ) \
+	      gcc/cc*-checksum$(objext) | ./libgcc/* | ./gcc/ada/*tools/*) \
 	        echo warning: $$file differs ;; \
 	      *) \
 	        echo $$file differs >> .bad_compare ;; \
@@ -52535,15 +52537,16 @@ compare3:
 	: $(MAKE); $(stage); \
 	rm -f .bad_compare ; \
 	echo Comparing stages 3 and 4 ; \
-	cd stage4-gcc; \
-	files=`find . -name "*$(objext)" -print` ; \
-	cd .. ; \
+        sed=`echo stage4 | sed 's,^stage,,;s,.,.,g'`; \
+	files=`find stage4-* -name "*$(objext)" -print | \
+		 sed -n s,^stage$$sed-,,p` ; \
 	for file in $${files} ; do \
-	  f1=$$r/stage3-gcc/$$file; f2=$$r/stage4-gcc/$$file; \
+	  f1=$$r/stage3-$$file; f2=$$r/stage4-$$file; \
+	  if test ! -f $$f1; then continue; fi; \
 	  $(do-compare3) > /dev/null 2>&1; \
 	  if test $$? -eq 1; then \
 	    case $$file in \
-	      ./cc*-checksum$(objext) | ./libgcc/* ) \
+	      gcc/cc*-checksum$(objext) | ./libgcc/* | ./gcc/ada/*tools/*) \
 	        echo warning: $$file differs ;; \
 	      *) \
 	        echo $$file differs >> .bad_compare ;; \
diff --git a/Makefile.tpl b/Makefile.tpl
index bc7c415..f543003 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -621,15 +621,16 @@ all:
 	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 @if gcc-bootstrap
 	if [ -f stage_last ]; then \
-	  TFLAGS="$(STAGE$(shell sed s,^stage,, stage_last)_TFLAGS)"; \
+	  TFLAGS="$(STAGE$(shell test ! -f stage_last || sed s,^stage,, stage_last)_TFLAGS)"; \
 	  $(MAKE) $(TARGET_FLAGS_TO_PASS) all-host all-target; \
 	else \
 @endif gcc-bootstrap
 	  $(MAKE) $(RECURSE_FLAGS_TO_PASS) all-host all-target \
 @if gcc-bootstrap
 	    ; \
-	fi
+	fi \
 @endif gcc-bootstrap
+	&& :
 
 .PHONY: all-build
 [+ FOR build_modules +]
@@ -1426,15 +1427,16 @@ do-clean: clean-stage[+id+]
 	: $(MAKE); $(stage); \
 	rm -f .bad_compare ; \
 	echo Comparing stages [+prev+] and [+id+] ; \
-	cd stage[+id+]-gcc; \
-	files=`find . -name "*$(objext)" -print` ; \
-	cd .. ; \
+        sed=`echo stage[+id+] | sed 's,^stage,,;s,.,.,g'`; \
+	files=`find stage[+id+]-* -name "*$(objext)" -print | \
+		 sed -n s,^stage$$sed-,,p` ; \
 	for file in $${files} ; do \
-	  f1=$$r/stage[+prev+]-gcc/$$file; f2=$$r/stage[+id+]-gcc/$$file; \
+	  f1=$$r/stage[+prev+]-$$file; f2=$$r/stage[+id+]-$$file; \
+	  if test ! -f $$f1; then continue; fi; \
 	  $(do-[+compare-target+]) > /dev/null 2>&1; \
 	  if test $$? -eq 1; then \
 	    case $$file in \
-	      ./cc*-checksum$(objext) | ./libgcc/* ) \
+	      gcc/cc*-checksum$(objext) | ./libgcc/* | ./gcc/ada/*tools/*) \
 	        echo warning: $$file differs ;; \
 	      *) \
 	        echo $$file differs >> .bad_compare ;; \
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6e5652f..296493b 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,510 @@
+2009-06-09  Tristan Gingold  <gingold@adacore.com>
+
+	* mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
+	and stabstr_segment fields.
+	(mach_o_be_vec, mach_o_le_vec): Removed
+	(bfd_mach_o_version): New prototype.
+
+	* mach-o.c (bfd_mach_o_version): Make this function public.
+	(mach_o_wide_p): New function.
+	(bfd_mach_o_wide_p): Ditto.
+	(bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
+	weird names.
+	(bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
+	Search in the list only if the name starts with a dot.
+	(bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
+	test.  Check bfd_seek status.
+	(bfd_mach_o_scan_write_thread): Check bfd_seek status.
+	(bfd_mach_o_scan_write_section_32): Ditto.
+	(bfd_mach_o_scan_write_section_64): Ditto.
+	(bfd_mach_o_scan_write_section): Removed.
+	(bfd_mach_o_scan_write_segment): Split into ...
+	(bfd_mach_o_scan_write_segment_32): ... this and ...
+	(bfd_mach_o_scan_write_segment_64): ... this.  Check bfd_seek status.
+	(bfd_mach_o_scan_write_symtab_symbols): Moved into ...
+	(bfd_mach_o_scan_write_symtab): ... this.  Write symtab from BFD
+	symbol table.  Now returns a boolean.
+	(bfd_mach_o_write_contents): Set filetype.  Check bfd_seek status.
+	Adjust for status type.
+	(bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
+	test.  Write symbol table.  Numbers the sections.
+	(bfd_mach_o_read_header): Check bfd_seek status.
+	Use mach_o_wide_p instead of hard-coded test.
+	(bfd_mach_o_scan_read_section_32): Check bfd_seek status.
+	(bfd_mach_o_scan_read_section_64): Ditto.
+	(bfd_mach_o_scan_read_symtab_symbol): Ditto.  Check bfd_seek status.
+	Use BFD_MACH_O_N_TYPE instead of hard-coded value.  Correctly
+	handled common symbols.
+	(bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
+	(bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
+	(bfd_mach_o_scan_read_dylinker): Ditto.
+	(bfd_mach_o_scan_read_dylib): Ditto.
+	(bfd_mach_o_scan_read_thread): Ditto.
+	(bfd_mach_o_scan_read_symtab): Ditto.
+	Do not create a section for the stabs.
+	(bfd_mach_o_scan_read_uuid): Check bfd_seek status.
+	(bfd_mach_o_scan_read_segment): Ditto.
+	(bfd_mach_o_scan_read_command): Ditto.
+	(bfd_mach_o_scan_start_address): Ditto.
+	(bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
+	(bfd_mach_o_archive_p): Check bfd_seek status.
+	(bfd_mach_o_core_fetch_environment): Ditto.
+
+	* mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
+
+2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
+	(elf_i386_link_hash_table_create): Initialize irelifunc.
+	(elf_i386_check_relocs): Updated.  Set up irelifunc for
+	shared objects.
+	(elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
+	relocation for non-GOT reference of STT_GNU_IFUNC symbol in
+	shared objects.
+	(elf_i386_relocate_section): Likewise.
+
+	* elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
+	(elf64_x86_64_link_hash_table_create): Initialize irelifunc.
+	(elf64_x86_64_check_relocs): Updated.  Set up irelifunc for
+	shared objects.
+	(elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
+	relocation for non-GOT reference of STT_GNU_IFUNC symbol in
+	shared objects.
+	(elf64_x86_64_relocate_section): Likewise.
+
+	* elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
+	...
+	(_bfd_elf_create_ifunc_sections): This.
+
+	* elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
+	...
+	(_bfd_elf_create_ifunc_sections): This.  Create .rel[a].ifunc
+	for shared objects.
+
+2009-06-06  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
+	relocation for R_386_32 against STT_GNU_IFUNC symbol when
+	building shared object.  Check info->executable instead of
+	!info->shared when setting non_got_ref.
+	(elf_i386_allocate_dynrelocs): Allocate dynamic relocation
+	for non-GOT reference of STT_GNU_IFUNC symbol in shared
+	object. Allocate GOT relocation agsinst STT_GNU_IFUNC
+	symbol if needed.
+	(elf_i386_relocate_section): Output dynamic relocation for
+	R_386_32 against STT_GNU_IFUNC symbol to get the real
+	function address when building shared object.
+	(elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
+	relocation for STT_GNU_IFUNC symbol in shared object.
+
+	* elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
+	dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
+	symbol when building shared object.  Check info->executable
+	instead of !info->shared when setting non_got_ref.
+	(elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
+	for non-GOT reference of STT_GNU_IFUNC symbol in shared
+	library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
+	if needed.
+	(elf64_x86_64_relocate_section): Output dynamic relocation
+	for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
+	function address when building shared object.
+	(elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
+	relocation for STT_GNU_IFUNC symbol in shared object.
+
+2009-06-06  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* Makefile.am: Run "make dep-am".
+	(BFD32_BACKENDS): Add mach-o-i386.lo.
+	(BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
+	* Makefile.in: Regenerate.
+
+2009-06-06  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (spu_elf_relocate_section): Match overlay number
+	when looking for soft-icache stubs.
+
+2009-06-05  Tristan Gingold  <gingold@adacore.com>
+
+	* mach-o.h: Update copyright year.
+	(bfd_mach_o_mach_header_magic): New enum.
+	(bfd_mach_o_cpu_subtype): Now an enum.
+	(BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
+	(BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
+	(BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
+	(bfd_mach_o_load_command): Field type_required is now a boolean.
+	Reindent prototypes.
+	(bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
+	(bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
+	(bfd_mach_o_bfd_copy_private_section_data): Ditto.
+	(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
+	(bfd_mach_o_get_symtab_upper_bound): Ditto.
+	(bfd_mach_o_canonicalize_symtab): Ditto.
+	(bfd_mach_o_get_symbol_info): Ditto.
+	(bfd_mach_o_print_symbol): Ditto.
+	(bfd_mach_o_bfd_print_private_bfd_data): Ditto.
+	(bfd_mach_o_make_empty_symbol): Ditto.
+	(bfd_mach_o_write_contents): Ditto.
+
+	* mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
+	bfd_mach_o_mkobject): Defines.
+	(bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
+	Do not check with target vector but with flavour.
+	(struct mach_o_section_name_xlat): New declaration.
+	(dwarf_section_names_xlat): Ditto.
+	(text_section_names_xlat): Ditto.
+	(data_section_names_xlat): Ditto.
+	(struct mach_o_segment_name_xlat): Ditto.
+	(segsec_names_xlat): Ditto.
+	(bfd_mach_o_convert_section_name_to_bfd): New function.
+	(bfd_mach_o_convert_section_name_to_mach_o): Ditto.
+	(bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
+	(bfd_mach_o_bfd_copy_private_section_data): Ditto.
+	(bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
+	Accept any input and output flavour.  Do not share private data
+	anymore.
+	(bfd_mach_o_count_symbols): Add a comment.
+	(bfd_mach_o_get_symtab_upper_bound): Make it public.
+	(bfd_mach_o_canonicalize_symtab): Ditto.
+	(bfd_mach_o_get_symbol_info): Ditto.
+	(bfd_mach_o_print_symbol): Ditto.
+	(bfd_mach_o_write_header): Now returns a boolean instead of an int.
+	Use constants instead of hard-coded values.
+	(bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
+	values.
+	(bfd_mach_o_scan_write_section_64): Ditto.
+	(bfd_mach_o_scan_write_segment): Ditto.
+	Do not copy sections anymore.
+	(bfd_mach_o_write_contents): Make it public.
+	Remove dead code.  Rewrite typeflag assignment.
+	(bfd_mach_o_build_commands): New function.
+	(bfd_mach_o_set_section_contents): Ditto.
+	(bfd_mach_o_make_empty_symbol): Make it public.
+	(bfd_mach_o_read_header): Make it static.
+	Convert to bfd_boolean.
+	Use constants instead of hard-coded values.
+	(bfd_mach_o_make_bfd_section): Call
+	bfd_mach_o_convert_section_name_to_bfd to create name.
+	(bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
+	values.
+	(bfd_mach_o_scan_read_section_64): Ditto.
+	(bfd_mach_o_scan_read_segment): Do not create a bfd section for
+	a segment anymore.  Use constants instead of hard-coded values.
+	(bfd_mach_o_scan_read_command): Fix style.
+	(bfd_mach_o_scan): Use constants instead of hard-coded values.
+	Get rid of BFD_IO_FUNCS.
+	(bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
+	(bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
+	(bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
+	(bfd_mach_o_object_p): Removed.
+	(bfd_mach_o_gen_core_p): New function, replaces ...
+	(bfd_mach_o_core_p): ... deleted.
+	(bfd_mach_o_bfd_print_private_bfd_data): Make it public.
+
+	* mach-o-i386.c: New file.
+	* config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
+	* configure.in (TDEFINES): Add mach_o_i386_vec.
+	* configure: Regenerated.
+	* targets.c: Add mach_o_i386_vec.
+
+	* mach-o.c: Update copyright years.
+	(BFD_IO_FUNCS): Remove (was not used).
+	(bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
+	bfd_mach_o_slurp_extended_name_table,
+	bfd_mach_o_construct_extended_name_table,
+	bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
+	bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
+	bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
+	bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
+	bfd_mach_o_get_section_contents_in_window,
+	bfd_mach_o_bfd_is_local_label_name,
+	bfd_mach_o_bfd_is_target_special_symbol,
+	bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
+	bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
+	bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
+	bfd_mach_o_minisymbol_to_symbol,
+	bfd_mach_o_bfd_get_relocated_section_contents,
+	bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
+	bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
+	bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
+	bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
+	bfd_mach_o_bfd_merge_private_bfd_data,
+	bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
+	bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
+	bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
+	bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
+	bfd_mach_o_bfd_copy_private_header_data,
+	bfd_mach_o_core_file_matches_executable_p): Move these defines ...
+	* mach-o-target.c: ... here.
+	Update copyright years.
+
+2009-06-04  Alan Modra  <amodra@bigpond.net.au>
+
+	* dep-in.sed: Don't use \n in replacement part of s command.
+	* Makefile.am (DEP1): LC_ALL for uniq.
+	Run "make dep-am".
+	* Makefile.in: Regenerate.
+
+2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
+	h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
+	* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
+
+2009-06-03  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
+	GOT entry for STT_GNU_IFUNC symbol with pointer equality.
+	(elf_i386_relocate_section): Adjust R_386_GOT32 relocation
+	against STT_GNU_IFUNC symbols for static executables.
+	(elf_i386_finish_dynamic_symbol): Load GOT entry with
+	PLT entry for STT_GNU_IFUNC symbol with pointer equality.
+
+	* elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
+	GOT entry for STT_GNU_IFUNC symbol with pointer equality.
+	(elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
+	PLT entry for STT_GNU_IFUNC symbol with pointer equality.
+
+2009-06-02  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
+	symbols to be left unimported when linking statically.
+	* xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
+	code when linking statically.
+
+2009-06-02  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_check_relocs): Increment
+	got.refcount for R_386_GOT32/R_386_GOTOFF relocations
+	against STT_GNU_IFUNC symbol.
+	(elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
+	local STT_GNU_IFUNC definition is used.
+	(elf_i386_relocate_section): Handle got.offset != -1 for
+	R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
+	symbol.
+
+	* elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
+	got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
+	relocations against STT_GNU_IFUNC symbol.
+	(elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
+	local STT_GNU_IFUNC definition is used.
+	(elf64_x86_64_relocate_section): Handle got.offset != -1
+	for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
+	STT_GNU_IFUNC symbol.
+
+2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/10205
+	* elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
+	(elf_i386_reloc_type_lookup): Likewise.
+	(R_386_tls): Removed.
+	(R_386_irelative): New.
+	(R_386_vt_offset): Updated.
+	(elf_i386_rtype_to_howto): Likewise.
+	(elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
+	(elf_i386_link_hash_table_create): Initialize igotplt,
+	iplt and irelplt.
+	(elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
+	(elf_i386_adjust_dynamic_symbol): Likewise.
+	(elf_i386_allocate_dynrelocs): Likewise.
+	(elf_i386_relocate_section): Likewise.
+	(elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
+	sections.
+	(elf_i386_finish_dynamic_symbol): When building a static
+	executable, use .iplt, .igot.plt and .rel.iplt sections for
+	STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
+	locally defined STT_GNU_IFUNC symbol.
+
+	* elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
+	(x86_64_reloc_map): Likewise.
+	(R_X86_64_standard): Updated.
+	(elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
+	(elf64_x86_64_link_hash_table_create): Initialize igotplt,
+	iplt and irelplt.
+	(elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
+	(elf64_x86_64_adjust_dynamic_symbol): Likewise.
+	(elf64_x86_64_allocate_dynrelocs): Likewise.
+	(elf64_x86_64_relocate_section): Likewise.
+	(elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
+	sections.
+	(elf64_x86_64_finish_dynamic_symbol): When building a static
+	executable, use .iplt, .igot.plt and .rela.iplt sections for
+	STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
+	for locally defined STT_GNU_IFUNC symbol.
+
+	* reloc.c (BFD_RELOC_386_IRELATIVE): New.
+	(BFD_RELOC_X86_64_IRELATIVE): Likewise.
+
+	* bfd-in2.h: Regenerated.
+	* libbfd.h: Likewise.
+
+2009-06-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
+	(_bfd_elf_make_ifunc_reloc_section): Removed.
+	(_bfd_elf_is_ifunc_symbol): Likewise.


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-04-19 17:07 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-04-19 17:07 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  4351eee77e1db8d68c939b25f58dfd66c3a8172e (commit)
       via  9a699cf8afd57133b773c4a9361a0f690af5c58f (commit)
       via  7d17e2337401bb302a22f9c7fdad73cd7a914a87 (commit)
       via  a224e6ccc94981b8a0828be3c3d21f4541d52128 (commit)
       via  26d4ef2df7a76cd289b89889169daa7911881672 (commit)
       via  3c767f84e128752bae02a1d74d3fb09e5b1c9d7c (commit)
       via  ec69b3c41eb9a1f3167e4551a05d27bd6be027c3 (commit)
       via  c5bb7e969b994edce20267a63ee04f36e8f9620d (commit)
       via  8899d4331cfc4aee5a6edd360e76f191b903f071 (commit)
       via  da4bf6986d6653797ce70d5b7066a8067cc53dfe (commit)
       via  4134335ba0d9d44095d86a22231651c718fd32ce (commit)
       via  24113834628253bfe036c4fe9d23ea4d53c235d6 (commit)
       via  e8891fa40b3f73f1152032f62aba8b1b411849a4 (commit)
       via  e04510d64f511214faefa919ad8c9a42159419aa (commit)
       via  35f32120ad15a76ef2b14a33f969125d322e6184 (commit)
       via  b26ec9faecb98fe4bd3999b873037036508f6b02 (commit)
       via  2ef39d9944a919946a2fdbf42f004e77ae19ade4 (commit)
       via  b2fe62372a27119ef2284a92c445914a28990477 (commit)
       via  1307cd2ae0a523ceb73ec390d8362a757f94a660 (commit)
       via  6865e2736c985c987d818e25208d6d63b3460d45 (commit)
       via  e6b0c1ad0917384d1260865e7b20c6f9cb10f117 (commit)
       via  841d691fed9a8fc9db1949ecb229b384e41bef15 (commit)
       via  d4e5cee56a2738ae504562fec162bb3819279d51 (commit)
       via  acf186171ca3ebd5961e994bdb9e71360c714e35 (commit)
       via  d33bf9563716b425558fec32234086b9f9d7d1eb (commit)
       via  948bf30c312ce74bf7f515ad95b0f783efd84fdf (commit)
       via  9ed41d50e43895863854bde267ab1842e4dc477c (commit)
       via  8ecc6922cac67b2bee18e162cfcdc69d5938ffd5 (commit)
       via  0ebbe3ae9e562b5039b4323e61d44df41fc915db (commit)
       via  ac4b4de77049be06aa3ee102a79af90bd77fffd5 (commit)
       via  d5d17740486ad1e5324beceeba57f59941d7bbed (commit)
       via  9a2eeb81a22edf6760efb1389cb58b8ea7bf8ff7 (commit)
       via  2b75ea4b9590089a7a907ef88c5e8a1d75a56d3c (commit)
       via  da573d42232a05b5ca86048af6e08784158791c4 (commit)
       via  39ee73fab9f2e8f3fa03642a2d2622b7c49b312b (commit)
       via  bfa964f289df99884e9cb623e955f6281df67c7a (commit)
       via  0db0b83dcabe31eb1b62a382906daf3bd4516931 (commit)
       via  648da326b4f6154d38d6b33467cc59995910b017 (commit)
       via  7eeead7a420178296192d6f68ab3f5801f37b72a (commit)
       via  b589d11dd7dbe4f6b003b89b5775af7351be0cce (commit)
       via  8995495e350f6e655aa317f3575927be901c021d (commit)
       via  1d0d42a6ee9d864a760f8845ab3106c027fc8ada (commit)
       via  baa72fa0d5ac0f8d080211e32f53a94721756473 (commit)
       via  db5a5859b593fe205b9cba3a059f55a44d1a2a63 (commit)
       via  033e719dfdb4b493bfd695d6160b8bbf769bcd50 (commit)
       via  9313292cc01b0b0a837c35184a7c4db427ceae27 (commit)
       via  3e226ec735dd1bfd775183462870e6d771f8f82d (commit)
       via  66ba0837d6c589b2e6cac11d7b9748aeec2adaa1 (commit)
       via  551bf58597015fed8ae48576b4569a1c60b6c865 (commit)
       via  d75e82657af0bb09d60974367fa8920daf220461 (commit)
       via  8e119381fedf5fe17122d8b04d902389867eb5d8 (commit)
       via  fd6d1d677c9fcdac98da7e1a535e96391677048d (commit)
       via  f76c85a6b66b32d852962627a92cfac16a0528b7 (commit)
      from  224991c247553118d391a66362e0ce39149b8c84 (commit)

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

- Log -----------------------------------------------------------------
commit 4351eee77e1db8d68c939b25f58dfd66c3a8172e
Merge: 224991c247553118d391a66362e0ce39149b8c84 9a699cf8afd57133b773c4a9361a0f690af5c58f
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Apr 19 18:56:26 2009 +0200

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 ChangeLog                                 |    9 +
 bfd/ChangeLog                             |   79 ++++++
 bfd/Makefile.am                           |   10 +
 bfd/Makefile.in                           |   10 +
 bfd/aout-adobe.c                          |    1 +
 bfd/aout-target.h                         |    3 +
 bfd/aout-tic30.c                          |    3 +
 bfd/archures.c                            |    4 +
 bfd/bfd-in2.h                             |   16 ++-
 bfd/binary.c                              |    1 +
 bfd/bout.c                                |    1 +
 bfd/coff-alpha.c                          |    1 +
 bfd/coff-mips.c                           |    1 +
 bfd/coff-rs6000.c                         |    2 +
 bfd/coff64-rs6000.c                       |    2 +
 bfd/coffcode.h                            |   17 ++-
 bfd/coffgen.c                             |    5 +
 bfd/config.bfd                            |    4 +
 bfd/configure                             |    1 +
 bfd/configure.in                          |    1 +
 bfd/cpu-moxie.c                           |   40 +++
 bfd/elf32-arm.c                           |   34 ++-
 bfd/elf32-moxie.c                         |  378 +++++++++++++++++++++++++++++
 bfd/elfxx-target.h                        |    4 +
 bfd/i386msdos.c                           |    1 +
 bfd/i386os9k.c                            |    1 +
 bfd/ieee.c                                |    1 +
 bfd/ihex.c                                |    1 +
 bfd/libbfd-in.h                           |    3 +
 bfd/libbfd.h                              |    3 +
 bfd/libcoff-in.h                          |    2 +
 bfd/libcoff.h                             |    2 +
 bfd/linker.c                              |   59 +++++
 bfd/mach-o.c                              |    1 +
 bfd/mmo.c                                 |    1 +
 bfd/nlm-target.h                          |    1 +
 bfd/oasys.c                               |    1 +
 bfd/pef.c                                 |    1 +
 bfd/ppcboot.c                             |    1 +
 bfd/som.c                                 |    1 +
 bfd/srec.c                                |    1 +
 bfd/targets.c                             |    9 +-
 bfd/tekhex.c                              |    1 +
 bfd/versados.c                            |    1 +
 bfd/version.h                             |    2 +-
 bfd/vms.c                                 |    1 +
 bfd/xcoff-target.h                        |    1 +
 bfd/xcofflink.c                           |   28 ++-
 bfd/xsym.c                                |    1 +
 config.guess                              |   15 +-
 config.sub                                |   11 +-
 configure                                 |    6 +-
 configure.ac                              |    4 +
 gdb/ChangeLog                             |  116 +++++++++
 gdb/ada-exp.y                             |    2 +-
 gdb/ada-lang.c                            |   93 ++------
 gdb/ada-lang.h                            |   12 -
 gdb/c-lang.c                              |   16 +-
 gdb/charset.c                             |  119 +++++++--
 gdb/config.in                             |    3 +
 gdb/config/djgpp/config.sed               |    1 +
 gdb/config/djgpp/djconfig.sh              |    4 +
 gdb/configure                             |    3 +-
 gdb/configure.ac                          |    2 +-
 gdb/doc/ChangeLog                         |   14 +
 gdb/doc/gdb.texinfo                       |    4 +-
 gdb/doc/gdbint.texinfo                    |   48 ++--
 gdb/gdb_wchar.h                           |   48 +++-
 gdb/go32-nat.c                            |    6 +-
 gdb/infrun.c                              |   47 +++--
 gdb/m68klinux-nat.c                       |   64 +----
 gdb/python/python-frame.c                 |   20 +-
 gdb/remote.c                              |    2 +-
 gdb/target.c                              |    6 +
 gdb/testsuite/ChangeLog                   |   13 +
 gdb/testsuite/gdb.base/charset.exp        |    5 +
 gdb/testsuite/gdb.base/exe-lock.exp       |   63 +++++
 gdb/testsuite/gdb.python/python-frame.exp |    2 +
 gdb/utils.c                               |    2 +-
 gdb/version.in                            |    2 +-
 include/dis-asm.h                         |    1 +
 include/elf/ChangeLog                     |    5 +
 include/elf/common.h                      |    2 +
 include/elf/moxie.h                       |   31 +++
 include/opcode/ChangeLog                  |    4 +
 include/opcode/moxie.h                    |   68 +++++
 libdecnumber/ChangeLog                    |   51 ++++
 libdecnumber/Makefile.in                  |    7 +-
 libdecnumber/bid/bid-dpd.h                |   23 +-
 libdecnumber/bid/bid2dpd_dpd2bid.c        |   25 +--
 libdecnumber/bid/bid2dpd_dpd2bid.h        |   25 +--
 libdecnumber/bid/decimal128.c             |   21 +-
 libdecnumber/bid/decimal32.c              |   21 +-
 libdecnumber/bid/decimal64.c              |   21 +-
 libdecnumber/bid/host-ieee128.c           |   25 +--
 libdecnumber/bid/host-ieee32.c            |   25 +--
 libdecnumber/bid/host-ieee64.c            |   25 +--
 libdecnumber/configure.ac                 |    9 +-
 libdecnumber/dconfig.h                    |   25 +--
 libdecnumber/decBasic.c                   |   25 +--
 libdecnumber/decCommon.c                  |   25 +--
 libdecnumber/decContext.c                 |   25 +--
 libdecnumber/decContext.h                 |   25 +--
 libdecnumber/decDPD.h                     |   25 +--
 libdecnumber/decDouble.c                  |   25 +--
 libdecnumber/decDouble.h                  |   25 +--
 libdecnumber/decExcept.c                  |   25 +--
 libdecnumber/decExcept.h                  |   25 +--
 libdecnumber/decLibrary.c                 |   25 +--
 libdecnumber/decNumber.c                  |   25 +--
 libdecnumber/decNumber.h                  |   25 +--
 libdecnumber/decNumberLocal.h             |   25 +--
 libdecnumber/decPacked.c                  |   25 +--
 libdecnumber/decPacked.h                  |   25 +--
 libdecnumber/decQuad.c                    |   25 +--
 libdecnumber/decQuad.h                    |   25 +--
 libdecnumber/decRound.c                   |   25 +--
 libdecnumber/decRound.h                   |   25 +--
 libdecnumber/decSingle.c                  |   25 +--
 libdecnumber/decSingle.h                  |   25 +--
 libdecnumber/dpd/decimal128.c             |   25 +--
 libdecnumber/dpd/decimal128.h             |   25 +--
 libdecnumber/dpd/decimal128Local.h        |   25 +--
 libdecnumber/dpd/decimal32.c              |   25 +--
 libdecnumber/dpd/decimal32.h              |   25 +--
 libdecnumber/dpd/decimal64.c              |   25 +--
 libdecnumber/dpd/decimal64.h              |   25 +--
 libiberty/ChangeLog                       |   19 ++
 libiberty/configure                       |   73 ++++--
 libiberty/configure.ac                    |   39 ++--
 libiberty/pex-common.c                    |    4 +-
 libiberty/pex-common.h                    |    4 +-
 libiberty/pex-djgpp.c                     |    4 +-
 libiberty/pex-msdos.c                     |    4 +-
 libiberty/pex-win32.c                     |    8 +-
 opcodes/ChangeLog                         |   16 ++
 opcodes/Makefile.am                       |    9 +
 opcodes/Makefile.in                       |    9 +
 opcodes/configure                         |    1 +
 opcodes/configure.in                      |    1 +
 opcodes/i386-opc.tbl                      |   16 +-
 opcodes/i386-tbl.h                        |   16 +-
 opcodes/moxie-dis.c                       |  184 ++++++++++++++
 opcodes/moxie-opc.c                       |  136 +++++++++++
 144 files changed, 2262 insertions(+), 900 deletions(-)
 create mode 100644 bfd/cpu-moxie.c
 create mode 100644 bfd/elf32-moxie.c
 create mode 100644 gdb/testsuite/gdb.base/exe-lock.exp
 create mode 100644 include/elf/moxie.h
 create mode 100644 include/opcode/moxie.h
 create mode 100644 opcodes/moxie-dis.c
 create mode 100644 opcodes/moxie-opc.c

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 7aba867..9df0efa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2009-04-17  Ben Elliston  <bje@au.ibm.com>
+
+	* config.sub, config.guess: Update from upstream sources.
+
+2009-04-15  Anthony Green  <green@moxielogic.com>
+
+	* configure.ac: Add moxie support.
+	* configure: Rebuilt.
+
 2009-04-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
 	* configure.ac: Bump minimum GMP/MPFR versions to 4.2 and 2.3.1.
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 679211b..894c497 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,82 @@
+2009-04-17  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
+	PLT entries to an undefined symbol when generating a shared
+	library.
+
+2009-04-17  Nick Clifton  <nickc@redhat.com>
+
+	PR 9909
+	* coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
+
+2009-04-16  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
+	* aout-target.h (MY_bfd_define_common_symbol): Likewise.
+	* aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
+	* binary.c (binary_bfd_define_common_symbol): Likewise.
+	* bout.c (b_out_bfd_define_common_symbol): Likewise.
+	* coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
+	* coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
+	* coffcode.h (coff_bfd_define_common_symbol): Likewise.
+	* elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
+	* i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
+	* i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
+	* ieee.c (ieee_bfd_define_common_symbol): Likewise.
+	* ihex.c (ihex_bfd_define_common_symbol): Likewise.
+	* libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
+	* mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
+	* mmo.c (mmo_bfd_define_common_symbol): Likewise.
+	* nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
+	* oasys.c (oasys_bfd_define_common_symbol): Likewise.
+	* pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
+	* ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
+	* som.c (som_bfd_define_common_symbol): Likewise.
+	* srec.c (srec_bfd_define_common_symbol): Likewise.
+	* tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
+	* versados.c (versados_bfd_define_common_symbol): Likewise.
+	* vms.c (vms_bfd_define_common_symbol): Likewise.
+	* xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
+	* xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
+	* coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
+	(pmac_xcoff_vec): Likewise.
+	* coff64-rs6000.c (rs6000coff64_vec): Likewise.
+	(aix5coff64_vec): Likewise.
+	* linker.c (bfd_generic_define_common_symbol): New function.
+	* targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
+	(_bfd_define_common_symbol): New field.
+	* libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
+	* xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
+	(xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
+	symbols here.
+	* bfd-in2.h: Regenerate.
+	* libbfd.h: Likewise.
+	* libcoff.h: Likewise.
+
+2009-04-15  Anthony Green  <green@moxielogic.com>
+
+	* targets.c: Add moxie support.
+	* Makefile.am: Ditto.
+	* Makefile.in: Rebuilt.
+	* cpu-moxie.c, elf32-moxie.c: New files.
+	* archures.c: Add moxie support.
+	* configure.in: Add moxie support.
+	* configure: Rebuilt.
+	* config.bfd, archures.c: Add moxie support.
+	* bfd-in2.h: Rebuilt.
+
+2009-04-15  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
+	branch to an undef weak symbol into a jump to next instruction if
+	a PLT entry will be created.
+
+2009-04-14  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+	* coffgen.c (make_a_section_from_file):  Set the backend long
+	section names enable if long section names found on input.
+	* coffcode.h:  Extend long section names documentation to match.
+
 2009-04-08  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* elflink.c (elf_link_add_object_symbols): Warn alternate ELF
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index c55450e..683599a 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -74,6 +74,7 @@ ALL_MACHINES = \
 	cpu-dlx.lo \
 	cpu-fr30.lo \
 	cpu-frv.lo \
+	cpu-moxie.lo \
 	cpu-h8300.lo \
 	cpu-h8500.lo \
 	cpu-hppa.lo \
@@ -141,6 +142,7 @@ ALL_MACHINES_CFILES = \
 	cpu-dlx.c \
 	cpu-fr30.c \
 	cpu-frv.c \
+	cpu-moxie.c \
 	cpu-h8300.c \
 	cpu-h8500.c \
 	cpu-hppa.c \
@@ -258,6 +260,7 @@ BFD32_BACKENDS = \
 	elf32-dlx.lo \
 	elf32-fr30.lo \
 	elf32-frv.lo \
+	elf32-moxie.lo \
 	elf32-gen.lo \
 	elf32-h8300.lo \
 	elf32-hppa.lo \
@@ -440,6 +443,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-dlx.c \
 	elf32-fr30.c \
 	elf32-frv.c \
+	elf32-moxie.c \
 	elf32-gen.c \
 	elf32-h8300.c \
 	elf32-hppa.c \
@@ -1119,6 +1123,7 @@ cpu-d30v.lo: cpu-d30v.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-dlx.lo: cpu-dlx.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-fr30.lo: cpu-fr30.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-frv.lo: cpu-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-moxie.lo: cpu-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8300.lo: cpu-h8300.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8500.lo: cpu-h8500.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-hppa.lo: cpu-hppa.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
@@ -1421,6 +1426,11 @@ elf32-frv.lo: elf32-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/frv.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
   elf32-target.h
+elf32-moxie.lo: elf32-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/moxie.h \
+  $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
+  elf32-target.h
 elf32-gen.lo: elf32-gen.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h elf32-target.h
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 190888e..24c8ee1 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -340,6 +340,7 @@ ALL_MACHINES = \
 	cpu-dlx.lo \
 	cpu-fr30.lo \
 	cpu-frv.lo \
+	cpu-moxie.lo \
 	cpu-h8300.lo \
 	cpu-h8500.lo \
 	cpu-hppa.lo \
@@ -407,6 +408,7 @@ ALL_MACHINES_CFILES = \
 	cpu-dlx.c \
 	cpu-fr30.c \
 	cpu-frv.c \
+	cpu-moxie.c \
 	cpu-h8300.c \
 	cpu-h8500.c \
 	cpu-hppa.c \
@@ -525,6 +527,7 @@ BFD32_BACKENDS = \
 	elf32-dlx.lo \
 	elf32-fr30.lo \
 	elf32-frv.lo \
+	elf32-moxie.lo \
 	elf32-gen.lo \
 	elf32-h8300.lo \
 	elf32-hppa.lo \
@@ -707,6 +710,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-dlx.c \
 	elf32-fr30.c \
 	elf32-frv.c \
+	elf32-moxie.c \
 	elf32-gen.c \
 	elf32-h8300.c \
 	elf32-hppa.c \
@@ -1716,6 +1720,7 @@ cpu-d30v.lo: cpu-d30v.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-dlx.lo: cpu-dlx.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-fr30.lo: cpu-fr30.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-frv.lo: cpu-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-moxie.lo: cpu-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8300.lo: cpu-h8300.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-h8500.lo: cpu-h8500.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-hppa.lo: cpu-hppa.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
@@ -2018,6 +2023,11 @@ elf32-frv.lo: elf32-frv.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/frv.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
   elf32-target.h
+elf32-moxie.lo: elf32-moxie.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/moxie.h \
+  $(INCDIR)/elf/reloc-macros.h $(INCDIR)/elf/dwarf2.h \
+  elf32-target.h
 elf32-gen.lo: elf32-gen.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h elf32-target.h
diff --git a/bfd/aout-adobe.c b/bfd/aout-adobe.c
index 8ccaf42..a8b13f4 100644
--- a/bfd/aout-adobe.c
+++ b/bfd/aout-adobe.c
@@ -463,6 +463,7 @@ aout_adobe_sizeof_headers (bfd *ignore_abfd ATTRIBUTE_UNUSED,
 #define aout_32_bfd_is_group_section	            bfd_generic_is_group_section
 #define aout_32_bfd_discard_group	            bfd_generic_discard_group
 #define aout_32_section_already_linked              _bfd_generic_section_already_linked
+#define aout_32_bfd_define_common_symbol            bfd_generic_define_common_symbol
 #define aout_32_bfd_link_hash_table_create          _bfd_generic_link_hash_table_create
 #define aout_32_bfd_link_hash_table_free            _bfd_generic_link_hash_table_free
 #define aout_32_bfd_link_add_symbols	            _bfd_generic_link_add_symbols
diff --git a/bfd/aout-target.h b/bfd/aout-target.h
index c063d03..07a0870 100644
--- a/bfd/aout-target.h
+++ b/bfd/aout-target.h
@@ -493,6 +493,9 @@ MY_bfd_final_link (bfd *abfd, struct bfd_link_info *info)
 #define MY_section_already_linked \
   _bfd_generic_section_already_linked
 #endif
+#ifndef MY_bfd_define_common_symbol
+#define MY_bfd_define_common_symbol bfd_generic_define_common_symbol
+#endif
 #ifndef MY_bfd_reloc_type_lookup
 #define MY_bfd_reloc_type_lookup NAME (aout, reloc_type_lookup)
 #endif
diff --git a/bfd/aout-tic30.c b/bfd/aout-tic30.c
index 49815c4..a95bca1 100644
--- a/bfd/aout-tic30.c
+++ b/bfd/aout-tic30.c
@@ -950,6 +950,9 @@ tic30_aout_set_arch_mach (bfd *abfd,
 #define MY_section_already_linked \
   _bfd_generic_section_already_linked
 #endif
+#ifndef MY_bfd_define_common_symbol
+#define MY_bfd_define_common_symbol bfd_generic_define_common_symbol
+#endif
 #ifndef MY_bfd_reloc_type_lookup
 #define MY_bfd_reloc_type_lookup tic30_aout_reloc_type_lookup
 #endif
diff --git a/bfd/archures.c b/bfd/archures.c
index b0bf140..0a78542 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -331,6 +331,8 @@ DESCRIPTION
 .#define bfd_mach_frvtomcat	499	{* fr500 prototype *}
 .#define bfd_mach_fr500		500
 .#define bfd_mach_fr550		550
+.  bfd_arch_moxie,       {* The moxie processor *}
+.#define bfd_mach_moxie		1
 .  bfd_arch_mcore,
 .  bfd_arch_mep,
 .#define bfd_mach_mep		1
@@ -467,6 +469,7 @@ extern const bfd_arch_info_type bfd_d30v_arch;
 extern const bfd_arch_info_type bfd_dlx_arch;
 extern const bfd_arch_info_type bfd_fr30_arch;
 extern const bfd_arch_info_type bfd_frv_arch;
+extern const bfd_arch_info_type bfd_moxie_arch;
 extern const bfd_arch_info_type bfd_h8300_arch;
 extern const bfd_arch_info_type bfd_h8500_arch;
 extern const bfd_arch_info_type bfd_hppa_arch;
@@ -539,6 +542,7 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
     &bfd_dlx_arch,
     &bfd_fr30_arch,
     &bfd_frv_arch,
+    &bfd_moxie_arch,
     &bfd_h8300_arch,
     &bfd_h8500_arch,
     &bfd_hppa_arch,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 6629ed7..2c6452f 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1968,6 +1968,8 @@ enum bfd_architecture
 #define bfd_mach_frvtomcat     499     /* fr500 prototype */
 #define bfd_mach_fr500         500
 #define bfd_mach_fr550         550
+  bfd_arch_moxie,     /* The moxie.  */
+#define bfd_mach_moxie         1
   bfd_arch_mcore,
   bfd_arch_mep,
 #define bfd_mach_mep           1
@@ -5456,7 +5458,8 @@ typedef struct bfd_target
   NAME##_bfd_merge_sections, \
   NAME##_bfd_is_group_section, \
   NAME##_bfd_discard_group, \
-  NAME##_section_already_linked \
+  NAME##_section_already_linked, \
+  NAME##_bfd_define_common_symbol
 
   int         (*_bfd_sizeof_headers) (bfd *, struct bfd_link_info *);
   bfd_byte *  (*_bfd_get_relocated_section_contents)
@@ -5504,6 +5507,10 @@ typedef struct bfd_target
   void (*_section_already_linked) (bfd *, struct bfd_section *,
                                    struct bfd_link_info *);
 
+  /* Define a common symbol.  */
+  bfd_boolean (*_bfd_define_common_symbol) (bfd *, struct bfd_link_info *,
+                                            struct bfd_link_hash_entry *);
+
   /* Routines to handle dynamic symbols and relocs.  */
 #define BFD_JUMP_TABLE_DYNAMIC(NAME) \
   NAME##_get_dynamic_symtab_upper_bound, \
@@ -5568,6 +5575,13 @@ void bfd_section_already_linked (bfd *abfd, asection *sec,
 #define bfd_section_already_linked(abfd, sec, info) \
        BFD_SEND (abfd, _section_already_linked, (abfd, sec, info))
 
+bfd_boolean bfd_generic_define_common_symbol
+   (bfd *output_bfd, struct bfd_link_info *info,
+    struct bfd_link_hash_entry *h);
+
+#define bfd_define_common_symbol(output_bfd, info, h) \
+       BFD_SEND (output_bfd, _bfd_define_common_symbol, (output_bfd, info, h))
+
 /* Extracted from simple.c.  */
 bfd_byte *bfd_simple_get_relocated_section_contents
    (bfd *abfd, asection *sec, bfd_byte *outbuf, asymbol **symbol_table);
diff --git a/bfd/binary.c b/bfd/binary.c
index c4aec2b..7e9bf10 100644
--- a/bfd/binary.c
+++ b/bfd/binary.c
@@ -316,6 +316,7 @@ binary_sizeof_headers (bfd *abfd ATTRIBUTE_UNUSED,
 #define binary_bfd_is_group_section                bfd_generic_is_group_section
 #define binary_bfd_discard_group                   bfd_generic_discard_group
 #define binary_section_already_linked             _bfd_generic_section_already_linked
+#define binary_bfd_define_common_symbol            bfd_generic_define_common_symbol
 #define binary_bfd_link_hash_table_create         _bfd_generic_link_hash_table_create
 #define binary_bfd_link_hash_table_free           _bfd_generic_link_hash_table_free
 #define binary_bfd_link_just_syms                 _bfd_generic_link_just_syms
diff --git a/bfd/bout.c b/bfd/bout.c
index b6c7106..f4800d5 100644
--- a/bfd/bout.c
+++ b/bfd/bout.c
@@ -1389,6 +1389,7 @@ b_out_bfd_get_relocated_section_contents (bfd *output_bfd,
 #define b_out_bfd_is_group_section             bfd_generic_is_group_section
 #define b_out_bfd_discard_group                bfd_generic_discard_group
 #define b_out_section_already_linked           _bfd_generic_section_already_linked
+#define b_out_bfd_define_common_symbol         bfd_generic_define_common_symbol
 #define aout_32_get_section_contents_in_window _bfd_generic_get_section_contents_in_window
 
 extern const bfd_target b_out_vec_little_host;
diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c
index efe2dd3..cd69043 100644
--- a/bfd/coff-alpha.c
+++ b/bfd/coff-alpha.c
@@ -2398,6 +2398,7 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data =
 #define _bfd_ecoff_bfd_discard_group bfd_generic_discard_group
 #define _bfd_ecoff_section_already_linked \
   _bfd_generic_section_already_linked
+#define _bfd_ecoff_bfd_define_common_symbol bfd_generic_define_common_symbol
 
 const bfd_target ecoffalpha_little_vec =
 {
diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index f82c52d..5fd3510 100644
--- a/bfd/coff-mips.c
+++ b/bfd/coff-mips.c
@@ -1417,6 +1417,7 @@ static const struct ecoff_backend_data mips_ecoff_backend_data =
 #define _bfd_ecoff_bfd_discard_group bfd_generic_discard_group
 #define _bfd_ecoff_section_already_linked \
   _bfd_generic_section_already_linked
+#define _bfd_ecoff_bfd_define_common_symbol bfd_generic_define_common_symbol
 
 extern const bfd_target ecoff_big_vec;
 
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index c5a486b..4859f31 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -4233,6 +4233,7 @@ const bfd_target rs6000coff_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
@@ -4485,6 +4486,7 @@ const bfd_target pmac_xcoff_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 1a0ff59..3a27ee0 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -2805,6 +2805,7 @@ const bfd_target rs6000coff64_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
@@ -3058,6 +3059,7 @@ const bfd_target aix5coff64_vec =
     bfd_generic_is_group_section,
     bfd_generic_discard_group,
     _bfd_generic_section_already_linked,
+    _bfd_xcoff_define_common_symbol,
 
     /* Dynamic */
     _bfd_xcoff_get_dynamic_symtab_upper_bound,
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 484fb6b..11cc457 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -153,6 +153,14 @@ SUBSUBSECTION
 	points to a function that allows the value of the flag to be altered
 	at runtime, on formats that support long section names at all; on
 	other formats it points to a stub that returns an error indication.
+	
+	With input BFDs, the flag is set according to whether any long section
+	names are detected while reading the section headers.  For a completely
+	new BFD, the flag is set to the default for the target format.  This
+	information can be used by a client of the BFD library when deciding
+	what output format to generate, and means that a BFD that is opened
+	for read and subsequently converted to a writeable BFD and modified
+	in-place will retain whatever format it had on input.
 
 	If @code{COFF_LONG_SECTION_NAMES} is simply defined (blank), or is
 	defined to the value "1", then long section names are enabled by
@@ -936,7 +944,8 @@ handle_COMDAT (bfd * abfd,
 		   but there's some checking we can do to be
 		   sure.  */
 
-		if (! (isym.n_sclass == C_STAT
+		if (! ((isym.n_sclass == C_STAT
+			|| isym.n_sclass == C_EXT)
 		       && isym.n_type == T_NULL
 		       && isym.n_value == 0))
 		  abort ();
@@ -946,7 +955,7 @@ handle_COMDAT (bfd * abfd,
 		   names like .text$foo__Fv (in the case of a
 		   function).  See comment above for more.  */
 
-		if (strcmp (name, symname) != 0)
+		if (isym.n_sclass == C_STAT && strcmp (name, symname) != 0)
 		  _bfd_error_handler (_("%B: warning: COMDAT symbol '%s' does not match section name '%s'"),
 				      abfd, symname, name);
 
@@ -5591,6 +5600,10 @@ static bfd_coff_backend_data ticoff1_swap_table =
   _bfd_generic_section_already_linked
 #endif
 
+#ifndef coff_bfd_define_common_symbol
+#define coff_bfd_define_common_symbol	    bfd_generic_define_common_symbol
+#endif
+
 #define CREATE_BIG_COFF_TARGET_VEC(VAR, NAME, EXTRA_O_FLAGS, EXTRA_S_FLAGS, UNDER, ALTERNATIVE, SWAP_TABLE)	\
 const bfd_target VAR =							\
 {									\
diff --git a/bfd/coffgen.c b/bfd/coffgen.c
index 0faaede..8781557 100644
--- a/bfd/coffgen.c
+++ b/bfd/coffgen.c
@@ -73,6 +73,11 @@ make_a_section_from_file (bfd *abfd,
       char *p;
       const char *strings;
 
+      /* Flag that this BFD uses long names, even though the format might
+         expect them to be off by default.  This won't directly affect the
+         format of any output BFD created from this one, but the information
+         can be used to decide what to do.  */
+      bfd_coff_set_long_section_names (abfd, TRUE);
       memcpy (buf, hdr->s_name + 1, SCNNMLEN - 1);
       buf[SCNNMLEN - 1] = '\0';
       strindex = strtol (buf, &p, 10);
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 9082658..9e9e021 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -413,6 +413,10 @@ case "${targ}" in
     targ_selvecs=bfd_elf32_frv_vec
     ;;
 
+  moxie-*-elf)
+    targ_defvec=bfd_elf32_moxie_vec
+    ;;
+
   h8300*-*-rtemscoff*)
     targ_defvec=h8300coff_vec


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-03-27 13:26 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-03-27 13:26 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  6da1b9f22fea0100d12be1c28da02f2da58d72e0 (commit)
       via  4d8c7703513a874c6bedcaf9c35acd4429820595 (commit)
       via  d0679e9c73f28a61899b0a9704e943ee84aa3f44 (commit)
       via  662e441963535d357f1b60e03f3c04185610ec15 (commit)
       via  f3e48bd7590a90ddadba59eee36bc0f520dd72eb (commit)
       via  8340d06295c8db80c544503458305197891e0348 (commit)
       via  7d22f078b354263b0c95d7c3aec2970fd9640645 (commit)
       via  69f5809898b23548161e77d8a4eb0e1d403f8fb6 (commit)
       via  534a7a6f626d428d828cf9ae747293dafa85ee46 (commit)
       via  4c62718461563febf1b8157450f2f91f26353a83 (commit)
       via  a7715162f759ef281588c9ddd4e54253db16305f (commit)
       via  bae36faa443bd8c26a356b7f10853ded46bfe4c5 (commit)
       via  aa878e330bf25fe65aaac2744005e69c8ad5ff39 (commit)
       via  b66b5da01fe075f79266fe57b1da5b2fbc94732f (commit)
       via  9847bf4e6e7bb0dea075e76572c9c67ca7c341e2 (commit)
       via  c35358da5ca26adb4a1bfba51c11ac196785e8e4 (commit)
       via  699f6ffa111111aff2e63b4b860b9adfad7fad22 (commit)
       via  31553d1785659d1fe3a5e231ee330968193099b3 (commit)
       via  3a64e350b82942734fbcb0b31dd775ed9617e999 (commit)
       via  7c7ca1b8250e6b0f97f7eb47d6ab74227a3fabdd (commit)
       via  697b6e50ee00d29a2e2a9006bffef55c90a700f9 (commit)
       via  c98e800a85b9485019404fadac21abe3491b5033 (commit)
       via  f6cb81d808067e2a1c443038130a558360afe58f (commit)
       via  ff27faab30e391dad4a61952bd9f1587ff99d0a5 (commit)
       via  d1cfa18fb5ba2ce7803f31e58c5f509519eb6f10 (commit)
       via  5111bbd29c48b9004b35e2514752cf4a941b61c6 (commit)
       via  2df9de1ad9d3da7dcc80ef49ebd45e001269bc73 (commit)
       via  091af1a56e30d47a8d828afc931167f8142507b2 (commit)
       via  e354c4e1dc0b4ce964e9717e9f494a06518ae21f (commit)
       via  ae61ba3985913274b7e3711f7c1da4d023d9ded9 (commit)
       via  c7deb4d727569b24ed60450f0d8498a53255423e (commit)
       via  1a9bd38bcd06c2bcc0fea51b36ded2507ba73b3c (commit)
       via  f037d6004a582839ce69eafe3071bc29b0fb6fcd (commit)
      from  b5b3803e51adcd6d72e2cb884318cea9aa42ba7d (commit)

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

- Log -----------------------------------------------------------------
commit 6da1b9f22fea0100d12be1c28da02f2da58d72e0
Merge: b5b3803e51adcd6d72e2cb884318cea9aa42ba7d 4d8c7703513a874c6bedcaf9c35acd4429820595
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Fri Mar 27 14:25:16 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                                      |   19 +
 bfd/elf.c                                          |    9 +-
 bfd/elf32-cris.c                                   |    5 +-
 bfd/elf32-crx.c                                    |   40 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  178 +++
 gdb/Makefile.in                                    |   12 +-
 gdb/acinclude.m4                                   |   52 +-
 gdb/breakpoint.c                                   |   46 +-
 gdb/charset.c                                      |   10 +-
 gdb/cli/cli-cmds.c                                 |   14 +-
 gdb/cli/cli-decode.c                               |   12 -
 gdb/cli/cli-decode.h                               |   11 -
 gdb/completer.c                                    |   97 ++-
 gdb/completer.h                                    |    2 +
 gdb/config.in                                      |    3 +
 gdb/config/i386/nm-cygwin.h                        |    1 -
 gdb/config/i386/nm-cygwin64.h                      |    1 -
 gdb/config/i386/nm-fbsd.h                          |    1 -
 gdb/config/i386/nm-go32.h                          |    1 -
 gdb/config/i386/nm-i386.h                          |   59 +-
 gdb/config/i386/nm-linux.h                         |    1 -
 gdb/config/i386/nm-linux64.h                       |    1 -
 gdb/configure                                      |   62 +-
 gdb/configure.ac                                   |    2 +-
 gdb/doc/ChangeLog                                  |    9 +
 gdb/doc/gdb.texinfo                                |   21 +-
 gdb/doc/observer.texi                              |    6 +-
 gdb/dwarf2read.c                                   |    6 +
 gdb/frame.c                                        |   15 +-
 gdb/gdbserver/ChangeLog                            |    8 +
 gdb/gdbserver/linux-ppc-low.c                      |   17 +-
 gdb/gdbtypes.h                                     |    5 +-
 gdb/infcmd.c                                       |   17 +
 gdb/infrun.c                                       |   14 +-
 gdb/linux-nat.c                                    |    2 +-
 gdb/mi/mi-interp.c                                 |   11 +-
 gdb/mi/mi-main.c                                   |   35 +-
 gdb/mn10300-tdep.c                                 | 1270 ++++++++++++--------
 gdb/ppc-linux-nat.c                                |   12 +-
 gdb/printcmd.c                                     |    4 +-
 gdb/python/python-value.c                          |   21 +-
 gdb/remote.c                                       |   33 +-
 gdb/stack.c                                        |   12 +-
 gdb/testsuite/ChangeLog                            |   42 +
 gdb/testsuite/gdb.base/charset.exp                 |   12 +
 gdb/testsuite/gdb.base/completion.exp              |   30 +
 gdb/testsuite/gdb.base/ending-run.exp              |    4 +-
 gdb/testsuite/gdb.dwarf2/dw2-noloc-main.c          |   28 +
 gdb/testsuite/gdb.dwarf2/dw2-noloc.S               |  328 ++++--
 gdb/testsuite/gdb.dwarf2/dw2-noloc.exp             |  110 ++-
 gdb/testsuite/gdb.mi/mi-break.exp                  |    4 +-
 gdb/testsuite/gdb.mi/mi-nonstop-exit.exp           |  106 ++
 gdb/testsuite/gdb.mi/mi-simplerun.exp              |    4 +-
 gdb/testsuite/gdb.mi/mi2-break.exp                 |    4 +-
 gdb/testsuite/gdb.mi/mi2-simplerun.exp             |    4 +-
 .../nm-go32.h => testsuite/gdb.mi/non-stop-exit.c} |   46 +-
 gdb/testsuite/gdb.python/python-value.exp          |    3 +
 gdb/thread.c                                       |   95 +-
 gdb/top.c                                          |   11 +-
 gdb/version.in                                     |    2 +-
 opcodes/ChangeLog                                  |    4 +
 opcodes/i386-dis.c                                 |    3 +-
 63 files changed, 1987 insertions(+), 1012 deletions(-)
 create mode 100644 gdb/testsuite/gdb.dwarf2/dw2-noloc-main.c
 create mode 100644 gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
 copy gdb/{config/i386/nm-go32.h => testsuite/gdb.mi/non-stop-exit.c} (52%)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dfb9bb5..11a0acb 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,22 @@
+2009-03-26  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 6494
+	* elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
+	p_filesz and p_memsz are equal.  Use p_memsz as the segment size.
+	(assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
+	if we don't find matching PT_LOAD when copying.
+
+2009-03-25  M R Swami Reddy <MR.Swami.Reddy@nsc.com>
+
+	* elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
+	the reloc descriptions.
+
+2009-03-25  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
+	<R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
+	<case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
+
 2009-03-24  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
diff --git a/bfd/elf.c b/bfd/elf.c
index 6aa6d1c..720c8a1 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -4683,13 +4683,11 @@ assign_file_positions_for_non_load_sections (bfd *abfd,
 	      p->p_align = 1;
 	      p->p_flags = (lp->p_flags & ~PF_W);
 	    }
-	  else if (link_info != NULL)
+	  else
 	    {
 	      memset (p, 0, sizeof *p);
 	      p->p_type = PT_NULL;
 	    }
-	  else
-	    abort ();
 	}
       else if (m->count != 0)
 	{
@@ -5838,14 +5836,13 @@ copy_elf_program_header (bfd *ibfd, bfd *obfd)
       map->p_align_valid = 1;
       map->p_vaddr_offset = 0;
 
-      if (map->p_type == PT_GNU_RELRO
-	  && segment->p_filesz == segment->p_memsz)
+      if (map->p_type == PT_GNU_RELRO)
 	{
 	  /* The PT_GNU_RELRO segment may contain the first a few
 	     bytes in the .got.plt section even if the whole .got.plt
 	     section isn't in the PT_GNU_RELRO segment.  We won't
 	     change the size of the PT_GNU_RELRO segment.  */
-	  map->p_size = segment->p_filesz;
+	  map->p_size = segment->p_memsz;
 	  map->p_size_valid = 1;
 	}
 
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index ed1f3e8..2037b10 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1733,7 +1733,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	      return FALSE;
 	    }
 
-	  if (!info->shared && (h == NULL || h->def_regular))
+	  if (!info->shared
+	      && (h == NULL || h->def_regular || ELF_COMMON_DEF_P (h)))
 	    {
 	      /* Known contents of the GOT.  */
 	      bfd_vma off;
@@ -2000,7 +2001,7 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 
 	  if (h != NULL
 	      && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
-	      && !h->def_regular
+	      && !(h->def_regular || ELF_COMMON_DEF_P (h))
 	      /* If it's undefined, then an error message has already
 		 been emitted.  */
 	      && h->root.type != bfd_link_hash_undefined)
diff --git a/bfd/elf32-crx.c b/bfd/elf32-crx.c
index b0db783..54eea93 100644
--- a/bfd/elf32-crx.c
+++ b/bfd/elf32-crx.c
@@ -104,7 +104,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL4",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xf,			/* src_mask */
+	 0x0,			/* src_mask */
 	 0xf,			/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -118,7 +118,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL8",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xff,			/* src_mask */
+	 0x0,			/* src_mask */
 	 0xff,			/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -132,7 +132,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL8_CMP",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xff,			/* src_mask */
+	 0x0,			/* src_mask */
 	 0xff,			/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -146,7 +146,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL16",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -160,7 +160,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL24",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -174,7 +174,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REL32",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -188,7 +188,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REGREL12",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xfff,			/* src_mask */
+	 0x0,			/* src_mask */
 	 0xfff,			/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -202,7 +202,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REGREL22",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0x3fffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0x3fffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -216,7 +216,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REGREL28",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xfffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xfffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -230,7 +230,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_REGREL32",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -244,7 +244,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_ABS16",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -258,7 +258,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_ABS32",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -272,7 +272,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_NUM8",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xff,	  		/* src_mask */
+	 0x0,	  		/* src_mask */
 	 0xff,			/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -286,7 +286,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_NUM16",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffff,  		/* src_mask */
+	 0x0,	  		/* src_mask */
 	 0xffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -300,7 +300,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_NUM32",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,  		/* src_mask */
+	 0x0,	  		/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -314,7 +314,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_IMM16",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffff,  		/* src_mask */
+	 0x0, 	 		/* src_mask */
 	 0xffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
 
@@ -328,7 +328,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_IMM32",		/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,  		/* src_mask */
+	 0x0,  			/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 FALSE),		/* pcrel_offset */
  
@@ -345,7 +345,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_SWITCH8",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xff,			/* src_mask */
+	 0x0,			/* src_mask */
 	 0xff,			/* dst_mask */
 	 TRUE),			/* pcrel_offset */
 
@@ -362,7 +362,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_SWITCH16",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffff,		/* dst_mask */
 	 TRUE),			/* pcrel_offset */
 
@@ -379,7 +379,7 @@ static reloc_howto_type crx_elf_howto_table[] =
 	 bfd_elf_generic_reloc,	/* special_function */
 	 "R_CRX_SWITCH32",	/* name */
 	 FALSE,			/* partial_inplace */
-	 0xffffffff,		/* src_mask */
+	 0x0,			/* src_mask */
 	 0xffffffff,		/* dst_mask */
 	 TRUE)			/* pcrel_offset */
 };
diff --git a/bfd/version.h b/bfd/version.h
index 21bfd82..27eff95 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20090324
+#define BFD_VERSION_DATE 20090327
 #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/gdb/ChangeLog b/gdb/ChangeLog
index a88bc6b..368d45e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,181 @@
+2009-03-26  Doug Evans  <dje@google.com>
+
+	* thread.c (do_restore_current_thread_cleanup): Redo test for
+	whether to restore old->inferior_ptid.
+
+2009-03-26  Tom Tromey  <tromey@redhat.com>
+
+	* breakpoint.c (resolve_sal_pc): Preserve original line number
+	when skipping prologue.
+
+2009-03-26  Doug Evans  <dje@google.com>
+
+	* thread.c (inferior_thread) Remove "extern" in definition.
+
+2009-03-26  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+	Add gdb.Value.is_optimized_out attribute.
+	* python/python-value.c (valpy_get_is_optimized_out): New
+	function.
+	(value_object_getset): New variable.
+	(value_object_type): Initialize tp_getset element.
+
+2009-03-26  Joel Brobecker  <brobecker@adacore.com>
+
+	Recognize missing DW_AT_location as <value optimized out>.
+	* dwarf2read.c
+	(new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
+	Call add_symbol_to_list.
+
+2009-03-25  Tom Tromey  <tromey@redhat.com>
+
+	* gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
+	* stack.c (print_this_frame_argument_p): Use check_typedef.
+
+2009-03-25  Tom Tromey  <tromey@redhat.com>
+
+	* configure: Rebuild.
+	* acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
+	Rearrange flags setting.  Add comments.
+
+2009-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+	* config/i386/nm-i386.h: Remove code within
+	I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
+	* config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
+	macro.
+	* config/i386/nm-cygwin64.h: Ditto.
+	* config/i386/nm-fbsd.h: Ditto.
+	* config/i386/nm-go32.h: Ditto.
+	* config/i386/nm-linux.h: Ditto.
+	* config/i386/nm-linux64.h: Ditto.
+
+2009-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+	ARI fix: "xasprintf" rule.
+	* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
+
+2009-03-25  Pedro Alves  <pedro@codesourcery.com>
+
+	* remote.c (remote_start_remote): In non-stop mode, call
+	init_wait_for_inferior before adding threads and inferiors.
+
+2009-03-25  Joel Brobecker  <brobecker@adacore.com>
+
+	* breakpoint.c (breakpoint_thread_match): Split a large condition
+	into several smaller conditions.  No behavior change.
+
+2009-03-25  Pedro Alves  <pedro@codesourcery.com>
+
+	* infrun.c (infrun_thread_thread_exit): New.
+	(_initialize_infrun): Attach it to the thread_exit observer.
+	* thread.c (delete_thread_1): Always call the observer, passing it
+	the silent flag.
+	* mi/mi-interp.c (mi_thread_exit): Add "silent" parameter.  If
+	SILENT, return immediately.
+
+2009-03-25  Pedro Alves  <pedro@codesourcery.com>
+
+	* infrun.c (normal_stop): Use has_stack_frames instead of
+	target_has_stack.
+	* mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
+	when there is no thread selected.
+	(mi_cmd_execute): Don't special case commands that can run without
+	a valid selected thread.
+	* top.c (execute_command): Don't special case commands that can
+	run without a valid selected thread.  Use has_stack_frames.
+	* infcmd.c (ensure_valid_thread): New.
+	(continue_1, step_1, jump_command, signal_command): Use it.
+	(detach_command): Error out if there's no selected thread/inferior.
+	* thread.c (print_thread_info): Allow having no thread selected.
+	(switch_to_thread): Don't read the PC if there is no current thread.
+	(do_restore_current_thread_cleanup): Don't record the current
+	frame if there is no current thread.
+	(make_cleanup_restore_current_thread): Don't read frame info if
+	there is no selected thread.
+	(_initialize_thread): Don't mark commands as
+	"no_selected_thread_ok".
+	* frame.c (get_current_frame): Error out if there is no valid
+	selected thread.
+	(has_stack_frames): Return false if there is no valid
+	selected thread.
+	* cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
+	"no_selected_thread_ok".
+	* cli/cli-decode.c (set_cmd_no_selected_thread_ok)
+	(get_cmd_no_selected_thread_ok): Delete.
+	* cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
+	(set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
+	Delete declaration.
+	* stack.c (get_selected_block): Use has_stack_frames.
+
+2009-03-25  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+	Fix size of FPSCR in Power 7 processors.
+	* ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
+	(PPC_FEATURE_HAS_DFP): New #define.
+	(ppc_linux_read_description): Check for DFP feature instead of
+	ISA 2.05 to decide on size of the FPSCR.
+
+2009-03-25  Kevin Buettner  <kevinb@redhat.com>
+
+	* mn10300-tdep.c (trad-frame.h): Don't include.
+	(prologue-value.h): Include.
+	(mn10300_frame_unwind_cache, set_reg_offsets): Delete.
+	(struct mn10300_prologue): Define.
+	(push_reg, translate_rreg, check_for_saved): New functions.
+	(mn10300_analyze_prologue): Rewrite, using prologue-value
+	machinery.  Handle more instructions than before.  Permit
+	instructions to occur in any order.
+	(mn10300_skip_prologue): Find the extents of the function
+	in question; mn10300_analyze_prologue no longer does this.
+	(mn10300_analyze_frame_prologue): New function.
+	(mn10300_frame_base): New function.
+	(mn10300_frame_this_id): Rewrite, no longer using trad-frame
+	implementation.
+	(mn10300_frame_prev_register): Likewise.
+	(mn10300_frame_base_address, mn10300_frame_base struct): Delete.
+	(mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
+	`this_frame'.
+	(mn10300_frame_unwind_init): Don't call frame_base_set_default().
+
+2009-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+	Fix completer problem for filename completion on the first try.
+
+	* gdb/completer.h (gdb_completion_word_break_characters): New function.
+	* gdb/completer.c: Include gdb_assert.h.
+	(complete_line_internal_reason): New enum.
+	(complete_line_internal): Change last argument type to
+	complete_line_internal_reason.
+	Modify function to handle the different complete_line_internal_reason
+	argument values.
+	(complete_line): Adapt to change in complete_line_internal.
+	(command_completer): Ditto.
+	(gdb_completion_word_break_characters): Implement new function.
+	* top.c (init_main): Set  rl_completion_word_break_hook to
+	gdb_completion_word_break_characters.
+	
+
+2009-03-25  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+	ARI fix: "strlen d_name" rule.
+	* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
+
+
+2009-03-24  Tom Tromey  <tromey@redhat.com>
+	    Pedro Alves  <pedro@codesourcery.com>
+
+	* configure, config.in: Rebuild.
+	* configure.ac: Check for libiconvlist.
+	* charset.c: Check HAVE_LIBICONVLIST.
+	* acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
+	LIBICONV_LIBDIR.  Update CPPFLAGS and LIBS.
+	* Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
+	Remove.
+	(INTERNAL_CFLAGS_BASE): Update.
+	(INTERNAL_LDFLAGS): Update.
+	(CLIBS): Update.
+
 2009-03-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
 	* configure.ac: Initialize the variable $PREFER_CURSES.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 95b95a1..6b69881 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -163,11 +163,6 @@ INTL = @LIBINTL@
 INTL_DEPS = @LIBINTL_DEP@
 INTL_CFLAGS = @INCINTL@
 
-# Where is the ICONV library?  This can be empty if libc has iconv.
-LIBICONV = @LIBICONV@
-LIBICONV_INCLUDE = @LIBICONV_INCLUDE@
-LIBICONV_LIBDIR = @LIBICONV_LIBDIR@
-
 # Did the user give us a --with-sysroot option?
 TARGET_SYSTEM_ROOT = @TARGET_SYSTEM_ROOT@
 TARGET_SYSTEM_ROOT_DEFINE = @TARGET_SYSTEM_ROOT_DEFINE@
@@ -392,8 +387,7 @@ INTERNAL_CFLAGS_BASE = \
 	$(CFLAGS) $(GLOBAL_CFLAGS) $(PROFILE_CFLAGS) \
 	$(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
 	$(BFD_CFLAGS) $(INCLUDE_CFLAGS) $(LIBDECNUMBER_CFLAGS) \
-	$(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS) \
-	$(LIBICONV_INCLUDE)
+	$(INTL_CFLAGS) $(INCGNU) $(ENABLE_CFLAGS) $(INTERNAL_CPPFLAGS)
 INTERNAL_WARN_CFLAGS = $(INTERNAL_CFLAGS_BASE) $(GDB_WARN_CFLAGS)
 INTERNAL_CFLAGS = $(INTERNAL_WARN_CFLAGS) $(GDB_WERROR_CFLAGS)
 
@@ -405,7 +399,7 @@ LDFLAGS = @LDFLAGS@
 # I think it's perfectly reasonable for a user to set -pg in CFLAGS
 # and have it work; that's why CFLAGS is here.
 # PROFILE_CFLAGS is _not_ included, however, because we use monstartup.
-INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS) $(LIBICONV_LIBDIR)
+INTERNAL_LDFLAGS = $(CFLAGS) $(GLOBAL_CFLAGS) $(MH_LDFLAGS) $(LDFLAGS) $(CONFIG_LDFLAGS)
 
 # If your system is missing alloca(), or, more likely, it's there but


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-03-27  0:35 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-03-27  0:35 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  b5b3803e51adcd6d72e2cb884318cea9aa42ba7d (commit)
       via  3157aba1ab73fb5b5cd0e2dbb5c031a1336a93db (commit)
       via  64c287329177f68d0da2ce81207f5f3f105dabfe (commit)
       via  cbd12f3666346846dd18e762f7881f4a0b1767ee (commit)
       via  3092115a3d791e551209af2e1945666169a04de7 (commit)
       via  27c4a5d2ebbfd4f68a5e87b459adbbc6eeda7cf8 (commit)
       via  8c4195d13e945d3cf2c8583c9f818bbf4a3b5710 (commit)
       via  390ac7259731cdf469ea739345e64d3a7d248818 (commit)
       via  9533c58c4b0c692975a4b97267222ad002364a29 (commit)
       via  3f81316d6eb8f3c951acd8774da7bc8ad23bdedd (commit)
       via  c5f1a7ef72922178569418b5d5060f8240c1767e (commit)
       via  6f1a685bc7bfe44af998e54b99963dffc8e715e5 (commit)
       via  d7b3c9ecbb4f7c782aacbe4224c9aeb8d0d161b2 (commit)
       via  b20dff1b337ceb1bd5f241bff2ed1233780936df (commit)
       via  032f67142ca0678c31a574314adc53d316960f72 (commit)
       via  817ede0ad440e39f3311cc8a1f55ad5655b97e9a (commit)
       via  165709eaa90768f4d03e76188188e5e5afa4ac2c (commit)
       via  50a6b4966bccf97597d65486bd60561d05a65dff (commit)
       via  b3c3db206b652d19fad5290df7b630335acc5889 (commit)
       via  02dc98a6209b37e8473ee3218b5eb4ff6bc7e44d (commit)
       via  70e735001ef74606d3e86a75cf4fd04173e10974 (commit)
       via  90ab18a605385cb7e7984c4ac83a4f7461f99906 (commit)
       via  3836cfdf3b7de8b0f34fda25e5a1b4ae33e253ea (commit)
       via  6c2b67e0220165c9411c128b2f8f7d1e8856795b (commit)
       via  7f0e4fa27448e8da47cdedfa6f8342f94245ab76 (commit)
       via  ff21434d7a766aba9f937e270016e4e7d9e6ba40 (commit)
       via  40dd9754f21987e1fca43c2cde6b3adc18464f1d (commit)
       via  60194aaeeb94372651c09fb5dc0cb5d3329b921e (commit)
       via  c3bcf1c464f8633b5ce91cb72bafee27ce9b05ce (commit)
       via  7d1733001ce46390908da9e6868f45006409b056 (commit)
       via  214296a4b2a36f3e0bc8a270647da2fc21b8b874 (commit)
       via  7ad6aabd74342df423bc2ba496c9750e14d86e85 (commit)
       via  0ee8ee241dcc7feeaf538a120826051dcd8cccfd (commit)
       via  3caef2b656659161247d9c8d418ba8fcc889a04c (commit)
       via  da12fddea1a71fb3b808e88a5ef83bbca8e2cb30 (commit)
       via  297cccbb83721274c4df1eec08dde9eb9f51a733 (commit)
       via  7f43a566f95a1cf96ed799471319b5c574ee575e (commit)
       via  e0f2167a8e0855ab0a1545da2b5f1472cac923dc (commit)
       via  0db2376071441d14829885eaa95b2b8a69a3a1ae (commit)
       via  22a744906c7e0303d9f56c9160900946eff17206 (commit)
       via  d65e7bd9988748a8d39dba3439cbf3cfc873f724 (commit)
       via  e5e85060ca59a79204d185b1b4cf3e30eb0fd1ba (commit)
       via  50158e6deec5d6304429f655fd0a7990c0c14cfc (commit)
       via  f01a34d4d484fb2a8e69233429e993283ee39235 (commit)
       via  d33df476c193a636fbc205d541dce62a6b327fdb (commit)
       via  5943423dd8fd3c0df0586c8c05631165d84f341d (commit)
       via  b4494ffc89755afd15f3dda0b71b82244aa5ea2f (commit)
       via  095e9826734cc7660ab9f444e72a517736272902 (commit)
       via  a371c4d2c371566a571f9c9d08df72f200024b9c (commit)
       via  2e7a4dfe356485e3d14ec2b73b405f016336fcd2 (commit)
       via  d351e41f278158d1b8219d523b0fa03c02b76189 (commit)
       via  8a4ca176c977982bf74c885ec927ed3d6c677bde (commit)
       via  6418262610197a1d63af6393d077f10fac01304c (commit)
       via  67df65cc54808054e45498160f67ce682a9aaa7b (commit)
       via  7075b478c79fa7bf8a95b17474f5f799b0ad5523 (commit)
      from  7106f1d0117d444f3eccb83c74fde7c36e41a882 (commit)

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

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                |   50 +
 bfd/cpu-i386.c                               |    8 +-
 bfd/elf32-cris.c                             |   32 +-
 bfd/elf32-ppc.c                              |   31 +-
 bfd/elf32-s390.c                             |   33 +-
 bfd/elf64-ppc.c                              |   12 +-
 bfd/elf64-s390.c                             |   33 +-
 bfd/version.h                                |    2 +-
 gdb/ChangeLog                                |  487 ++++
 gdb/Makefile.in                              |   20 +-
 gdb/NEWS                                     |   14 +
 gdb/acinclude.m4                             |   37 +-
 gdb/ada-exp.y                                |    1 +
 gdb/ada-lang.c                               |   34 +-
 gdb/ada-lang.h                               |    8 +-
 gdb/ada-typeprint.c                          |   11 +-
 gdb/ada-valprint.c                           |   26 +-
 gdb/auxv.c                                   |    3 +-
 gdb/breakpoint.c                             |   61 +-
 gdb/buildsym.c                               |   26 +
 gdb/c-exp.y                                  |  477 +++-
 gdb/c-lang.c                                 |  826 ++++++-
 gdb/c-lang.h                                 |   41 +-
 gdb/c-valprint.c                             |   83 +-
 gdb/charset-list.h                           | 1190 +++++++++
 gdb/charset.c                                | 1559 ++++-------
 gdb/charset.h                                |  184 +-
 gdb/config.in                                |    6 +
 gdb/configure                                |  639 +++--
 gdb/configure.ac                             |   60 +-
 gdb/darwin-nat.c                             |    8 +-
 gdb/defs.h                                   |    2 +
 gdb/doc/ChangeLog                            |   50 +
 gdb/doc/gdb.texinfo                          |  169 +-
 gdb/doc/gdbint.texinfo                       | 1651 +++++++++---
 gdb/doc/observer.texi                        |    4 +
 gdb/doc/stack_frame.eps                      | 3708 ++++++++++++++++++++++++++
 gdb/doc/stack_frame.pdf                      |  Bin 0 -> 77972 bytes
 gdb/doc/stack_frame.png                      |  Bin 0 -> 67273 bytes
 gdb/doc/stack_frame.svg                      |  866 ++++++
 gdb/doc/stack_frame.txt                      |   39 +
 gdb/dwarf2expr.c                             |    2 +-
 gdb/dwarf2read.c                             |    1 +
 gdb/eval.c                                   |   18 +-
 gdb/expprint.c                               |   12 +-
 gdb/f-lang.c                                 |   20 +-
 gdb/f-valprint.c                             |    7 +-
 gdb/gdb_locale.h                             |    4 +
 gdb/gdb_obstack.h                            |    3 +
 gdb/{mi/mi-main.h => gdb_usleep.c}           |   35 +-
 gdb/{mi/mi-main.h => gdb_usleep.h}           |   24 +-
 gdb/gdb_wchar.h                              |   62 +
 gdb/gdbserver/ChangeLog                      |   25 +
 gdb/gdbserver/Makefile.in                    |   18 +-
 gdb/gdbserver/configure                      |    2 +-
 gdb/gdbserver/configure.ac                   |    6 +-
 gdb/gdbserver/gdbreplay.c                    |    2 +-
 gdb/gdbserver/i387-fp.c                      |   40 +-
 gdb/gdbserver/inferiors.c                    |    5 +-
 gdb/gdbserver/linux-arm-low.c                |    2 +-
 gdb/gdbserver/linux-cris-low.c               |    4 +-
 gdb/gdbserver/linux-crisv32-low.c            |   44 +-
 gdb/gdbserver/linux-i386-low.c               |    4 +-
 gdb/gdbserver/linux-low.c                    |  177 +-
 gdb/gdbserver/linux-mips-low.c               |    2 +-
 gdb/gdbserver/linux-s390-low.c               |    1 -
 gdb/gdbserver/linux-sparc-low.c              |   39 +-
 gdb/gdbserver/linux-x86-64-low.c             |   10 +-
 gdb/gdbserver/linux-xtensa-low.c             |    2 +-
 gdb/gdbserver/proc-service.c                 |    2 -
 gdb/gdbserver/regcache.c                     |    5 +-
 gdb/gdbserver/remote-utils.c                 |   48 +-
 gdb/gdbserver/server.c                       |   56 +-
 gdb/gdbserver/spu-low.c                      |    8 +-
 gdb/gdbserver/target.h                       |    8 +-
 gdb/gdbserver/thread-db.c                    |    2 +-
 gdb/gdbserver/win32-low.c                    |   82 +-
 gdb/gdbserver/xtensa-xtregs.c                |    1 -
 gdb/gdbthread.h                              |    4 +
 gdb/gdbtypes.h                               |    5 +-
 gdb/infcall.c                                |   26 +-
 gdb/infcmd.c                                 |   27 +-
 gdb/inferior.h                               |   12 -
 gdb/infrun.c                                 |   34 +-
 gdb/jv-lang.c                                |    5 +-
 gdb/jv-valprint.c                            |    4 +-
 gdb/language.c                               |   16 +-
 gdb/language.h                               |   21 +-
 gdb/m2-lang.c                                |   19 +-
 gdb/m2-valprint.c                            |   10 +-
 gdb/macroexp.c                               |   31 +-
 gdb/mi/mi-interp.c                           |   32 +-
 gdb/mi/mi-main.c                             |    5 +
 gdb/mi/mi-main.h                             |    1 +
 gdb/objc-lang.c                              |   16 +-
 gdb/p-lang.c                                 |   32 +-
 gdb/p-lang.h                                 |    9 +-
 gdb/p-valprint.c                             |   20 +-
 gdb/parse.c                                  |   61 +-
 gdb/parser-defs.h                            |   18 +
 gdb/printcmd.c                               |  104 +-
 gdb/python/python-cmd.c                      |   12 +-
 gdb/python/python-function.c                 |  180 ++
 gdb/python/python-internal.h                 |    1 +
 gdb/python/python-value.c                    |   24 +-
 gdb/python/python.c                          |   12 +-
 gdb/scm-lang.c                               |    6 +-
 gdb/scm-lang.h                               |    2 +-
 gdb/scm-valprint.c                           |    3 +-
 gdb/ser-unix.c                               |    9 +-
 gdb/symfile.c                                |    9 +-
 gdb/testsuite/ChangeLog                      |   41 +
 gdb/testsuite/gdb.base/auxv.exp              |   12 +-
 gdb/testsuite/gdb.base/call-rt-st.exp        |    2 +-
 gdb/testsuite/gdb.base/callfuncs.exp         |   14 +-
 gdb/testsuite/gdb.base/charset.c             |   39 +-
 gdb/testsuite/gdb.base/charset.exp           |  214 +-
 gdb/testsuite/gdb.base/constvars.exp         |    6 +-
 gdb/testsuite/gdb.base/long_long.exp         |   10 +-
 gdb/testsuite/gdb.base/pointers.exp          |    2 +-
 gdb/testsuite/gdb.base/printcmds.exp         |   58 +-
 gdb/testsuite/gdb.base/setvar.exp            |    6 +-
 gdb/testsuite/gdb.base/store.exp             |    4 +-
 gdb/testsuite/gdb.cp/ref-types.exp           |    4 +-
 gdb/testsuite/gdb.python/python-cmd.exp      |   26 +
 gdb/testsuite/gdb.python/python-function.exp |   79 +
 gdb/testsuite/lib/gdb.exp                    |    3 +
 gdb/thread.c                                 |    6 +-
 gdb/typeprint.c                              |    2 +-
 gdb/utils.c                                  |  127 +-
 gdb/valops.c                                 |   18 +
 gdb/valprint.c                               |   20 +-
 gdb/valprint.h                               |    5 +-
 gdb/value.c                                  |  113 +-
 gdb/value.h                                  |   29 +-
 gdb/version.in                               |    2 +-
 gdb/windows-nat.c                            |  350 ++-
 include/elf/ChangeLog                        |    4 +
 include/elf/common.h                         |    1 +
 libiberty/ChangeLog                          |    8 +
 libiberty/cp-demangle.c                      |   24 +-
 libiberty/testsuite/demangle-expected        |   10 +-
 142 files changed, 12202 insertions(+), 3081 deletions(-)
 create mode 100644 gdb/charset-list.h
 create mode 100644 gdb/doc/stack_frame.eps
 create mode 100644 gdb/doc/stack_frame.pdf
 create mode 100644 gdb/doc/stack_frame.png
 create mode 100644 gdb/doc/stack_frame.svg
 create mode 100644 gdb/doc/stack_frame.txt
 copy gdb/{mi/mi-main.h => gdb_usleep.c} (58%)
 copy gdb/{mi/mi-main.h => gdb_usleep.h} (58%)
 create mode 100644 gdb/gdb_wchar.h
 create mode 100644 gdb/python/python-function.c
 create mode 100644 gdb/testsuite/gdb.python/python-function.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index dc5454b..dfb9bb5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,53 @@
+2009-03-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
+	(bfd_i386_arch_intel_syntax): Likewise.
+	(i8086_arch): Likewise.
+	(bfd_x86_64_arch): Likewise.
+
+2009-03-24  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (cris_elf_relocate_section): <case
+	R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
+	symbols for non-allocated sections.  Don't check whether to
+	generate R_CRIS_DTPMOD for non-allocated sections.
+	(cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
+	handle relocation GC:ing if applied to non-allocated section.
+	(cris_elf_check_relocs): Similar.
+
+	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
+	<R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
+	when emitting a known TP offset in the GOT.
+
+2009-03-23  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf64-ppc.c (synthetic_opd): Delete.
+	(compare_symbols): Look for .opd name rather than section match.
+	(ppc64_elf_get_synthetic_symtab): Likewise.
+
+2009-03-21  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-ppc.c (is_pic_glink_stub): Delete.
+	(is_nonpic_glink_stub): New function.
+	(ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
+	than first pic one.
+	(struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
+
+2009-03-20  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+	    Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
+
+	* elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
+        macros for visibilty and locality checks.
+	(elf_s390_adjust_dynamic_symbol): Likewise.
+	(allocate_dynrelocs): Likewise.
+	(elf_s390_relocate_section): Likewise.
+	(elf_s390_finish_dynamic_symbol): Likewise.
+	* elf64-s390.c (elf_s390_check_relocs): Likewise.
+	(elf_s390_adjust_dynamic_symbol): Likewise.
+	(allocate_dynrelocs): Likewise.
+	(elf_s390_relocate_section): Likewise.
+	(elf_s390_finish_dynamic_symbol): Likewise.
+
 2009-03-19  Kai Tietz  <kai.tietz@onevision.com>
 
 	* bfd-in2.h: Regenerated.
diff --git a/bfd/cpu-i386.c b/bfd/cpu-i386.c
index 4001a05..952e659 100644
--- a/bfd/cpu-i386.c
+++ b/bfd/cpu-i386.c
@@ -23,7 +23,7 @@
 #include "bfd.h"
 #include "libbfd.h"
 
-const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
+static const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
 {
   64, /* 64 bits in a word */
   64, /* 64 bits in an address */
@@ -39,7 +39,7 @@ const bfd_arch_info_type bfd_x86_64_arch_intel_syntax =
   0
 };
 
-const bfd_arch_info_type bfd_i386_arch_intel_syntax =
+static const bfd_arch_info_type bfd_i386_arch_intel_syntax =
 {
   32,	/* 32 bits in a word */
   32,	/* 32 bits in an address */
@@ -55,7 +55,7 @@ const bfd_arch_info_type bfd_i386_arch_intel_syntax =
   &bfd_x86_64_arch_intel_syntax
 };
 
-const bfd_arch_info_type i8086_arch =
+static const bfd_arch_info_type i8086_arch =
 {
   32,	/* 32 bits in a word */
   32,	/* 32 bits in an address (well, not really) */
@@ -71,7 +71,7 @@ const bfd_arch_info_type i8086_arch =
   &bfd_i386_arch_intel_syntax
 };
 
-const bfd_arch_info_type bfd_x86_64_arch =
+static const bfd_arch_info_type bfd_x86_64_arch =
 {
   64, /* 32 bits in a word */
   64, /* 32 bits in an address */
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index bd6de29..ed1f3e8 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -1615,10 +1615,12 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	case R_CRIS_16_DTPREL:
 	case R_CRIS_32_DTPREL:
 	  /* This relocation must only be performed against local
-	     symbols.  It's also ok when we link a program and the
-	     symbol is defined in an ordinary (non-DSO) object (if
-	     it's undefined there, we've already seen an error).  */
+	     symbols, or to sections that are not loadable.  It's also
+	     ok when we link a program and the symbol is defined in an
+	     ordinary (non-DSO) object (if it's undefined there, we've
+	     already seen an error).  */
 	  if (h != NULL
+	      && (input_section->flags & SEC_ALLOC) != 0
 	      && ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
 	      && (info->shared
 		  || (!h->def_regular
@@ -1641,14 +1643,16 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	      return FALSE;
 	    }
 
-	  BFD_ASSERT (elf_cris_hash_table (info)->dtpmod_refcount != 0);
+	  BFD_ASSERT ((input_section->flags & SEC_ALLOC) == 0
+		      || elf_cris_hash_table (info)->dtpmod_refcount != 0);
 
 	  /* Fill in a R_CRIS_DTPMOD reloc at offset 3 if we haven't
 	     already done so.  Note that we do this in .got.plt, not
 	     in .got, as .got.plt contains the first part, still the
 	     reloc is against .got, because the linker script directs
 	     (is required to direct) them both into .got.  */
-	  if (elf_cris_hash_table (info)->dtpmod_refcount > 0)
+	  if (elf_cris_hash_table (info)->dtpmod_refcount > 0
+	      && (input_section->flags & SEC_ALLOC) != 0)
 	    {
 	      asection *sgotplt = bfd_get_section_by_name (dynobj, ".got.plt");
 	      BFD_ASSERT (sgotplt != NULL);
@@ -1735,9 +1739,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	      bfd_vma off;
 
 	      /* The symbol is defined in the program, so just write
-		 (1, -prog_tls_size+known_tpoffset) into the GOT.  */
+		 (1, known_tpoffset) into the GOT.  */
 	      relocation -= elf_hash_table (info)->tls_sec->vma;
-	      relocation -= elf_hash_table (info)->tls_size;
 
 	      if (h != NULL)
 		{
@@ -2685,6 +2688,10 @@ cris_elf_gc_sweep_hook (bfd *abfd,
 	  break;
 
 	case R_CRIS_32_DTPREL:
+	  /* This'd be a .dtpreld entry in e.g. debug info.  */
+	  if ((sec->flags & SEC_ALLOC) == 0)
+	    break;
+	  /* Fall through.  */
 	case R_CRIS_16_DTPREL:
 	  elf_cris_hash_table (info)->dtpmod_refcount--;
 	  if (elf_cris_hash_table (info)->dtpmod_refcount == 0)
@@ -3152,8 +3159,17 @@ cris_elf_check_relocs (abfd, info, sec, relocs)
 	 on the first input bfd we found that contained dynamic relocs.  */
       switch (r_type)
 	{
-	case R_CRIS_16_DTPREL:
 	case R_CRIS_32_DTPREL:
+	  if ((sec->flags & SEC_ALLOC) == 0)
+	    /* This'd be a .dtpreld entry in e.g. debug info.  We have
+	       several different switch statements below, but none of
+	       that is needed; we need no preparations for resolving
+	       R_CRIS_32_DTPREL into a non-allocated section (debug
+	       info), so let's just move on to the next
+	       relocation.  */
+	    continue;
+	  /* Fall through.  */
+	case R_CRIS_16_DTPREL:
 	  /* The first .got.plt entry is right after the R_CRIS_DTPMOD
 	     entry at index 3. */
 	  if (elf_cris_hash_table (info)->dtpmod_refcount == 0)
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 5db64b0..e15f88e 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -2328,26 +2328,17 @@ ppc_elf_final_write_processing (bfd *abfd, bfd_boolean linker ATTRIBUTE_UNUSED)
 }
 \f
 static bfd_boolean
-is_pic_glink_stub (bfd *abfd, asection *glink, bfd_vma off)
+is_nonpic_glink_stub (bfd *abfd, asection *glink, bfd_vma off)
 {
-  bfd_byte buf[16];
-  unsigned int insn;
+  bfd_byte buf[GLINK_ENTRY_SIZE];
 
-  if (!bfd_get_section_contents (abfd, glink, buf, off, 16))
+  if (!bfd_get_section_contents (abfd, glink, buf, off, GLINK_ENTRY_SIZE))
     return FALSE;
 
-  insn = bfd_get_32 (abfd, buf);
-  if ((insn & 0xffff0000) == LWZ_11_30
-      && bfd_get_32 (abfd, buf + 4) == MTCTR_11
-      && bfd_get_32 (abfd, buf + 8) == BCTR)
-    return TRUE;
-
-  if ((insn & 0xffff0000) == ADDIS_11_30
-      && (bfd_get_32 (abfd, buf + 4) & 0xffff0000) == LWZ_11_11
-      && bfd_get_32 (abfd, buf + 8) == MTCTR_11
-      && bfd_get_32 (abfd, buf + 12) == BCTR)
-    return TRUE;
-  return FALSE;
+  return ((bfd_get_32 (abfd, buf + 0) & 0xffff0000) == LIS_11
+	  && (bfd_get_32 (abfd, buf + 4) & 0xffff0000) == LWZ_11_11
+	  && bfd_get_32 (abfd, buf + 8) == MTCTR_11
+	  && bfd_get_32 (abfd, buf + 12) == BCTR);
 }
 
 static bfd_boolean
@@ -2484,10 +2475,8 @@ ppc_elf_get_synthetic_symtab (bfd *abfd, long symcount, asymbol **syms,
      multiple stubs for each plt entry.  If that is the case then
      there is no way to associate stubs with their plt entries short
      of figuring out the GOT pointer value used in the stub.  */
-  if (!bfd_get_section_contents (abfd, glink, buf,
-				 stub_vma - glink->vma, 4)
-      || ((bfd_get_32 (abfd, buf) & 0xffff0000) != LIS_11
-	  && is_pic_glink_stub (abfd, glink, stub_vma - glink->vma - 16)))
+  if (!is_nonpic_glink_stub (abfd, glink,
+			     glink_vma - GLINK_ENTRY_SIZE - glink->vma))
     return 0;
 
   slurp_relocs = get_elf_backend_data (abfd)->s->slurp_reloc_table;
@@ -2722,7 +2711,7 @@ struct ppc_elf_link_hash_table
     bfd_vma offset;
   } tlsld_got;
 
-  /* Offset of PltResolve function in glink.  */
+  /* Offset of branch table to PltResolve function in glink.  */
   bfd_vma glink_pltresolve;
 
   /* Size of reserved GOT entries.  */
diff --git a/bfd/elf32-s390.c b/bfd/elf32-s390.c
index 7aadadc..14c4cb0 100644
--- a/bfd/elf32-s390.c
+++ b/bfd/elf32-s390.c
@@ -1261,7 +1261,7 @@ elf_s390_check_relocs (abfd, info, sec, relocs)
 		    && ELF32_R_TYPE (rel->r_info) != R_390_PC32DBL
 		    && ELF32_R_TYPE (rel->r_info) != R_390_PC32)
 		   || (h != NULL
-		       && (! info->symbolic
+		       && (! SYMBOLIC_BIND (info, h)
 			   || h->root.type == bfd_link_hash_defweak
 			   || !h->def_regular))))
 	      || (ELIMINATE_COPY_RELOCS
@@ -1566,11 +1566,9 @@ elf_s390_adjust_dynamic_symbol (info, h)
       || h->needs_plt)
     {
       if (h->plt.refcount <= 0
-	  || (! info->shared
-	      && !h->def_dynamic
-	      && !h->ref_dynamic
-	      && h->root.type != bfd_link_hash_undefweak
-	      && h->root.type != bfd_link_hash_undefined))
+	  || SYMBOL_CALLS_LOCAL (info, h)
+	  || (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
+	      && h->root.type != bfd_link_hash_undefweak))
 	{
 	  /* This case can occur if we saw a PLT32 reloc in an input
 	     file, but the symbol was never referred to by a dynamic
@@ -1709,9 +1707,7 @@ allocate_dynrelocs (h, inf)
   htab = elf_s390_hash_table (info);
 
   if (htab->elf.dynamic_sections_created
-      && h->plt.refcount > 0
-      && (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
-	  || h->root.type != bfd_link_hash_undefweak))
+      && h->plt.refcount > 0)
     {
       /* Make sure this symbol is output as a dynamic symbol.
 	 Undefined weak syms won't yet be marked as dynamic.  */
@@ -1840,7 +1836,7 @@ allocate_dynrelocs (h, inf)
 
   if (info->shared)
     {
-      if (SYMBOL_REFERENCES_LOCAL (info, h))
+      if (SYMBOL_CALLS_LOCAL (info, h))
 	{
 	  struct elf_s390_dyn_relocs **pp;
 
@@ -2364,10 +2360,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 	      dyn = htab->elf.dynamic_sections_created;
 	      if (! WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, info->shared, h)
 		  || (info->shared
-		      && (info->symbolic
-			  || h->dynindx == -1
-			  || h->forced_local)
-		      && h->def_regular)
+		      && SYMBOL_REFERENCES_LOCAL (info, h))
 		  || (ELF_ST_VISIBILITY (h->other)
 		      && h->root.type == bfd_link_hash_undefweak))
 		{
@@ -2537,8 +2530,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 		    && r_type != R_390_PC16DBL
 		    && r_type != R_390_PC32DBL
 		    && r_type != R_390_PC32)
-		   || (h != NULL
-		       && !SYMBOL_REFERENCES_LOCAL (info, h))))
+		   || !SYMBOL_CALLS_LOCAL (info, h)))
 	      || (ELIMINATE_COPY_RELOCS
 		  && !info->shared
 		  && h != NULL
@@ -2580,7 +2572,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 			   || r_type == R_390_PC32DBL
 			   || r_type == R_390_PC32
 			   || !info->shared
-			   || !info->symbolic
+			   || !SYMBOLIC_BIND (info, h)
 			   || !h->def_regular))
 		{
 		  outrel.r_info = ELF32_R_INFO (h->dynindx, r_type);
@@ -3262,11 +3254,10 @@ elf_s390_finish_dynamic_symbol (output_bfd, info, h, sym)
 	 The entry in the global offset table will already have been
 	 initialized in the relocate_section function.  */
       if (info->shared
-	  && (info->symbolic
-	      || h->dynindx == -1
-	      || h->forced_local)
-	  && h->def_regular)
+	  && SYMBOL_REFERENCES_LOCAL (info, h))
 	{
+	  if (!h->def_regular)
+	    return FALSE;
 	  BFD_ASSERT((h->got.offset & 1) != 0);
 	  rela.r_info = ELF32_R_INFO (0, R_390_RELATIVE);
 	  rela.r_addend = (h->root.u.def.value
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 1873728..ce82e16 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -2689,7 +2689,6 @@ get_opd_info (asection * sec)
 }
 \f
 /* Parameters for the qsort hook.  */
-static asection *synthetic_opd;
 static bfd_boolean synthetic_relocatable;
 
 /* qsort comparison function for ppc64_elf_get_synthetic_symtab.  */
@@ -2707,9 +2706,11 @@ compare_symbols (const void *ap, const void *bp)
     return 1;
 
   /* then .opd symbols.  */
-  if (a->section == synthetic_opd && b->section != synthetic_opd)
+  if (strcmp (a->section->name, ".opd") == 0
+      && strcmp (b->section->name, ".opd") != 0)
     return -1;
-  if (a->section != synthetic_opd && b->section == synthetic_opd)
+  if (strcmp (a->section->name, ".opd") != 0
+      && strcmp (b->section->name, ".opd") == 0)
     return 1;
 
   /* then other code symbols.  */
@@ -2863,7 +2864,6 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
   else
     memcpy (syms, static_syms, (symcount + 1) * sizeof (*syms));
 
-  synthetic_opd = opd;
   synthetic_relocatable = relocatable;
   qsort (syms, symcount, sizeof (*syms), compare_symbols);
 
@@ -2881,7 +2881,7 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
     }
 
   i = 0;
-  if (syms[i]->section == opd)
+  if (strcmp (syms[i]->section->name, ".opd") == 0)
     ++i;
   codesecsym = i;
 
@@ -2898,7 +2898,7 @@ ppc64_elf_get_synthetic_symtab (bfd *abfd,
   secsymend = i;
 
   for (; i < symcount; ++i)
-    if (syms[i]->section != opd)
+    if (strcmp (syms[i]->section->name, ".opd") != 0)
       break;
   opdsymend = i;
 
diff --git a/bfd/elf64-s390.c b/bfd/elf64-s390.c
index 7d8795e..21a5864 100644
--- a/bfd/elf64-s390.c
+++ b/bfd/elf64-s390.c
@@ -1228,7 +1228,7 @@ elf_s390_check_relocs (abfd, info, sec, relocs)
 		    && ELF64_R_TYPE (rel->r_info) != R_390_PC32DBL
 		    && ELF64_R_TYPE (rel->r_info) != R_390_PC64)
 		   || (h != NULL
-		       && (! info->symbolic
+		       && (! SYMBOLIC_BIND (info, h)
 			   || h->root.type == bfd_link_hash_defweak
 			   || !h->def_regular))))
 	      || (ELIMINATE_COPY_RELOCS
@@ -1541,11 +1541,9 @@ elf_s390_adjust_dynamic_symbol (info, h)
       || h->needs_plt)
     {
       if (h->plt.refcount <= 0
-	  || (! info->shared
-	      && !h->def_dynamic
-	      && !h->ref_dynamic
-	      && h->root.type != bfd_link_hash_undefweak
-	      && h->root.type != bfd_link_hash_undefined))
+	  || SYMBOL_CALLS_LOCAL (info, h)
+	  || (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
+	      && h->root.type == bfd_link_hash_undefweak))
 	{
 	  /* This case can occur if we saw a PLT32 reloc in an input
 	     file, but the symbol was never referred to by a dynamic
@@ -1684,9 +1682,7 @@ allocate_dynrelocs (h, inf)
   htab = elf_s390_hash_table (info);
 
   if (htab->elf.dynamic_sections_created
-      && h->plt.refcount > 0
-      && (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
-	  || h->root.type != bfd_link_hash_undefweak))
+      && h->plt.refcount > 0)
     {
       /* Make sure this symbol is output as a dynamic symbol.
 	 Undefined weak syms won't yet be marked as dynamic.  */
@@ -1815,7 +1811,7 @@ allocate_dynrelocs (h, inf)
 
   if (info->shared)
     {
-      if (SYMBOL_REFERENCES_LOCAL (info, h))
+      if (SYMBOL_CALLS_LOCAL (info, h))
 	{
 	  struct elf_s390_dyn_relocs **pp;
 
@@ -2340,10 +2336,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 	      dyn = htab->elf.dynamic_sections_created;
 	      if (! WILL_CALL_FINISH_DYNAMIC_SYMBOL (dyn, info->shared, h)
 		  || (info->shared
-		      && (info->symbolic
-			  || h->dynindx == -1
-			  || h->forced_local)
-		      && h->def_regular)
+		      && SYMBOL_REFERENCES_LOCAL (info, h))
 		  || (ELF_ST_VISIBILITY (h->other)
 		      && h->root.type == bfd_link_hash_undefweak))
 		{
@@ -2519,8 +2512,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 		    && r_type != R_390_PC32
 		    && r_type != R_390_PC32DBL
 		    && r_type != R_390_PC64)
-		   || (h != NULL
-		       && !SYMBOL_REFERENCES_LOCAL (info, h))))
+		   || !SYMBOL_CALLS_LOCAL (info, h)))
 	      || (ELIMINATE_COPY_RELOCS
 		  && !info->shared
 		  && h != NULL
@@ -2563,7 +2555,7 @@ elf_s390_relocate_section (output_bfd, info, input_bfd, input_section,
 			   || r_type == R_390_PC32DBL
 			   || r_type == R_390_PC64
 			   || !info->shared
-			   || !info->symbolic
+			   || !SYMBOLIC_BIND (info, h)
 			   || !h->def_regular))
 		{
 		  outrel.r_info = ELF64_R_INFO (h->dynindx, r_type);
@@ -3168,11 +3160,10 @@ elf_s390_finish_dynamic_symbol (output_bfd, info, h, sym)
 	 The entry in the global offset table will already have been
 	 initialized in the relocate_section function.  */
       if (info->shared
-	  && (info->symbolic
-	      || h->dynindx == -1
-	      || h->forced_local)
-	  && h->def_regular)
+	  && SYMBOL_REFERENCES_LOCAL (info, h))
 	{
+	  if (!h->def_regular)
+	    return FALSE;
 	  BFD_ASSERT((h->got.offset & 1) != 0);
 	  rela.r_info = ELF64_R_INFO (0, R_390_RELATIVE);
 	  rela.r_addend = (h->root.u.def.value
diff --git a/bfd/version.h b/bfd/version.h
index 8fe3dcb..21bfd82 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20090319
+#define BFD_VERSION_DATE 20090324
 #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/gdb/ChangeLog b/gdb/ChangeLog
index 107396e..a88bc6b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,490 @@
+2009-03-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* configure.ac: Initialize the variable $PREFER_CURSES.
+	* configure: Regenerated.
+
+2009-03-24  Jan Kratochvil  <jan.kratochvil@redhat.com>
+


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-03-20 17:08 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-03-20 17:08 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  7106f1d0117d444f3eccb83c74fde7c36e41a882 (commit)
       via  f6c4f4bcef04d0570b54ad5018bee1f18c558f0f (commit)
       via  00c72a380f005f60d894849f75a100aef41a64c5 (commit)
       via  3cac04bb9690610124cae1edaf7c00586e2ff20a (commit)
       via  b9c4946d6ccda8c5822d0477bc97ecf66443c0d8 (commit)
       via  7f8922c7dc999f143e8b5ad96ee0b6da65e9e958 (commit)
       via  feb5906a26ae6ac25421e68af62b980f77d161d2 (commit)
       via  37bf1aa770645ab3651059d21f63d61f35ce8c75 (commit)
       via  35a99eec6383d50976240f9616dfb58261a8c26c (commit)
       via  bdc15da4ffbed38da8cf01bb7e51c4828ddf92bf (commit)
       via  8668207120c7bcd12428005f6ca23e0930c79ccf (commit)
       via  d16cd7f687a1cd6a59c29f2d7d047afa2a36b24a (commit)
       via  9d4c404f085e44f57198b9dd49c19b98438b6312 (commit)
       via  e4e4cf0c68335d414443577034bd1b78e6d6801b (commit)
       via  4a21824c4e5ae0c9de855e459ad213cd3739cbc6 (commit)
       via  a8216bad276394c3b79823f94943e513b8e8da4a (commit)
       via  d74e50a6ebd519021f395b50bbd6288fca11ec7f (commit)
       via  878507e5212b2b26ef6703f9a6caf8a1dacee012 (commit)
       via  41f3f3478ace2386cd55dd7ddaa4b01d07fea4c2 (commit)
       via  828ee76fe6e084e7844b9728fc16b07d80e55bef (commit)
       via  3ee2df87e7214fb741d5ab7997be17a500db8fd5 (commit)
       via  20aea9dca5fa69b9384adc82e74403992583333d (commit)
       via  3eee5409dd191f20d8aa34cf4d0ed8c397e239e1 (commit)
       via  1337af2c5e39e4cd16c98708292db3aa7f166305 (commit)
       via  94a096f938768a4d82f1cbc0f0087cf7945a732c (commit)
       via  80c354acbef216f2f16ff0dc5063e2b2ea62bafc (commit)
       via  0d9c52f7198b5f765f029111132de9aec407391a (commit)
       via  61207893e6ca2d50d5d0cd0177282d0bb5e0a6ae (commit)
       via  cbc007ab970d823f6b227905750b59854a0b4b29 (commit)
       via  3a6e68ebef6ab5687ecac21cdfba472342ed8a16 (commit)
       via  fd944dcf8360733363a810773e2cf2d1c4c9b64b (commit)
       via  5c82fe5ff8b977094f1eed336b93b42b2d94e9b8 (commit)
       via  ecc831560c4430bb256b3f1de4901350f3145189 (commit)
       via  62c51403278e51642a9c47ae412b0e20bb1c9a91 (commit)
       via  3f5c6cdd418790ed494542e0b46676a9cdfc51fd (commit)
       via  afe3398d21aeb2db9102943064d3f8f3dca65a78 (commit)
       via  4154ca785ead2ff26e43e11779ba6ec7a2c33e50 (commit)
       via  6e4b1a5d7f013dce3488b8e085602d247db3ecd3 (commit)
       via  d74691357824a02883c9b0fc618ac72605d055bb (commit)
       via  8b968dd733cdad869f9ecf5ee49921f0808eb5c8 (commit)
       via  2a6adb4f5011d2b573c770e37d5b9d46c648756d (commit)
       via  e43e248c3fb96a6d81437a3bf6e76e316dbd85fd (commit)
       via  018ef8b6676a4273b283377ea97315fbf9766569 (commit)
       via  9f3ba2c986b1dfcbef83e207b04b7a8c36813e22 (commit)
       via  4c665bf01df990b025c2f0d3b48cc25c06aef17e (commit)
       via  bd05934f6fc4af74a26ce299d0c98b9bafab3bee (commit)
       via  188e8d512a5d5b78bfcc7f4bddbf03f97657ca2f (commit)
       via  2ef8938e922a1e1ee34289b2d5b27dd35cf634d3 (commit)
       via  36df8be687fd208ad1af239d5dcdafca6f100dab (commit)
       via  d232f05ca5ebf81feec050cc89a398a1aad194bb (commit)
       via  a815a109a4baa3595efdad89b1bd02a2a5173da2 (commit)
       via  283228f90893965ad467c82e57839e70566b2262 (commit)
       via  61f1c81818350fac95ec24bb30725815101d657f (commit)
       via  d839f4146b052a37a401ddc6c2832a627655a170 (commit)
       via  6717cbae1062bad54a6afc9346c6c7e5592a4cc6 (commit)
       via  6ae52b97315e7335557904ecc209ef3ae28cbc00 (commit)
       via  85348bc937acb9e8231604801b7f6f0527138045 (commit)
       via  713d3e48f8e8d699ccc71e1b8ecccbca943d94f3 (commit)
       via  34acffeb667e03ab09051cbdb4cac4d64609bac1 (commit)
       via  fef853a84582f229c0e2af35fd88eb023fd8fee3 (commit)
       via  35aa8b0f44761a36363ee209ab4cda824097f7d5 (commit)
       via  317e9ce1e0dd315fd4dba1858065563e066bf9d9 (commit)
      from  8d67a974fccc4064d1341aeb51421b1bebf88fdf (commit)

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

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                          |   34 ++
 Makefile.def                                       |   12 +
 Makefile.in                                        |  388 ++++++++++++++++++++
 bfd/ChangeLog                                      |   94 +++++-
 bfd/Makefile.am                                    |   33 +-
 bfd/Makefile.in                                    |   34 +-
 bfd/bfd-in2.h                                      |    4 +
 bfd/coffcode.h                                     |   29 +-
 bfd/config.bfd                                     |    2 -
 bfd/configure                                      |    4 +-
 bfd/configure.in                                   |    4 +-
 bfd/dwarf2.c                                       |    3 +-
 bfd/elf.c                                          |   69 ++++
 bfd/elf32-arm.c                                    |    4 +-
 bfd/elf32-hppa.c                                   |    6 +-
 bfd/elf32-m68hc1x.c                                |    5 +-
 bfd/elf32-spu.c                                    |  336 +++++++++--------
 bfd/elf32-spu.h                                    |    9 +-
 bfd/elf64-hppa.c                                   |   26 +--
 bfd/section.c                                      |    4 +
 bfd/simple.c                                       |    3 +-
 bfd/som.c                                          |   27 +--
 bfd/targets.c                                      |    4 +-
 bfd/version.h                                      |    2 +-
 bfd/vms-hdr.c                                      |    4 -
 bfd/xsym.c                                         |    5 +-
 configure                                          |   80 +++--
 configure.ac                                       |   68 ++--
 gdb/ChangeLog                                      |  181 +++++++++-
 gdb/Makefile.in                                    |    6 +-
 gdb/ada-exp.y                                      |   24 +-
 gdb/ada-lex.l                                      |   30 +-
 gdb/aix-thread.c                                   |   57 ++--
 gdb/amd64-linux-nat.c                              |    9 +
 gdb/auxv.c                                         |    1 +
 gdb/breakpoint.c                                   |    2 +-
 gdb/c-exp.y                                        |   24 +-
 gdb/configure.tgt                                  |    2 +-
 gdb/cp-name-parser.y                               |   24 +-
 gdb/darwin-nat-info.c                              |    6 +-
 gdb/darwin-nat.c                                   |    2 +-
 gdb/defs.h                                         |    3 +
 gdb/doc/ChangeLog                                  |   12 +
 gdb/doc/gdb.texinfo                                |   19 +-
 gdb/expprint.c                                     |    7 +-
 gdb/f-exp.y                                        |   24 +-
 gdb/frame.c                                        |   31 +-
 gdb/gdb_thread_db.h                                |    8 +-
 gdb/gdbserver/ChangeLog                            |   48 +++
 gdb/gdbserver/linux-low.c                          |  348 +++++++++---------
 gdb/gdbserver/linux-low.h                          |   16 +-
 gdb/gdbserver/proc-service.c                       |   10 +-
 gdb/gdbserver/thread-db.c                          |   44 ++--
 gdb/gnu-nat.c                                      |    2 +-
 gdb/go32-nat.c                                     |   11 +-
 gdb/hppanbsd-nat.c                                 |    6 +-
 gdb/hppanbsd-tdep.c                                |    6 +-
 gdb/hppaobsd-tdep.c                                |    6 +-
 gdb/hpux-thread.c                                  |    4 +-
 gdb/inf-ptrace.c                                   |    2 +-
 gdb/inf-ttrace.c                                   |    2 +-
 gdb/infrun.c                                       |    4 +-
 gdb/jv-exp.y                                       |   24 +-
 gdb/linux-nat.c                                    |   26 +-
 gdb/m2-exp.y                                       |   24 +-
 gdb/mi/mi-main.h                                   |    4 +-
 gdb/monitor.c                                      |    2 +-
 gdb/nto-procfs.c                                   |    2 +-
 gdb/objc-exp.y                                     |    6 +-
 gdb/p-exp.y                                        |   24 +-
 gdb/printcmd.c                                     |   19 +-
 gdb/procfs.c                                       |    4 +-
 gdb/remote-m32r-sdi.c                              |    2 +-
 gdb/remote-mips.c                                  |   14 +-
 gdb/remote-sim.c                                   |    6 +-
 gdb/remote.c                                       |   13 +-
 gdb/reply_mig_hack.awk                             |    6 +-
 gdb/reverse.c                                      |    6 +-
 gdb/rs6000-nat.c                                   |    3 +-
 gdb/stack.c                                        |   79 ++++
 gdb/target.c                                       |   34 +-
 gdb/target.h                                       |    5 +-
 gdb/testsuite/ChangeLog                            |   24 ++
 gdb/testsuite/gdb.ada/fixed_points.exp             |   10 +
 .../gdb.ada/fixed_points/fixed_points.adb          |   39 ++-
 gdb/testsuite/gdb.base/return-nodebug.c            |   22 +-
 gdb/testsuite/gdb.base/return-nodebug.exp          |   44 ++-
 .../{return-nodebug.c => return-nodebug1.c}        |   29 +--
 gdb/testsuite/gdb.base/solib-display.exp           |    2 +-
 gdb/utils.c                                        |   17 +
 gdb/version.in                                     |    2 +-
 gdb/windows-nat.c                                  |    6 +-
 gdb/xtensa-xtregs.c                                |    2 +-
 include/ChangeLog                                  |   10 +
 include/alloca-conf.h                              |   60 ++-
 include/demangle.h                                 |    6 +-
 include/elf/ChangeLog                              |   10 +
 include/elf/common.h                               |   13 +
 libiberty/ChangeLog                                |   12 +
 libiberty/cp-demangle.c                            |   71 ++++-
 libiberty/testsuite/demangle-expected              |   18 +-
 opcodes/ChangeLog                                  |    7 +
 opcodes/Makefile.am                                |   10 +-
 opcodes/Makefile.in                                |   11 +-
 opcodes/cgen-opc.c                                 |    7 +-
 opcodes/openrisc-opc.c                             |    5 +-
 opcodes/score-dis.c                                |   36 ++-
 sim/common/ChangeLog                               |    5 +
 sim/common/sim-utils.c                             |    6 +-
 109 files changed, 2094 insertions(+), 967 deletions(-)
 copy gdb/testsuite/gdb.base/{return-nodebug.c => return-nodebug1.c} (69%)

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 5ee9384..7e44f7d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,37 @@
+2009-03-18  Tom Tromey  <tromey@redhat.com>
+
+	* configure: Rebuild.
+	* configure.ac (host_libs): Add libiconv.
+	* Makefile.in: Rebuild.
+	* Makefile.def (host_modules): Add libiconv.
+	(configure-gdb, all-gdb): Depend on libiconv.
+
+2009-03-16  Tristan Gingold  <gingold@adacore.com>
+
+	* configure.ac: Treat gdb as supported on x86_64-darwin.
+	* configure: Regenerate.
+
+2009-03-16  Joseph Myers  <joseph@codesourcery.com>
+
+	Merge from GCC:
+
+	2009-03-16  Joseph Myers  <joseph@codesourcery.com>
+
+	* configure.ac (--with-host-libstdcxx): New option.
+	* configure: Regenerate.
+
+	2009-01-29  Robert Millan  <rmh@aybabtu.com>
+
+	* configure.ac: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
+	* configure: Regenerate.
+
+	2009-01-12  Sebastian Pop <sebastian.pop@amd.com>
+
+	PR tree-optimization/38515
+	* configure.ac (cloog-polylib): Removed.
+	(with_ppl, with_cloog): Test for "no".
+	* configure: Regenerated.
+
 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Backport from git Libtool:
diff --git a/Makefile.def b/Makefile.def
index fee4dda..a0a5266 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -94,6 +94,14 @@ host_modules= { module= libcpp; bootstrap=true; };
 host_modules= { module= libdecnumber; bootstrap=true; };
 host_modules= { module= libgui; };
 host_modules= { module= libiberty; bootstrap=true; };
+// We abuse missing to avoid installing anything for libiconv.
+host_modules= { module= libiconv;
+		extra_configure_flags='--disable-shared';
+		no_install= true;
+		missing= install-info;
+		missing= install-pdf;
+		missing= install-html;
+		missing= install-info; };
 host_modules= { module= libtool; };
 host_modules= { module= m4; };
 host_modules= { module= make; };
@@ -339,7 +347,11 @@ dependencies = { module=configure-cloog; on=all-ppl; };
 dependencies = { module=configure-gdb; on=all-intl; };
 dependencies = { module=configure-gdb; on=configure-sim; };
 dependencies = { module=configure-gdb; on=all-bfd; };
+// Depend on all-libiconv so that configure checks for iconv
+// functions will work.
+dependencies = { module=configure-gdb; on=all-libiconv; };
 dependencies = { module=all-gdb; on=all-libiberty; };
+dependencies = { module=all-gdb; on=all-libiconv; };
 dependencies = { module=all-gdb; on=all-opcodes; };
 dependencies = { module=all-gdb; on=all-readline; };
 dependencies = { module=all-gdb; on=all-build-bison; };
diff --git a/Makefile.in b/Makefile.in
index 3ca3f26..26d1d01 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -714,6 +714,7 @@ configure-host:  \
     maybe-configure-libdecnumber \
     maybe-configure-libgui \
     maybe-configure-libiberty \
+    maybe-configure-libiconv \
     maybe-configure-libtool \
     maybe-configure-m4 \
     maybe-configure-make \
@@ -871,6 +872,7 @@ all-host: maybe-all-libgui
 @if libiberty-no-bootstrap
 all-host: maybe-all-libiberty
 @endif libiberty-no-bootstrap
+all-host: maybe-all-libiconv
 all-host: maybe-all-libtool
 all-host: maybe-all-m4
 all-host: maybe-all-make
@@ -989,6 +991,7 @@ info-host: maybe-info-libcpp
 info-host: maybe-info-libdecnumber
 info-host: maybe-info-libgui
 info-host: maybe-info-libiberty
+info-host: maybe-info-libiconv
 info-host: maybe-info-libtool
 info-host: maybe-info-m4
 info-host: maybe-info-make
@@ -1098,6 +1101,7 @@ dvi-host: maybe-dvi-libcpp
 dvi-host: maybe-dvi-libdecnumber
 dvi-host: maybe-dvi-libgui
 dvi-host: maybe-dvi-libiberty
+dvi-host: maybe-dvi-libiconv
 dvi-host: maybe-dvi-libtool
 dvi-host: maybe-dvi-m4
 dvi-host: maybe-dvi-make
@@ -1207,6 +1211,7 @@ pdf-host: maybe-pdf-libcpp
 pdf-host: maybe-pdf-libdecnumber
 pdf-host: maybe-pdf-libgui
 pdf-host: maybe-pdf-libiberty
+pdf-host: maybe-pdf-libiconv
 pdf-host: maybe-pdf-libtool
 pdf-host: maybe-pdf-m4
 pdf-host: maybe-pdf-make
@@ -1316,6 +1321,7 @@ html-host: maybe-html-libcpp
 html-host: maybe-html-libdecnumber
 html-host: maybe-html-libgui
 html-host: maybe-html-libiberty
+html-host: maybe-html-libiconv
 html-host: maybe-html-libtool
 html-host: maybe-html-m4
 html-host: maybe-html-make
@@ -1425,6 +1431,7 @@ TAGS-host: maybe-TAGS-libcpp
 TAGS-host: maybe-TAGS-libdecnumber
 TAGS-host: maybe-TAGS-libgui
 TAGS-host: maybe-TAGS-libiberty
+TAGS-host: maybe-TAGS-libiconv
 TAGS-host: maybe-TAGS-libtool
 TAGS-host: maybe-TAGS-m4
 TAGS-host: maybe-TAGS-make
@@ -1534,6 +1541,7 @@ install-info-host: maybe-install-info-libcpp
 install-info-host: maybe-install-info-libdecnumber
 install-info-host: maybe-install-info-libgui
 install-info-host: maybe-install-info-libiberty
+install-info-host: maybe-install-info-libiconv
 install-info-host: maybe-install-info-libtool
 install-info-host: maybe-install-info-m4
 install-info-host: maybe-install-info-make
@@ -1643,6 +1651,7 @@ install-pdf-host: maybe-install-pdf-libcpp
 install-pdf-host: maybe-install-pdf-libdecnumber
 install-pdf-host: maybe-install-pdf-libgui
 install-pdf-host: maybe-install-pdf-libiberty
+install-pdf-host: maybe-install-pdf-libiconv
 install-pdf-host: maybe-install-pdf-libtool
 install-pdf-host: maybe-install-pdf-m4
 install-pdf-host: maybe-install-pdf-make
@@ -1752,6 +1761,7 @@ install-html-host: maybe-install-html-libcpp
 install-html-host: maybe-install-html-libdecnumber
 install-html-host: maybe-install-html-libgui
 install-html-host: maybe-install-html-libiberty
+install-html-host: maybe-install-html-libiconv
 install-html-host: maybe-install-html-libtool
 install-html-host: maybe-install-html-m4
 install-html-host: maybe-install-html-make
@@ -1861,6 +1871,7 @@ installcheck-host: maybe-installcheck-libcpp
 installcheck-host: maybe-installcheck-libdecnumber
 installcheck-host: maybe-installcheck-libgui
 installcheck-host: maybe-installcheck-libiberty
+installcheck-host: maybe-installcheck-libiconv
 installcheck-host: maybe-installcheck-libtool
 installcheck-host: maybe-installcheck-m4
 installcheck-host: maybe-installcheck-make
@@ -1970,6 +1981,7 @@ mostlyclean-host: maybe-mostlyclean-libcpp
 mostlyclean-host: maybe-mostlyclean-libdecnumber
 mostlyclean-host: maybe-mostlyclean-libgui
 mostlyclean-host: maybe-mostlyclean-libiberty
+mostlyclean-host: maybe-mostlyclean-libiconv
 mostlyclean-host: maybe-mostlyclean-libtool
 mostlyclean-host: maybe-mostlyclean-m4
 mostlyclean-host: maybe-mostlyclean-make
@@ -2079,6 +2091,7 @@ clean-host: maybe-clean-libcpp
 clean-host: maybe-clean-libdecnumber
 clean-host: maybe-clean-libgui
 clean-host: maybe-clean-libiberty
+clean-host: maybe-clean-libiconv
 clean-host: maybe-clean-libtool
 clean-host: maybe-clean-m4
 clean-host: maybe-clean-make
@@ -2188,6 +2201,7 @@ distclean-host: maybe-distclean-libcpp
 distclean-host: maybe-distclean-libdecnumber
 distclean-host: maybe-distclean-libgui
 distclean-host: maybe-distclean-libiberty
+distclean-host: maybe-distclean-libiconv
 distclean-host: maybe-distclean-libtool
 distclean-host: maybe-distclean-m4
 distclean-host: maybe-distclean-make
@@ -2297,6 +2311,7 @@ maintainer-clean-host: maybe-maintainer-clean-libcpp
 maintainer-clean-host: maybe-maintainer-clean-libdecnumber
 maintainer-clean-host: maybe-maintainer-clean-libgui
 maintainer-clean-host: maybe-maintainer-clean-libiberty
+maintainer-clean-host: maybe-maintainer-clean-libiconv
 maintainer-clean-host: maybe-maintainer-clean-libtool
 maintainer-clean-host: maybe-maintainer-clean-m4
 maintainer-clean-host: maybe-maintainer-clean-make
@@ -2460,6 +2475,7 @@ check-host:  \
     maybe-check-libdecnumber \
     maybe-check-libgui \
     maybe-check-libiberty \
+    maybe-check-libiconv \
     maybe-check-libtool \
     maybe-check-m4 \
     maybe-check-make \
@@ -2595,6 +2611,7 @@ install-host-nogcc:  \
     maybe-install-libdecnumber \
     maybe-install-libgui \
     maybe-install-libiberty \
+    maybe-install-libiconv \
     maybe-install-libtool \
     maybe-install-m4 \
     maybe-install-make \
@@ -2671,6 +2688,7 @@ install-host:  \
     maybe-install-libdecnumber \
     maybe-install-libgui \
     maybe-install-libiberty \
+    maybe-install-libiconv \
     maybe-install-libtool \
     maybe-install-m4 \
     maybe-install-make \
@@ -29059,6 +29077,374 @@ maintainer-clean-libiberty:
 
 
 
+.PHONY: configure-libiconv maybe-configure-libiconv
+maybe-configure-libiconv:
+@if gcc-bootstrap
+configure-libiconv: stage_current
+@endif gcc-bootstrap
+@if libiconv
+maybe-configure-libiconv: configure-libiconv
+configure-libiconv: 
+	@: $(MAKE); $(unstage)
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	test ! -f $(HOST_SUBDIR)/libiconv/Makefile || exit 0; \
+	$(SHELL) $(srcdir)/mkinstalldirs $(HOST_SUBDIR)/libiconv ; \
+	$(HOST_EXPORTS) \
+	echo Configuring in $(HOST_SUBDIR)/libiconv; \
+	cd "$(HOST_SUBDIR)/libiconv" || exit 1; \
+	case $(srcdir) in \
+	  /* | [A-Za-z]:[\\/]*) topdir=$(srcdir) ;; \
+	  *) topdir=`echo $(HOST_SUBDIR)/libiconv/ | \
+		sed -e 's,\./,,g' -e 's,[^/]*/,../,g' `$(srcdir) ;; \
+	esac; \
+	srcdiroption="--srcdir=$${topdir}/libiconv"; \
+	libsrcdir="$$s/libiconv"; \
+	$(SHELL) $${libsrcdir}/configure \
+	  $(HOST_CONFIGARGS) --build=${build_alias} --host=${host_alias} \
+	  --target=${target_alias} $${srcdiroption} --disable-shared \
+	  || exit 1
+@endif libiconv
+
+
+
+
+
+.PHONY: all-libiconv maybe-all-libiconv
+maybe-all-libiconv:
+@if gcc-bootstrap
+all-libiconv: stage_current
+@endif gcc-bootstrap
+@if libiconv
+TARGET-libiconv=all
+maybe-all-libiconv: all-libiconv
+all-libiconv: configure-libiconv
+	@: $(MAKE); $(unstage)
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) $(EXTRA_HOST_FLAGS)  \
+		$(TARGET-libiconv))
+@endif libiconv
+
+
+
+
+.PHONY: check-libiconv maybe-check-libiconv
+maybe-check-libiconv:
+@if libiconv
+maybe-check-libiconv: check-libiconv
+
+check-libiconv:
+	@: $(MAKE); $(unstage)
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(FLAGS_TO_PASS)  check)
+
+@endif libiconv
+
+.PHONY: install-libiconv maybe-install-libiconv
+maybe-install-libiconv:
+@if libiconv
+maybe-install-libiconv: install-libiconv
+
+install-libiconv:
+
+@endif libiconv
+
+# Other targets (info, dvi, pdf, etc.)
+
+.PHONY: maybe-info-libiconv info-libiconv
+maybe-info-libiconv:
+@if libiconv
+maybe-info-libiconv: info-libiconv
+
+info-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing info in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          info) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-dvi-libiconv dvi-libiconv
+maybe-dvi-libiconv:
+@if libiconv
+maybe-dvi-libiconv: dvi-libiconv
+
+dvi-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing dvi in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          dvi) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-pdf-libiconv pdf-libiconv
+maybe-pdf-libiconv:
+@if libiconv
+maybe-pdf-libiconv: pdf-libiconv
+
+pdf-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing pdf in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          pdf) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-html-libiconv html-libiconv
+maybe-html-libiconv:
+@if libiconv
+maybe-html-libiconv: html-libiconv
+
+html-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing html in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          html) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-TAGS-libiconv TAGS-libiconv
+maybe-TAGS-libiconv:
+@if libiconv
+maybe-TAGS-libiconv: TAGS-libiconv
+
+TAGS-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing TAGS in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          TAGS) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-install-info-libiconv install-info-libiconv
+maybe-install-info-libiconv:
+@if libiconv
+maybe-install-info-libiconv: install-info-libiconv
+
+# libiconv doesn't support install-info.
+install-info-libiconv:
+
+@endif libiconv
+
+.PHONY: maybe-install-pdf-libiconv install-pdf-libiconv
+maybe-install-pdf-libiconv:
+@if libiconv
+maybe-install-pdf-libiconv: install-pdf-libiconv
+
+# libiconv doesn't support install-pdf.
+install-pdf-libiconv:
+
+@endif libiconv
+
+.PHONY: maybe-install-html-libiconv install-html-libiconv
+maybe-install-html-libiconv:
+@if libiconv
+maybe-install-html-libiconv: install-html-libiconv
+
+# libiconv doesn't support install-html.
+install-html-libiconv:
+
+@endif libiconv
+
+.PHONY: maybe-installcheck-libiconv installcheck-libiconv
+maybe-installcheck-libiconv:
+@if libiconv
+maybe-installcheck-libiconv: installcheck-libiconv
+
+installcheck-libiconv: \
+    configure-libiconv 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
+	$(HOST_EXPORTS) \
+	for flag in $(EXTRA_HOST_FLAGS) ; do \
+	  eval `echo "$$flag" | sed -e "s|^\([^=]*\)=\(.*\)|\1='\2'; export \1|"`; \
+	done; \
+	echo "Doing installcheck in libiconv" ; \
+	(cd $(HOST_SUBDIR)/libiconv && \
+	  $(MAKE) $(BASE_FLAGS_TO_PASS) "AR=$${AR}" "AS=$${AS}" \
+	          "CC=$${CC}" "CXX=$${CXX}" "LD=$${LD}" "NM=$${NM}" \
+	          "RANLIB=$${RANLIB}" \
+	          "DLLTOOL=$${DLLTOOL}" "WINDRES=$${WINDRES}" "WINDMC=$${WINDMC}" \
+	          installcheck) \
+	  || exit 1
+
+@endif libiconv
+
+.PHONY: maybe-mostlyclean-libiconv mostlyclean-libiconv
+maybe-mostlyclean-libiconv:
+@if libiconv
+maybe-mostlyclean-libiconv: mostlyclean-libiconv
+
+mostlyclean-libiconv: 
+	@: $(MAKE); $(unstage)
+	@[ -f ./libiconv/Makefile ] || exit 0; \
+	r=`${PWD_COMMAND}`; export r; \


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-03-15 14:37 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-03-15 14:37 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  8d67a974fccc4064d1341aeb51421b1bebf88fdf (commit)
       via  1cc83f114d652f8bd338b3508de5e9a6374809ae (commit)
       via  a0c065d83c2f5640226dac5f3c0e9fcd1fea2a72 (commit)
       via  6802dbca9a40e83795a45c7522ddf78ff0e7b325 (commit)
       via  8e953a57887ee5d20be67e0c83c0c9de378ed397 (commit)
       via  8b9369a02e1db5691cc4c20efe0b03d2ecf839e5 (commit)
       via  53efdee1dbb7d3a206eccf7b4990348f73f4d555 (commit)
       via  d8f1dba1d787988c88490dd986cd3744d3f04f72 (commit)
       via  00d8fe4be428570128fd3d3cf0709be51360c3d3 (commit)
       via  abb5856b6342884318de5bf2e7541c94b1075fc7 (commit)
       via  fce6254b4e6e24e6d2ea62167b6c10ff804ab561 (commit)
       via  0670c2918c269a3a4d6a8305908ac575bdddc71c (commit)
       via  3504ff5761600a919037d086afa494c81b732ecc (commit)
       via  cb5bd6c598173b62b15bb37fe4776c64889f9b47 (commit)
       via  828ce62c8e2516f858c4fb92fd35877fa3b7ede0 (commit)
       via  3b1ae69818be9a470eb6e95c9856cc3392466bfe (commit)
       via  71224307bde0cb21bc3af6ca9ae39a185f8a816a (commit)
       via  6e68813bf321f963f77848af9d0bcc7f04dc1d87 (commit)
       via  407fab21772b11da176e67f8feb7153e0b18cf95 (commit)
       via  d98eb9e289a591a82c08f226de1fa2a257bac603 (commit)
       via  2185460c34c7662b48e58cf58d8993ce0ec89773 (commit)
       via  34d2f40593b075375fd50292c7ca9e549b502bcb (commit)
       via  11b5532796e0e522baf0588943faad5eaa72e4dc (commit)
       via  be829f1879ac3c32d0b7f7ef408282dc5001cf11 (commit)
       via  6cf921c12d2b7ecc2322accb2c606cbd7456eb16 (commit)
       via  3d4128f37bb7e6ab7be1f8cd278c387a2c4cedac (commit)
       via  79cd916b74e5645a8051b17119368f8b455ec450 (commit)
       via  c19205a282d4acf4f98de51f3a9dd45746258824 (commit)
       via  b6baa86aedd02ccc76eec7512de30fa631376f2b (commit)
       via  48080f8b8c6bf65f13ce51e69e8e4f1ff3279cc0 (commit)
       via  b149ab952a09f3b31f2f9451020b145e230ac258 (commit)
       via  d2a7ebd93f2a72dbc0d150fea57c028c9afede15 (commit)
       via  084662c8c30b46798cbd6f6f72715b721f6f453f (commit)
       via  c7c22f6962e854cff5e36fcb28380456d3f5d838 (commit)
       via  8ff2d8e707b490a3221de434f6d3df604a904fbc (commit)
       via  b8600f7ad24559d7038d9c4b77dd519d23f9be06 (commit)
       via  992629921aa36c6bf82174ef22c2a120955ecf5c (commit)
       via  c8a81f6e8c87a17930caea048986cd815653b734 (commit)
       via  ab6145c706bdaee3615c93409108ba74d3ba3376 (commit)
       via  7684a5dbf99ce138626a84f34c71e332e29b37ed (commit)
       via  365e0b6e20055eaad0ed22826d747a65b9a9787b (commit)
       via  d3483556827162c6881993825366b3200713da2b (commit)
       via  d54922f960da0062b1ab35096b7d5301f66f784d (commit)
       via  6955a4981a80e100e4f12b9fe44758d45f527626 (commit)
       via  d85b4c3530d36893e40157f20989f619bf680bb9 (commit)
       via  40305a68cefa0975a1065654f52702b78e0f830f (commit)
       via  2fa50e60ad07d593c494e3940ea36bfcb6f54a37 (commit)
       via  a12585fffd92c8336f69b93eb34b1e0f7afea9c4 (commit)
       via  572abd81388d29a66a41e42fa2584a0bcb6cbd2a (commit)
       via  9bcbaf4d3d1f08a128e5838205d28f7e9dc0382d (commit)
       via  af404eace2d422e9ce55bbe59a5f8d803476703b (commit)
       via  322fc1378e70a9f5eb4ff1b980386dbc087d942b (commit)
       via  5473a6dd08b18061f817f784b197f44c949d2cf5 (commit)
       via  f77a1d8078de2b302571c21dd8b20457475f4e4f (commit)
      from  352a9c0849c0a71fa3b8e5365463de077150bef0 (commit)

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

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 bfd/ChangeLog                                      |  226 +++
 bfd/bfd-in.h                                       |    2 +-
 bfd/bfd-in2.h                                      |    2 +-
 bfd/coff-rs6000.c                                  |   84 +-
 bfd/coff64-rs6000.c                                |   78 +-
 bfd/coffcode.h                                     |    7 +-
 bfd/coffgen.c                                      |    1 +
 bfd/config.bfd                                     |    4 +-
 bfd/configure                                      |    2 +-
 bfd/configure.in                                   |    4 +-
 bfd/elf-bfd.h                                      |    7 +-
 bfd/elf.c                                          |   18 +-
 bfd/elf32-arm.c                                    |   14 +-
 bfd/elf32-spu.c                                    |    6 +-
 bfd/elflink.c                                      |   21 +-
 bfd/libcoff-in.h                                   |    6 +-
 bfd/libcoff.h                                      |    6 +-
 bfd/version.h                                      |    2 +-
 bfd/xcofflink.c                                    | 1967 +++++++++++---------
 gdb/ChangeLog                                      |  121 ++
 gdb/ada-lang.c                                     |  120 +-
 gdb/ada-lang.h                                     |    2 -
 gdb/ada-tasks.c                                    |   34 +-
 gdb/darwin-nat.c                                   |   12 +-
 gdb/defs.h                                         |    2 +-
 gdb/doc/ChangeLog                                  |   13 +-
 gdb/doc/gdb.texinfo                                |   75 +
 gdb/exceptions.c                                   |   32 +-
 gdb/exceptions.h                                   |   15 +-
 gdb/gdbserver/ChangeLog                            |    9 +
 gdb/gdbserver/Makefile.in                          |    5 +-
 gdb/gdbserver/hostio-errno.c                       |    6 +-
 gdb/gdbserver/hostio.c                             |    6 +-
 gdb/gdbserver/server.c                             |    7 +
 gdb/gdbserver/xtensa-xtregs.c                      |    2 +-
 gdb/mi/mi-interp.c                                 |    1 +
 gdb/mi/mi-main.c                                   |   38 +-
 gdb/mi/mi-main.h                                   |    2 +
 gdb/remote.c                                       |   66 +-
 gdb/source.c                                       |    2 +-
 gdb/stack.c                                        |   13 +-
 gdb/symtab.c                                       |    9 +-
 gdb/testsuite/ChangeLog                            |   46 +-
 gdb/testsuite/gdb.ada/mod_from_name.exp            |   47 +
 gdb/testsuite/gdb.ada/mod_from_name/foo.adb        |   36 +
 gdb/testsuite/gdb.ada/ptype_arith_binop.exp        |   36 +
 gdb/testsuite/gdb.ada/tick_last_segv.exp           |   49 +
 gdb/testsuite/gdb.ada/tick_last_segv/foo.adb       |   19 +
 gdb/testsuite/gdb.base/multi-forks.exp             |  117 +-
 .../gdb.base/return-nodebug.c}                     |   43 +-
 gdb/testsuite/gdb.base/return-nodebug.exp          |   61 +
 gdb/testsuite/gdb.mi/mi-cli.exp                    |   38 +-
 gdb/version.in                                     |    2 +-
 include/ChangeLog                                  |   15 +
 include/coff/ChangeLog                             |   25 +
 include/coff/internal.h                            |   17 +-
 include/coff/pe.h                                  |   11 +
 include/coff/xcoff.h                               |   25 +-
 58 files changed, 2508 insertions(+), 1128 deletions(-)
 create mode 100644 gdb/testsuite/gdb.ada/mod_from_name.exp
 create mode 100644 gdb/testsuite/gdb.ada/mod_from_name/foo.adb
 create mode 100644 gdb/testsuite/gdb.ada/ptype_arith_binop.exp
 create mode 100644 gdb/testsuite/gdb.ada/tick_last_segv.exp
 create mode 100644 gdb/testsuite/gdb.ada/tick_last_segv/foo.adb
 copy gdb/{mi/mi-main.h => testsuite/gdb.base/return-nodebug.c} (58%)
 create mode 100644 gdb/testsuite/gdb.base/return-nodebug.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9841e5d..33174a3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,229 @@
+2009-03-15  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (build_stub): Correct icache set_id.
+	(spu_elf_relocate_section): Likewise.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (xcoff_link_check_archive_element): Only free the
+	symbol table if it was created by the current call.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
+	class XMC_DS rather than XMC_UA.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
+	bfd_boolean export_defineds parameter with an unsigned int
+	auto_export_flags parameter.
+	* bfd-in2.h: Regenerate.
+	* xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
+	split out from xcoff_build_ldsyms.
+	(xcoff_covered_by_expall_p): New function.
+	(xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
+	but with extra code to handle -bexpfull and -bexpall.
+	(xcoff_mark_auto_exports): New function.
+	(xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
+	a function should be automatically exported.
+	(bfd_xcoff_size_dynamic_sections): Replace the export_defineds
+	parameter with an auto_export_flags parameter.  Update ldinfo
+	accordingly.  Use xcoff_mark_auto_exports to mark all automatically-
+	exported symbols.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (xcoff_mark_symbol_by_name): New function.
+	(bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
+	init and fini functions.  Do garbage collection for objects
+	without an entry point too.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
+	check whether a symbol has csect information.
+	(coff_print_aux): Likewise.
+	* coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
+	information for C_AIX_WEAKEXT too.
+	(_bfd_xcoff_swap_aux_out): Likewise.
+	(xcoff_reloc_type_br): Handle defweak symbols too.
+	* coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
+	information for C_AIX_WEAKEXT too.
+	(_bfd_xcoff64_swap_aux_out): Likewise.
+	(xcoff64_reloc_type_br): Handle defweak symbols too.
+	* coffgen.c (coff_print_symbol): Handle auxillary function
+	information for C_AIX_WEAKEXT too.
+	* xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
+	instead of BSF_GLOBAL if the L_WEAK flag is set.
+	(xcoff_dynamic_definition_p): New function.
+	(xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
+	defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
+	always take the symbol class from the ldsym.  Use weak bfd symbol
+	types for weak ldsyms.
+	(xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
+	Fix the check for whether a definition is from a shared object.
+	Allow redefinitions of weak symbols.
+	(xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
+	(xcoff_keep_symbol_p): Likewise.
+	(bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
+	(xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
+	Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
+	but mark them as L_WEAK.
+	(xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
+	instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (xcoff_mark): When walking the relocations,
+	only mark the target symbol or the target section, not both.
+	(xcoff_final_definition_p): New function.
+	(xcoff_keep_symbol_p): Use it to check whether an external XCOFF
+	symbol is a valid definition of the associated output symbol.
+	Use XCOFF_ALLOCATED to stop the same hash table entry having
+	two output symbols.
+	(bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
+	keeping a symbol.
+	(xcoff_link_input_bfd): Use xcoff_final_definition_p.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
+	symbols as XMC_XO.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
+	* libcoff.h: Regenerate.
+	* xcofflink.c (xcoff_link_add_symbols): Record per-symbol
+	line-number counts in the bfd's lineno_counts field.
+	Don't keep per-csect line-number counts.
+	(xcoff_sweep): Don't update per-csect line-number counts.
+	(bfd_xcoff_size_dynamic_sections): Count the number of line-number
+	entries in each output section.
+	(xcoff_link_input_bfd): Get the number of line numbers from
+	the bfd's lineno_counts field, rather than recalculating it
+	from scratch.  Fix the range check when updating C_BINCL and
+	C_EINCL symbols.
+	(_bfd_xcoff_bfd_final_link): Don't count the output line numbers
+	here.  Don't expect csects to have line-number counts.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
+	* libcoff.h: Regenerate.
+	* xcofflink.c (xcoff_keep_symbol_p): New function, using the
+	"skip" logic from xcoff_link_input_bfd.
+	(bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
+	objects in a dynamic link, rather than checking whether csectpp
+	is null.  Always allocate debug_index for other objects,
+	and always go through the loop.  Update the type of debug_index
+	after the change above.  Read the auxillary csect information
+	and use xcoff_keep_symbol_p to decide whether a symbol should
+	be kept.  Set its debug_index to -2 if not.
+	(xcoff_link_input_bfd): Update the type of debug_index after
+	the change above and always expect it to be nonnull.  Use it to
+	test whether a symbol should be stripped, rather than making the
+	decision here.  Postpone all symbol creation to the second pass.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
+	creating a descriptor.
+	(xcoff_sweep): Don't mark toc_section unless it's needed.
+	(bfd_xcoff_size_dynamic_sections): Skip the toc_section
+	when marking every bfd.
+	(xcoff_link_input_bfd): Skip all TOC anchors.
+	(xcoff_toc_section_p, xcoff_find_tc0): New functions.
+	(_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
+	to -1; call xcoff_find_tc0 instead.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* libcoff-in.h (xcoff_section_tdata): Update commentary.
+	* libcoff.h: Regenerate.
+	* xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
+	symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
+	the previous symbol's csect.  Treat last_symndx as an inclusive value
+	and simplify its handling.
+	(xcoff_mark): Treat last_symndx as an inclusive value.  Only mark
+	symbols with the right csect.  Don't mark rsec when processing
+	relocations against undefined or absolute sections.  
+	(bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
+	of bfd_und_section_ptr.
+	(xcoff_link_input_bfd): Likewise.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
+	against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
+	flag is set.  Assert that all undefined symbols are either
+	imported or defined by a dynamic object.
+	* coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
+	* xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
+	handling to all relocations.  Only set XCOFF_CALLED for function
+	symbols.
+	(xcoff_find_function): New function, split out from...
+	(bfd_xcoff_export_symbol) ...here.
+	(xcoff_set_import_path): New function, split out from...
+	(bfd_xcoff_import_symbol): ...here.  Remove assertion for old
+	meaning of XCOFF_CALLED.
+	(xcoff_mark_symbol): If we mark an undefined and unimported
+	symbol, find some way of defining it.  If the symbol is a function
+	descriptor, fill in its definition automatically.  If the symbol
+	is a function, mark its descriptor and allocate room for global
+	linkage code.  Otherwise mark the symbol as implicitly imported.
+	Move the code for creating function descriptors from...
+	(xcoff_build_ldsyms): ...here.  Use XCOFF_WAS_UNDEFINED to 
+	check for symbols that were implicitly defined.
+	(xcoff_mark): Don't count any dynamic relocations against
+	function symbols.
+	(bfd_xcoff_size_dynamic_sections): Save the rtld parameter
+	in the xcoff link info.
+	(xcoff_link_input_bfd): Remove handling of undefined and
+	unexported symbols.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
+	if the target is absolute.  Fix comment typo.
+	(xcoff_ppc_relocate_section): Remove FIXME.
+	* coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
+	if the target is absolute.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
+	R_POS and R_NEG relocations against absolute symbols to the
+	.loader section.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
+	to 2 for bfd_mach_ppc_620.
+
+2009-03-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
+
+	* config.bfd: Treat AIX 6+ in the same way as AIX 5.
+	* configure.in: Likewise.
+	* configure: Regenerate.
+
+2009-03-13  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR binutils/9945
+	* elf.c (assign_section_numbers): Generate symbol table if there
+	is any relocation in output.
+	(_bfd_elf_compute_section_file_positions): Likewise.
+
+2009-03-13  Nick Clifton  <nickc@redhat.com>
+
+	PR 9934
+	* elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
+	* elflink.c (elf_link_read_relocs_from_section): Use
+	NUM_SHDR_ENTRIES.  Gracefully handle the case where there are
+	relocs but no symbol table.
+	* elf32-arm.c (elf32_arm_check_relocs): Likewise.
+
 2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/9938
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 6b49013..5a3e13f 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -779,7 +779,7 @@ extern bfd_boolean bfd_xcoff_record_link_assignment
 extern bfd_boolean bfd_xcoff_size_dynamic_sections
   (bfd *, struct bfd_link_info *, const char *, const char *,
    unsigned long, unsigned long, unsigned long, bfd_boolean,
-   int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);
+   int, bfd_boolean, unsigned int, struct bfd_section **, bfd_boolean);
 extern bfd_boolean bfd_xcoff_link_generate_rtinit
   (bfd *, const char *, const char *, bfd_boolean);
 
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 7e3defd..a173f56 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -786,7 +786,7 @@ extern bfd_boolean bfd_xcoff_record_link_assignment
 extern bfd_boolean bfd_xcoff_size_dynamic_sections
   (bfd *, struct bfd_link_info *, const char *, const char *,
    unsigned long, unsigned long, unsigned long, bfd_boolean,
-   int, bfd_boolean, bfd_boolean, struct bfd_section **, bfd_boolean);
+   int, bfd_boolean, unsigned int, struct bfd_section **, bfd_boolean);
 extern bfd_boolean bfd_xcoff_link_generate_rtinit
   (bfd *, const char *, const char *, bfd_boolean);
 
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 1db66e7..3343530 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -422,6 +422,7 @@ _bfd_xcoff_swap_aux_in (abfd, ext1, type, class, indx, numaux, in1)
 
       /* RS/6000 "csect" auxents */
     case C_EXT:
+    case C_AIX_WEAKEXT:
     case C_HIDEXT:
       if (indx + 1 == numaux)
 	{
@@ -531,6 +532,7 @@ _bfd_xcoff_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
 
       /* RS/6000 "csect" auxents */
     case C_EXT:
+    case C_AIX_WEAKEXT:
     case C_HIDEXT:
       if (indx + 1 == numaux)
 	{
@@ -2947,11 +2949,13 @@ xcoff_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
      bfd_byte *contents;
 {
   struct xcoff_link_hash_entry *h;
+  bfd_vma section_offset;
 
   if (0 > rel->r_symndx)
     return FALSE;
 
   h = obj_xcoff_sym_hashes (input_bfd)[rel->r_symndx];
+  section_offset = rel->r_vaddr - input_section->vma;
 
   /* If we see an R_BR or R_RBR reloc which is jumping to global
      linkage code, and it is followed by an appropriate cror nop
@@ -2961,13 +2965,14 @@ xcoff_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
      going to global linkage code, we can replace the load with a
      cror.  */
   if (NULL != h
-      && bfd_link_hash_defined == h->root.type
-      && rel->r_vaddr - input_section->vma + 8 <= input_section->size)
+      && (bfd_link_hash_defined == h->root.type
+	  || bfd_link_hash_defweak == h->root.type)
+      && section_offset + 8 <= input_section->size)
     {
       bfd_byte *pnext;
       unsigned long next;
 
-      pnext = contents + (rel->r_vaddr - input_section->vma) + 4;
+      pnext = contents + section_offset + 4;
       next = bfd_get_32 (input_bfd, pnext);
 
       /* The _ptrgl function is magic.  It is used by the AIX
@@ -2977,12 +2982,12 @@ xcoff_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
 	  if (next == 0x4def7b82			/* cror 15,15,15 */
 	      || next == 0x4ffffb82			/* cror 31,31,31 */
 	      || next == 0x60000000)			/* ori r0,r0,0 */
-	    bfd_put_32 (input_bfd, 0x80410014, pnext);	/* lwz r1,20(r1) */
+	    bfd_put_32 (input_bfd, 0x80410014, pnext);	/* lwz r2,20(r1) */
 
 	}
       else
 	{
-	  if (next == 0x80410014)			/* lwz r1,20(r1) */
+	  if (next == 0x80410014)			/* lwz r2,20(r1) */
 	    bfd_put_32 (input_bfd, 0x60000000, pnext);	/* ori r0,r0,0 */
 	}
     }
@@ -2998,16 +3003,42 @@ xcoff_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
       howto->complain_on_overflow = complain_overflow_dont;
     }
 
-  howto->pc_relative = TRUE;
+  /* The original PC-relative relocation is biased by -r_vaddr, so adding
+     the value below will give the absolute target address.  */
+  *relocation = val + addend + rel->r_vaddr;
+
   howto->src_mask &= ~3;
   howto->dst_mask = howto->src_mask;
 
-  /* A PC relative reloc includes the section address.  */
-  addend += input_section->vma;
-
-  *relocation = val + addend;
-  *relocation -= (input_section->output_section->vma
-		  + input_section->output_offset);
+  if (h != NULL
+      && (h->root.type == bfd_link_hash_defined
+	  || h->root.type == bfd_link_hash_defweak)
+      && bfd_is_abs_section (h->root.u.def.section)
+      && section_offset + 4 <= input_section->size)
+    {
+      bfd_byte *ptr;
+      bfd_vma insn;
+
+      /* Turn the relative branch into an absolute one by setting the
+	 AA bit.  */
+      ptr = contents + section_offset;
+      insn = bfd_get_32 (input_bfd, ptr);
+      insn |= 2;
+      bfd_put_32 (input_bfd, insn, ptr);
+
+      /* Make the howto absolute too.  */
+      howto->pc_relative = FALSE;
+      howto->complain_on_overflow = complain_overflow_bitfield;
+    }
+  else
+    {
+      /* Use a PC-relative howto and subtract the instruction's address
+	 from the target address we calculated above.  */
+      howto->pc_relative = TRUE;
+      *relocation -= (input_section->output_section->vma
+		      + input_section->output_offset
+		      + section_offset);
+    }
   return TRUE;
 }
 
@@ -3323,9 +3354,7 @@ xcoff_complain_overflow_unsigned_func (input_bfd, val, relocation, howto)
 
    R_RBR:
    A relative branch which may be modified to become an
-   absolute branch.  FIXME: We don't implement this,
-   although we should for symbols of storage mapping class
-   XMC_XO.
+   absolute branch.
 
    R_RL:
    The PowerPC AIX ABI describes this as a load which may be
@@ -3422,6 +3451,17 @@ xcoff_ppc_relocate_section (output_bfd, info, input_bfd,
 	    }
 	  else
 	    {
+	      if (info->unresolved_syms_in_objects != RM_IGNORE
+		  && (h->flags & XCOFF_WAS_UNDEFINED) != 0)
+		{
+		  if (! ((*info->callbacks->undefined_symbol)
+			 (info, h->root.root.string,
+			  input_bfd, input_section,
+			  rel->r_vaddr - input_section->vma,
+			  (info->unresolved_syms_in_objects
+			   == RM_GENERATE_ERROR))))
+		    return FALSE;
+		}
 	      if (h->root.type == bfd_link_hash_defined
 		  || h->root.type == bfd_link_hash_defweak)
 		{
@@ -3437,17 +3477,11 @@ xcoff_ppc_relocate_section (output_bfd, info, input_bfd,
 			 + sec->output_offset);
 
 		}
-	      else if ((0 == (h->flags & (XCOFF_DEF_DYNAMIC | XCOFF_IMPORT)))
-		       && ! info->relocatable)
+	      else
 		{
-		  if (! ((*info->callbacks->undefined_symbol)
-			 (info, h->root.root.string, input_bfd, input_section,
-			  rel->r_vaddr - input_section->vma, TRUE)))
-		    return FALSE;
-
-		  /* Don't try to process the reloc.  It can't help, and
-		     it may generate another error.  */
-		  continue;
+		  BFD_ASSERT (info->relocatable
+			      || (h->flags & XCOFF_DEF_DYNAMIC) != 0
+			      || (h->flags & XCOFF_IMPORT) != 0);
 		}
 	    }
 	}
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index 776b6a2..1a0ff59 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -381,6 +381,7 @@ _bfd_xcoff64_swap_aux_in (abfd, ext1, type, class, indx, numaux, in1)
 
       /* RS/6000 "csect" auxents */
     case C_EXT:
+    case C_AIX_WEAKEXT:
     case C_HIDEXT:
       if (indx + 1 == numaux)
 	{
@@ -473,6 +474,7 @@ _bfd_xcoff64_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
 
       /* RS/6000 "csect" auxents */
     case C_EXT:
+    case C_AIX_WEAKEXT:
     case C_HIDEXT:
       if (indx + 1 == numaux)
 	{
@@ -1048,6 +1050,8 @@ xcoff64_write_object_contents (abfd)
 	    case bfd_arch_powerpc:
 	      if (bfd_get_mach (abfd) == bfd_mach_ppc)
 		internal_a.o_cputype = 3;
+	      else if (bfd_get_mach (abfd) == bfd_mach_ppc_620)
+		internal_a.o_cputype = 2;
 	      else
 		internal_a.o_cputype = 1;
 	      break;
@@ -1115,11 +1119,13 @@ xcoff64_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
      bfd_byte *contents;
 {
   struct xcoff_link_hash_entry *h;
+  bfd_vma section_offset;
 
   if (0 > rel->r_symndx)
     return FALSE;
 
   h = obj_xcoff_sym_hashes (input_bfd)[rel->r_symndx];
+  section_offset = rel->r_vaddr - input_section->vma;
 
   /* If we see an R_BR or R_RBR reloc which is jumping to global
      linkage code, and it is followed by an appropriate cror nop
@@ -1129,13 +1135,14 @@ xcoff64_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
      going to global linkage code, we can replace the load with a
      cror.  */
   if (NULL != h
-      && bfd_link_hash_defined == h->root.type
-      && rel->r_vaddr - input_section->vma + 8 <= input_section->size)
+      && (bfd_link_hash_defined == h->root.type
+	  || bfd_link_hash_defweak == h->root.type)
+      && section_offset + 8 <= input_section->size)
     {
       bfd_byte *pnext;
       unsigned long next;
 
-      pnext = contents + (rel->r_vaddr - input_section->vma) + 4;
+      pnext = contents + section_offset + 4;
       next = bfd_get_32 (input_bfd, pnext);
 
       /* The _ptrgl function is magic.  It is used by the AIX compiler to call
@@ -1164,16 +1171,42 @@ xcoff64_reloc_type_br (input_bfd, input_section, output_bfd, rel, sym, howto,
       howto->complain_on_overflow = complain_overflow_dont;
     }
 
-  howto->pc_relative = TRUE;
+  /* The original PC-relative relocation is biased by -r_vaddr, so adding
+     the value below will give the absolute target address.  */
+  *relocation = val + addend + rel->r_vaddr;
+
   howto->src_mask &= ~3;
   howto->dst_mask = howto->src_mask;


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-03-12 20:10 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-03-12 20:10 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  b014b7b5a93934ba3593a55cf7c08745e0e634e9 (commit)
       via  194293f336f1a00a729a108c582396b7ba803a4e (commit)
       via  852c0e0d0263f85b62090507be8daa135a87a53a (commit)
       via  fca72fa5ad030093f21211e1b4394ef40ab1d0cc (commit)
       via  bd553788ac40acb65c8a0849f38266955f905814 (commit)
       via  a0ef3038786538a8d390c907e8d11953bae47bc3 (commit)
       via  ddba7e72ef21e86088399b5b9364848f9d474921 (commit)
       via  24b599131ae218b0aca33621a06043e05bfea682 (commit)
       via  398035ce19b44ec266da36255133cf3d8ffd2295 (commit)
       via  b3328989e625642287d2d9a0dbafd7f357172c9b (commit)
       via  3d1209ec9ee4547aeb4bc46af829f2c7bbcd5d2e (commit)
       via  79e74d313b4bc7c56b58b1ccfd48cf07e754dc32 (commit)
       via  9339cc18dd5700a48ae62e73dddcab789ac6f2b6 (commit)
       via  92dfc8c682f091812f76ab979cde6e13d9f5f91d (commit)
       via  734bf3302f8a087bb95c33facf93cbab88296e62 (commit)
       via  a88555d5710428614dbdade1bcddea2c7b81f071 (commit)
       via  0503f5df2489d32c57558a3fd733ab7a180b688d (commit)
       via  a3040cde74b99c348ce534d90b8f5330e88ec0ec (commit)
       via  4fe17d038a0891bdf400b17f5c01babb11e18c43 (commit)
       via  3d60ec7d687cd613e00aea316190936b9e47624d (commit)
       via  be87af029b506c0082a3e47f282e77052a368f8d (commit)
       via  bb895e00aedc40d6b47f1c76162c43cca0bf9655 (commit)
       via  c2972ffea8572552b612c7c2da82d3836b4a2c8a (commit)
       via  62c45004981d213b9fe085264e57f01d55fea73b (commit)
       via  0ed0ce6569cdb43df57173f703f5987da367625e (commit)
       via  be2e1c8d04cc278c352b05afcd2f92caad740b87 (commit)
       via  8444b262861157b6478ea024f77df2ed1ff02789 (commit)
       via  7a82cea5ae873f8b53eaf13f730a417a289a6aa9 (commit)
       via  01939d0bc5b5e377d2d2e1041336174f88d75657 (commit)
       via  ba3b27c6841ed40d7a38517348b34180797c2334 (commit)
       via  a602008d1bc4bd7ae94f48f258b42fe8b9fc6e35 (commit)
       via  7736f57ac722d86d8735aa89f71e86924ffb38cc (commit)
       via  f56e4cce499eef6d0f54e5febf00aa66f8a82f29 (commit)
       via  7028ef3bbdbc5e4a111d0b7cc780ee0c35a7292e (commit)
       via  129997da4c6c2aea81696300903da1ad47b7f48e (commit)
       via  f2f3abead03c81796832772dc2be966191b2f80c (commit)
       via  a93539b2e002585b2a1a2d32f0e2df2445fe6579 (commit)
       via  57eb800b475de56bba3f720dc7c64179f5899cec (commit)
       via  f1c4daa594919152e47c111c830393e10530443a (commit)
       via  3e5fb2e1453d9b8d09983a5a3d1d3ff203e8352a (commit)
       via  6e9407b3a655b3339a97bfeb9f79e6bf8e9a90ae (commit)
       via  a31bdfa66308b389d2a94de814afafbb4f0d9ff5 (commit)
       via  000b2df5b139714e6ec5d9fc79f1c59477b75126 (commit)
       via  8f21114a8f63389d6d516164a5a5fbd4de31e21b (commit)
       via  631a01f69c65c713332b5c5c152b583fd41cefd7 (commit)
       via  b2ec49e547711d2e267442bd571eb7253394d10f (commit)
       via  ef0744bb1590a8aad7f0b52c25f947de1e9b3e36 (commit)
       via  92f4807a51643d91c9f466fa62c1dc30c7a554ac (commit)
       via  6df02fc5bff4e11da68894137831fb27e8263d5c (commit)
       via  6ae22736c8ecbc8312af3631bd8be2ff156c3f64 (commit)
       via  4a7fe2eed71d84af81771722168df100149ebcc4 (commit)
       via  6722bb0b7991e0f20fd75883a2db654eea8438d3 (commit)
       via  a2e6917f7307db762725a77922ad8b0cf370e7ac (commit)
       via  c53b171a2083fdc3d959398d654aa2f4069b1c20 (commit)
       via  478ff543e243a47bb8934f738814ef69d9936ea5 (commit)
       via  fb597d271837a83d02703ca6fad12f9590845b3e (commit)
       via  9de9f540f0e38df29cca71eb7426e5791d1004dd (commit)
       via  a35213375f8b628f9e42fd5bc6cf67000c893248 (commit)
       via  62e5f942420bc61f1566a6becc79892ea08b27cd (commit)
       via  bb7fbd4a9265f0fceea0d0f0ca21933ccbee004e (commit)
       via  dad3bf19f9381ec7b0e8ba188626dddc81e8334e (commit)
       via  67ce5c51fad3b8bdc866d181e58293e87dc265a3 (commit)
       via  9c0fd74003677eef751f51629c403a03f2241c06 (commit)
       via  348985d7c203ef469d9ffdb1d921475f48a7e823 (commit)
       via  632bf4271d3217495085f83b1de7845ac2da0032 (commit)
       via  eec15c138feaba1072ea64acfb27eef7357dc3a7 (commit)
       via  db8f8a559425859ed43df0ea70b4f6b2a4dcd506 (commit)
       via  5f25e94a1252325146a1fc7d3b2449450292d38d (commit)
       via  f3859ae1c33373a36e211e7c1500054908f6a189 (commit)
       via  70baabfbb4e13618de72299df79682022cdf9bd8 (commit)
       via  22e9b41768f640a6dece93c706e0bf6f43779cc7 (commit)
       via  3db9d948d9ea2a69608f2cb5260364979c4c326b (commit)
       via  b0f394cdd4280b1f8ad7dd4a034318badf3cb04c (commit)
       via  de8053313621eb1ba7db9f44d691b366d50143f9 (commit)
       via  b05c50c829e11f33bd58d5fd2de17f761207d22b (commit)
       via  acfa7328d395311e477ec40c8e9f5d64982b6454 (commit)
       via  cee93b972b71faa6c0e9e72fcd03e90a67377875 (commit)
       via  6a6b10af0464c935770d19210a7b595ae439b927 (commit)
       via  11e5be97098e9187c48a77716a319ac3609ab1c0 (commit)
       via  655a09f40df0106966807702a3a12a1d273a1b69 (commit)
       via  a473b338ce3737481feb4d4473aa74caee758671 (commit)
       via  63eafe5276abca7312c6fed52cead4a9229f944e (commit)
       via  dd9c559d2949554eb4002a671d47a7f65f6acd3c (commit)
       via  285bd7c3eb50e65e2a9d8c6ca9cae859349fe90b (commit)
       via  8e336bc6b968e678de0b4baf968a5108e3cee9be (commit)
       via  9f08a3932eefd332b72483ccec1cad049c0c7c4a (commit)
       via  531484da0ccaffb64616f5f892a2c1eec3c2bd30 (commit)
       via  836fe91a251f7419730b7eaf88780eafd2ae738d (commit)
       via  e46198590298ad68582afb2706fdedce886ef3f6 (commit)
       via  a89c5e97893fc81c89c26261b3e8a34fd111f356 (commit)
       via  7e7604fcf501d9f7d00488c3fceb7c814ec9496e (commit)
       via  15926f8a4c3311b90d68392ace929b2808612334 (commit)
       via  68f4aeee38798fbffd52a8f42158594bc849c4a2 (commit)
       via  5f8910120be450edecfbcafa65481c8f29fc0f4c (commit)
       via  32f597d669aec6e7bb5b425b4cb0d29a1023d295 (commit)
       via  2ffc14e5f1d3d75cbfb665474241ebd0975df2e0 (commit)
       via  8dddf6c0682cd4f501b9414af2ee41311559bb62 (commit)
       via  5e61b2ecffe82f6eccc0431ef6e54d38814430d2 (commit)
       via  d7f41c5c6767e858b0587a42b689f7f4c070172b (commit)
       via  8e207759a453dc45961f218d335518464f91f27d (commit)
       via  5b8e2944be405117e44f9d5b1b87bf3b7a796651 (commit)
       via  f585f4c883101a6b1a0d7f324ddd71b3bfa77be7 (commit)
       via  41882f54dd221b655fa2dfb2ff0ac511a41717e7 (commit)
       via  d1325b19cb505b2aa0e446c89702b1b940a6c2ca (commit)
       via  5c84b9312b5dc42b945bd3df3f41a34ad4a84ef1 (commit)
       via  2664777b6b4a69a4a3fc72143a4fbaaf59183d1e (commit)
       via  37f998e0df428dcf831eeedf5459ee663e5cd05a (commit)
       via  bb1d4f60bb5376c3ce6a686035bc6f91bbcd1625 (commit)
       via  9efefe92da03895d9ee3ce840293416bcfc2b06b (commit)
      from  ef24aed64e5b773d8653ac8c497aa52acb3e4037 (commit)

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

- Log -----------------------------------------------------------------
-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                   |   11 +
 bfd/ChangeLog                               |  258 +
 bfd/Makefile.am                             |   31 +-
 bfd/Makefile.in                             |   31 +-
 bfd/archive.c                               |   44 +-
 bfd/archures.c                              |    4 +-
 bfd/bfd-in2.h                               |   35 +-
 bfd/bfd.c                                   |    5 +
 bfd/configure                               |  259 +-
 bfd/configure.in                            |   26 +-
 bfd/cpu-score.c                             |   68 +-
 bfd/dwarf2.c                                |   76 +-
 bfd/ecoff.c                                 |   11 +-
 bfd/elf-hppa.h                              | 1160 +---
 bfd/elf.c                                   |   13 +-
 bfd/elf32-arm.c                             |  626 +-
 bfd/elf32-hppa.c                            |   70 +-
 bfd/elf32-i386.c                            |    7 +-
 bfd/elf32-ppc.c                             |  192 +-
 bfd/elf32-score.c                           | 2250 ++++--
 bfd/elf32-score.h                           |  152 +
 bfd/{elf32-score.c => elf32-score7.c}       | 1842 +++---
 bfd/elf32-spu.c                             |   13 +
 bfd/elf32-xtensa.c                          |   18 +-
 bfd/elf64-hppa.c                            | 2206 +++++--
 bfd/elf64-ppc.c                             |  280 +-
 bfd/elf64-x86-64.c                          |    5 +-
 bfd/libbfd.h                                |    6 +-
 bfd/peXXigen.c                              |   16 +-
 bfd/po/es.po                                | 1943 +++---
 bfd/reloc.c                                 |   21 +-
 bfd/section.c                               |   13 +-
 bfd/som.c                                   |    6 +-
 bfd/version.h                               |    2 +-
 gdb/ChangeLog                               |  310 +-
 gdb/MAINTAINERS                             |    4 +-
 gdb/Makefile.in                             |   12 +-
 gdb/ada-lang.c                              |   48 -
 gdb/ada-lang.h                              |    4 -
 gdb/ada-tasks.c                             |   37 -
 gdb/aix-thread.c                            |   26 +-
 gdb/breakpoint.c                            |   29 +-
 gdb/cli/cli-cmds.c                          |    2 +-
 gdb/cli/cli-script.c                        |    2 +-
 gdb/common/gdb_signals.h                    |   56 +
 gdb/{signals => common}/signals.c           |    9 +-
 gdb/dec-thread.c                            |   75 +-
 gdb/disasm.c                                |    1 -
 gdb/disasm.h                                |    1 -
 gdb/doc/ChangeLog                           |    7 +
 gdb/doc/gdb.texinfo                         |   45 +-
 gdb/dwarf2read.c                            |  164 +-
 gdb/gdb_proc_service.h                      |    4 +-
 gdb/gdbserver/ChangeLog                     |    8 +
 gdb/gdbserver/Makefile.in                   |    7 +-
 gdb/gdbserver/server.h                      |    8 +-
 gdb/gnu-nat.c                               |    4 +-
 gdb/infcmd.c                                |   91 +-
 gdb/inferior.h                              |    2 +
 gdb/inflow.c                                |    2 +-
 gdb/infrun.c                                |   62 +-
 gdb/linux-thread-db.c                       |   20 +-
 gdb/maint.c                                 |    2 +-
 gdb/memattr.c                               |    2 +-
 gdb/mi/mi-cmd-disas.c                       |    1 -
 gdb/mips-linux-nat.c                        |    4 +-
 gdb/monitor.c                               |    4 +-
 gdb/nto-procfs.c                            |    4 +-
 gdb/objfiles.c                              |    4 +-
 gdb/printcmd.c                              |   98 +-
 gdb/proc-service.c                          |   12 +-
 gdb/python/python-utils.c                   |   16 +-
 gdb/remote-mips.c                           |    4 +-
 gdb/remote-sim.c                            |    5 +-
 gdb/remote.c                                |  104 +-
 gdb/solib-irix.c                            |    2 +-
 gdb/solib-osf.c                             |    6 +-
 gdb/solib-pa64.c                            |    2 +-
 gdb/solib-som.c                             |    2 +-
 gdb/solib-svr4.c                            |    2 +-
 gdb/solib.c                                 |   62 +-
 gdb/solib.h                                 |    6 +-
 gdb/stack.c                                 |    2 +-
 gdb/symfile.c                               |    2 +-
 gdb/symtab.c                                |  145 +-
 gdb/target.c                                |    2 +-
 gdb/target.h                                |   34 +-
 gdb/testsuite/ChangeLog                     |   10 +
 gdb/testsuite/gdb.arch/i386-permbkpt.S      |   30 +
 gdb/testsuite/gdb.arch/i386-permbkpt.exp    |   52 +
 gdb/testsuite/gdb.base/solib-display-lib.c  |   30 +
 gdb/testsuite/gdb.base/solib-display-main.c |   32 +
 gdb/testsuite/gdb.base/solib-display.exp    |  115 +
 gdb/top.c                                   |    9 +-
 gdb/tracepoint.c                            |    2 +-
 gdb/valprint.c                              |   15 +-
 gdb/version.in                              |    2 +-
 gdb/windows-nat.c                           |   37 +-
 gdb/xcoffread.c                             |   34 +-
 include/elf/ChangeLog                       |   18 +
 include/elf/common.h                        |   11 +-
 include/elf/ppc.h                           |    6 +-
 include/elf/ppc64.h                         |    4 +-
 include/elf/score.h                         |   13 +-
 include/opcode/ChangeLog                    |   14 +
 include/opcode/ppc.h                        |    7 +-
 include/opcode/score-datadep.h              |  227 +-
 include/opcode/score-inst.h                 |  313 +-
 libtool.m4                                  |   12 +-
 opcodes/ChangeLog                           |  126 +
 opcodes/Makefile.am                         |  341 +-
 opcodes/Makefile.in                         |  349 +-
 opcodes/arm-dis.c                           |    8 +-
 opcodes/configure                           |  257 +-
 opcodes/configure.in                        |   24 +-
 opcodes/i386-dis.c                          |   11 +-
 opcodes/i386-gen.c                          |    3 -
 opcodes/i386-init.h                         |   97 +-
 opcodes/i386-opc.h                          |    6 +-
 opcodes/i386-opc.tbl                        |    3 -
 opcodes/i386-tbl.h                          |11240 +++++++++++++-------------
 opcodes/po/es.po                            |  249 +-
 opcodes/po/id.po                            | 1021 +++-
 opcodes/ppc-dis.c                           |  290 +-
 opcodes/ppc-opc.c                           |  383 +-
 opcodes/score-dis.c                         |  880 ++-
 opcodes/score-opc.h                         |  460 +-
 opcodes/score7-dis.c                        |  972 +++
 128 files changed, 18481 insertions(+), 12499 deletions(-)
 create mode 100644 bfd/elf32-score.h
 copy bfd/{elf32-score.c => elf32-score7.c} (69%)
 create mode 100644 gdb/common/gdb_signals.h
 rename gdb/{signals => common}/signals.c (99%)
 create mode 100644 gdb/testsuite/gdb.arch/i386-permbkpt.S
 create mode 100644 gdb/testsuite/gdb.arch/i386-permbkpt.exp
 create mode 100644 gdb/testsuite/gdb.base/solib-display-lib.c
 create mode 100644 gdb/testsuite/gdb.base/solib-display-main.c
 create mode 100644 gdb/testsuite/gdb.base/solib-display.exp
 create mode 100644 opcodes/score7-dis.c

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 474f3d4..5ee9384 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,14 @@
+2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Backport from git Libtool:
+
+	2009-01-19  Robert Millan  <rmh@aybabtu.com>
+	Support GNU/kOpenSolaris.
+	* libltdl/m4/libtool.m4 (_LT_SYS_DYNAMIC_LINKER)
+	(_LT_CHECK_MAGIC_METHOD, _LT_COMPILER_PIC, _LT_LINKER_SHLIBS)
+	(_LT_LANG_CXX_CONFIG) [kopensolaris*-gnu]: Recognize
+	GNU/kOpenSolaris.
+
 2009-02-05  Andreas Schwab  <schwab@suse.de>
 
 	* Makefile.tpl (stage_last): Define $r and $s before using
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1c4717f..9841e5d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,259 @@
+2009-03-12  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/9938
+	* elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
+	to check ___tls_get_addr.
+
+	* elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
+	strncmp to check __tls_get_addr.
+
+2009-03-12  Andrew Stubbs  <ams@codesourcery.com>
+
+	* dwarf2.c (read_section): Always check the offset, even when the
+	section has been read before.
+
+2009-03-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
+	comments.
+
+2009-03-11  Chris Demetriou  <cgd@google.com>
+
+	* bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
+	* bfd-in2.h: Regenerate.
+	* archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
+	flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
+	mode.
+	(bsd_write_armap): Likewise.
+	(_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
+	flag is set, do nothing.
+	(coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
+	for timestamp.
+
+2009-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
+
+	* elf32-spu.c (find_function_stack_adjust): Handle sf instruction
+	used to update stack pointer.
+
+2009-03-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	PR binutils/9921
+	* som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
+	for unknown symbols in absolute section.
+
+2009-03-06  Nick Clifton  <nickc@redhat.com>
+
+	* po/es.po: Updated Spanish translation.
+
+2009-03-05  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (group_sections): Take next section size into
+	account before accepting to group it.
+
+2009-03-05  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (arm_type_of_stub): Handle long branches targetting
+	PLT entries.
+	(elf32_arm_final_link_relocate): Likewise.
+
+2009-03-05  Moritz Kroll  <Moritz.Kroll@gmx.de>
+
+	PR 9923
+	* peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
+
+2009-03-04  Alan Modra  <amodra@bigpond.net.au>
+
+	* reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
+	* section.c (struct bfd_section): Add has_tls_get_addr_call.
+	(BFD_FAKE_SECTION): Init new flag.
+	* ecoff.c (bfd_debug_section): Likewise.
+	* bfd-in2.h: Regenerate.
+	* libbfd.h: Regenerate.
+	* elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
+	(ppc_elf_reloc_type_lookup): Handle new relocs.
+	(ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
+	without marker relocs.
+	(ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
+	if section has no old-style calls.
+	(ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
+	Don't try to optimize new-style __tls_get_addr call when handling
+	arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
+	relocs.
+	* elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
+	(ppc64_elf_reloc_type_lookup): Handle new relocs.
+	(ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
+	without marker relocs.
+	(ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
+	if section has no old-style calls.  Set toc_ref for new relocs as
+	appropriate.
+	(ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
+	Don't try to optimize new-style __tls_get_addr call when handling
+	arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
+	relocs.
+
+2009-03-04  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 6768
+	* configure.in: Test for ld --as-needed support.  Link shared
+	libbfd against libm.
+	* configure: Regenerate.
+
+2009-03-03  Alan Modra  <amodra@bigpond.net.au>
+
+	* Makefile.am: Run "make dep-am".
+	* Makefile.in: Regenerate.
+
+2009-03-02  Qinwei  <qinwei@sunnorth.com.cn>
+
+	* elf32-score7.c: New file.
+	* elf32-score.h: New file.
+	* elf32-score.c: Add code to support score 7.  Set score7 as the
+	default.
+	* cpu-score.c: Add score7 architecure.
+	(compatibile): New function.
+	* Makefile.am: Add rules for building elf32-score7 object.
+	* Makefile.in: Regenerate.
+	* configure.in: Add elf32-score7 object to score vectors.
+	* configure: Regenerate.
+	* reloc.c: Add score7 relocs.
+	* archures.c: Add score3 and score7 machine numbers.
+	* bfd-in2.h: Regenerate.
+	* libbfd.h: Regenerate.
+
+2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* configure: Regenerate.
+
+2009-03-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* elf32-hppa.c (hppa32_elf_local_refcounts): New function.
+	(elf32_hppa_check_relocs): Use it.
+
+	* elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
+	elf64-hppa.c.
+	(elf_hppa_unmark_useless_dynamic_symbols): Likewise.
+	(elf_hppa_remark_useless_dynamic_symbols): Likewise.
+	(elf_hppa_is_dynamic_loader_symbol): Likewise.
+	(elf_hppa_record_segment_addrs): Likewise.
+	(elf_hppa_final_link): Likewise.
+	(elf_hppa_relocate_insn): Likewise.
+	(elf_hppa_final_link_relocate): Likewise.
+	(elf64_hppa_relocate_section): Likewise.
+	* elf64-hppa.c: Insert above.
+
+2009-02-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
+	(elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
+	(elf_hppa_relocate_section): Likewise.
+	* elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
+	from struct elf_link_hash_entry.  Add count field.
+	(struct elf64_hppa_dyn_hash_table): Delete.
+	(struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
+	(elf64_hppa_hash_table): Rename to hppa_link_hash_table.
+	(hppa_elf_hash_entry, eh_name): Define.
+	(elf64_hppa_new_dyn_hash_entry): Delete.
+	(elf64_hppa_dyn_hash_lookup): Delete.
+	(elf64_hppa_dyn_hash_traverse): Delete.
+	(get_dyn_name): Delete.
+	(elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
+	of struct elf64_hppa_dyn_hash_entry *.
+	(elf64_hppa_finalize_dlt, llocate_global_data_dlt,
+	allocate_global_data_plt, allocate_global_data_stub,
+	allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
+	Likewise.
+	(hppa64_link_hash_newfunc): New.
+	(elf64_hppa_hash_table_create): Rework.
+	(count_dyn_reloc): Likewise.
+	(hppa64_elf_local_refcounts): New.
+	(elf64_hppa_check_relocs): Rework using standard technique for recording
+	local DLT, PLT and OPD reference counts.
+	(elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
+	elf_link_hash_entry *.
+	(elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
+	allocate_global_data_plt, allocate_global_data_stub,
+	allocate_global_data_opd, allocate_dynrel_entries,
+	elf64_hppa_adjust_dynamic_symbol,
+	elf64_hppa_mark_milli_and_exported_functions): Likewise.
+	(elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
+	Use hppa_link_hash_table.  Rework.
+	(elf64_hppa_link_output_symbol_hook): Rework.
+	(elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
+	elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
+	elf64_hppa_finish_dynamic_sections): Likewise.
+
+2009-02-26  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (stub_reloc_type): Removed.
+	(insn_sequence): Renamed reloc_type field to r_type.
+	(elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
+	(elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
+	(elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
+	(elf32_arm_stub_type): Add new enum entries for the new stubs.
+	(arm_stub_is_thumb): Catch new stubs.
+	(arm_type_of_stub): Handle new stubs.
+	(arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
+	(bfd_elf32_arm_process_before_allocation): Remove useless
+	condition.
+
+2009-02-25  H.J. Lu  <hongjiu.lu@intel.com>
+
+	* elf.c (elf_find_function): Use is_function_type to check
+	function symbol.
+
+2009-02-24  Sterling Augustine  <sterling@jaw.hq.tensilica.com>
+
+	* xtensa-modules.c: Revert to previous version 1.11 due
+	to inadvertant commit.
+
+2009-02-24  Sterling Augustine  <sterling@tensilica.com>
+
+	* elf32-xtensa.c (text_action_add): Separate test for action
+	type.  Break if saved action is ta_widen_insn at same offset.
+
+2009-02-24  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
+	to elf32_arm_stub_long_branch_any_arm_pic.
+	(elf32_arm_stub_long_branch_any_thumb_pic): New.
+	(enum elf32_arm_stub_type, arm_type_of_stub)
+	(arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
+	separately.
+
+2009-02-24  Joseph Myers  <joseph@codesourcery.com>
+
+	* elf32-arm.c (PREV_SEC): Update comment.
+	(group_sections): Rename argument to stubs_always_after_branch.
+	Reverse the list and place stubs at the end of input sections.
+	Undefine NEXT_SEC.
+	(elf32_arm_size_stubs): Update to use stubs_always_after_branch.
+
+2009-02-23  Daniel Jacobowitz  <dan@codesourcery.com>
+
+	* elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
+	Fix formatting.
+	(arm_size_one_stub): Remove unnecessary break.
+	(arm_map_one_stub): Fix formatting.  Return after BFD_FAIL.
+
+2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (stub_insn_type): New type.
+	(stub_reloc_type): Likewise.
+	(insn_sequence): Likewise.
+	(elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
+	(elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
+	(elf32_arm_stub_long_branch_thumb_only): Likewise.
+	(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
+	(elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
+	(elf32_arm_stub_long_branch_any_any_pic): Likewise.
+	(elf32_arm_stub_hash_entry): Add new helper fields.
+	(stub_hash_newfunc): Initialize these new fields.
+	(arm_build_one_stub): Encode Arm and Thumb instructions separately
+	to take endianness into account.
+	(arm_size_one_stub): Compute size of stubs using insn_sequence.
+	(arm_map_one_stub): Code is now more generic, thanks to
+	insn_sequence.
+
 2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
 
 	* elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
@@ -11,6 +267,8 @@
 	(arm_map_one_stub): Likewise.
 
 2009-02-23  Tristan Gingold  <gingold@adacore.com>
+	    Eric Botcazou  <ebotcazou@adacore.com>
+	    Douglas B Rupp  <rupp@gnat.com>
 
 	* vms.h: Update copyright year, fix comments, reorder declarations.
 	(_bfd_save_vms_section): Remove the prototype.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 8d67cb8..1c150cd 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -289,6 +289,7 @@ BFD32_BACKENDS = \
 	elf32-ppc.lo \
 	elf32-s390.lo \
 	elf32-score.lo \
+	elf32-score7.lo \
 	elf32-sh.lo \
 	elf32-sh-symbian.lo \
 	elf32-sh64.lo \
@@ -474,6 +475,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-sh64-com.c \
 	elf32-s390.c \
 	elf32-score.c \
+	elf32-score7.c \
 	elf32-sh.c \
 	elf32-sh-symbian.c \
 	elfxx-sparc.c \
@@ -1050,11 +1052,10 @@ archive.lo: archive.c $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \
 archures.lo: archures.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/safe-ctype.h
 bfd.lo: bfd.c $(INCDIR)/filenames.h bfdver.h $(INCDIR)/libiberty.h \
-  $(INCDIR)/demangle.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
-  $(INCDIR)/bfdlink.h $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h \
-  $(INCDIR)/coff/sym.h libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h \
-  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/elf/internal.h
+  $(INCDIR)/demangle.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
+  $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h \
+  libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h
 bfdio.lo: bfdio.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 bfdwin.lo: bfdwin.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cache.lo: cache.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
@@ -1458,15 +1459,15 @@ elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h \
+  $(INCDIR)/elf/reloc-macros.h elf32-target.h
 elf32-m32c.lo: elf32-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32c.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/libiberty.h \
   elf32-target.h
-elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
-  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
-  elf32-target.h
 elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h \
@@ -1571,7 +1572,12 @@ elf32-score.lo: elf32-score.c $(INCDIR)/filenames.h \
   $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/score.h $(INCDIR)/elf/reloc-macros.h \
-  elf32-target.h
+  elf32-score.h elf32-target.h
+elf32-score7.lo: elf32-score7.c $(INCDIR)/filenames.h \
+  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/score.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-score.h
 elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h elf-bfd.h $(INCDIR)/elf/common.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h elf-vxworks.h \
@@ -1716,7 +1722,8 @@ m88kopenbsd.lo: m88kopenbsd.c netbsd.h $(INCDIR)/filenames.h \
   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
   $(INCDIR)/aout/ar.h
 mach-o.lo: mach-o.c $(INCDIR)/filenames.h mach-o.h \
-  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h mach-o-target.c
+  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h $(INCDIR)/aout/stab_gnu.h \
+  $(INCDIR)/aout/stab.def mach-o-target.c
 mipsbsd.lo: mipsbsd.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   libaout.h $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/aout64.h \
   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
@@ -1865,7 +1872,7 @@ vms-misc.lo: vms-misc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
 vms-tir.lo: vms-tir.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
-vmsutil.lo: vmsutil.c vmsutil.h $(INCDIR)/ansidecl.h
+vmsutil.lo: vmsutil.c vmsutil.h
 xcofflink.lo: xcofflink.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/xcoff.h \
   libcoff.h libxcoff.h
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 9932dea..32191a1 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -555,6 +555,7 @@ BFD32_BACKENDS = \
 	elf32-ppc.lo \
 	elf32-s390.lo \
 	elf32-score.lo \
+	elf32-score7.lo \
 	elf32-sh.lo \
 	elf32-sh-symbian.lo \
 	elf32-sh64.lo \
@@ -740,6 +741,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-sh64-com.c \
 	elf32-s390.c \
 	elf32-score.c \
+	elf32-score7.c \
 	elf32-sh.c \
 	elf32-sh-symbian.c \
 	elfxx-sparc.c \
@@ -1646,11 +1648,10 @@ archive.lo: archive.c $(INCDIR)/filenames.h $(INCDIR)/libiberty.h \
 archures.lo: archures.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/safe-ctype.h
 bfd.lo: bfd.c $(INCDIR)/filenames.h bfdver.h $(INCDIR)/libiberty.h \
-  $(INCDIR)/demangle.h $(INCDIR)/libiberty.h $(INCDIR)/safe-ctype.h \
-  $(INCDIR)/bfdlink.h $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h \
-  $(INCDIR)/coff/sym.h libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h \
-  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/elf/internal.h
+  $(INCDIR)/demangle.h $(INCDIR)/safe-ctype.h $(INCDIR)/bfdlink.h \
+  $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/sym.h \
+  libcoff.h libecoff.h $(INCDIR)/coff/ecoff.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h
 bfdio.lo: bfdio.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 bfdwin.lo: bfdwin.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cache.lo: cache.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
@@ -2054,15 +2055,15 @@ elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
+  elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h \
+  $(INCDIR)/elf/reloc-macros.h elf32-target.h
 elf32-m32c.lo: elf32-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32c.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/libiberty.h \
   elf32-target.h
-elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
-  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
-  elf32-target.h
 elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h \
@@ -2167,7 +2168,12 @@ elf32-score.lo: elf32-score.c $(INCDIR)/filenames.h \
   $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
   $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
   $(INCDIR)/bfdlink.h $(INCDIR)/elf/score.h $(INCDIR)/elf/reloc-macros.h \
-  elf32-target.h
+  elf32-score.h elf32-target.h
+elf32-score7.lo: elf32-score7.c $(INCDIR)/filenames.h \
+  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/score.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-score.h
 elf32-sh.lo: elf32-sh.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h elf-bfd.h $(INCDIR)/elf/common.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h elf-vxworks.h \
@@ -2312,7 +2318,8 @@ m88kopenbsd.lo: m88kopenbsd.c netbsd.h $(INCDIR)/filenames.h \
   $(INCDIR)/aout/aout64.h $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def \
   $(INCDIR)/aout/ar.h
 mach-o.lo: mach-o.c $(INCDIR)/filenames.h mach-o.h \
-  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h mach-o-target.c
+  $(INCDIR)/hashtab.h $(INCDIR)/libiberty.h $(INCDIR)/aout/stab_gnu.h \
+  $(INCDIR)/aout/stab.def mach-o-target.c
 mipsbsd.lo: mipsbsd.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   libaout.h $(INCDIR)/bfdlink.h aout-target.h $(INCDIR)/aout/aout64.h \
   $(INCDIR)/aout/stab_gnu.h $(INCDIR)/aout/stab.def $(INCDIR)/aout/ar.h
@@ -2461,7 +2468,7 @@ vms-misc.lo: vms-misc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
 vms-tir.lo: vms-tir.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
-vmsutil.lo: vmsutil.c vmsutil.h $(INCDIR)/ansidecl.h
+vmsutil.lo: vmsutil.c vmsutil.h
 xcofflink.lo: xcofflink.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/xcoff.h \
   libcoff.h libxcoff.h
diff --git a/bfd/archive.c b/bfd/archive.c
index 437a085..5e0fd6b 100644
--- a/bfd/archive.c
+++ b/bfd/archive.c
@@ -1652,6 +1652,16 @@ bfd_ar_hdr_from_filesystem (bfd *abfd, const char *filename, bfd *member)
       return NULL;
     }
 
+  /* If the caller requested that the BFD generate deterministic output,
+     fake values for modification time, UID, GID, and file mode.  */
+  if ((abfd->flags & BFD_DETERMINISTIC_OUTPUT) != 0)
+    {
+      status.st_mtime = 0;
+      status.st_uid = 0;
+      status.st_gid = 0;
+      status.st_mode = 0644;
+    }
+
   amt = sizeof (struct ar_hdr) + sizeof (struct areltdata);
   ared = bfd_zalloc (abfd, amt);
   if (ared == NULL)
@@ -2220,20 +2230,39 @@ bsd_write_armap (bfd *arch,
   unsigned int count;
   struct ar_hdr hdr;
   struct stat statbuf;
+  long uid, gid;
 
   firstreal = mapsize + elength + sizeof (struct ar_hdr) + SARMAG;
 
   stat (arch->filename, &statbuf);


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-02-23 14:09 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-02-23 14:09 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  6565d504ae7decaa9065580ea9cb9b039f1b3b05 (commit)
       via  2bc2becfab3f5c1771f5a344fcb678f4b559e1d7 (commit)
       via  f877ad1d0209b7b272278298b716c2bdb2c9bf94 (commit)
       via  13f7928fd58685981ca1ef65d435096125a1623e (commit)
       via  069fc023ab96df3d7723a945c7ecd7960495ba95 (commit)
       via  d106a8e46e5715fb1abbce6e737d1218b8983bfb (commit)
       via  be44ac148163ced0dde7b8ff23c8f1cc49efa106 (commit)
       via  af689630c851b0f05e29ca86e3980f24241bfcf0 (commit)
       via  5e3762932aeb33efd3786fdfaa5ae4e9f26fc497 (commit)
       via  f002322d7957df3a2d7e468e74d595369c16932d (commit)
       via  97a89742c8bd04df6ce261d5c615205ab0ae524f (commit)
       via  ca0aed765a0e22d44023feea2cda7af46bc3118c (commit)
       via  256b89a3d83d84e75aee72882dea40fbfe5f7ca5 (commit)
       via  1f2311b95f61b42edb1f8058c6e1aff436f3e9f8 (commit)
       via  459788c68ea3b7ba9344a1786e57b2a65f5f9cf2 (commit)
       via  57959f6eab583d328b0b7eefc2910de8b9fa06ea (commit)
       via  2d2f8919e2a4e808f233c7e6675ed17c5a788aea (commit)
      from  48c30cb6b9c943fd4ab69d552b8f51f8e67b99f2 (commit)

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

- Log -----------------------------------------------------------------
commit 6565d504ae7decaa9065580ea9cb9b039f1b3b05
Merge: 48c30cb6b9c943fd4ab69d552b8f51f8e67b99f2 2bc2becfab3f5c1771f5a344fcb678f4b559e1d7
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Feb 23 15:08:50 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                       |  224 +++++
 bfd/bfd-in2.h                       |   16 +
 bfd/bfdio.c                         |   22 +-
 bfd/elf32-arm.c                     |   73 +-
 bfd/libbfd.h                        |    4 +
 bfd/makefile.vms                    |   10 +-
 bfd/reloc.c                         |   24 +
 bfd/version.h                       |    2 +-
 bfd/vms-gsd.c                       |  347 ++++++--
 bfd/vms-hdr.c                       | 1090 ++++++++++++++++++++++++-
 bfd/vms-misc.c                      |  520 +++++++------
 bfd/vms-tir.c                       | 1559 ++++++++++++++++++++++++-----------
 bfd/vms.c                           |  823 ++++++++++++++----
 bfd/vms.h                           |  635 ++++++++++-----
 gdb/ChangeLog                       |  347 ++++++++-
 gdb/ada-exp.y                       |    3 +
 gdb/ada-lang.c                      |   17 +-
 gdb/ada-tasks.c                     |   11 +-
 gdb/addrmap.c                       |    3 +
 gdb/alpha-linux-tdep.c              |    5 +-
 gdb/alpha-osf1-tdep.c               |    3 +
 gdb/alphabsd-nat.c                  |    6 +-
 gdb/amd64-linux-nat.c               |    6 +-
 gdb/amd64-nat.c                     |    1 +
 gdb/amd64-sol2-tdep.c               |    3 +
 gdb/amd64bsd-nat.c                  |    6 +-
 gdb/amd64fbsd-tdep.c                |    2 +-
 gdb/amd64nbsd-tdep.c                |    2 +-
 gdb/arm-linux-nat.c                 |    6 +-
 gdb/arm-linux-tdep.c                |    5 +-
 gdb/armbsd-tdep.c                   |    2 +-
 gdb/armnbsd-nat.c                   |    6 +-
 gdb/armnbsd-tdep.c                  |    3 +
 gdb/armobsd-tdep.c                  |    3 +
 gdb/auxv.c                          |    2 +-
 gdb/avr-tdep.c                      |    4 +-
 gdb/bfd-target.c                    |    4 +-
 gdb/breakpoint.c                    |    5 +-
 gdb/bsd-kvm.c                       |    6 +-
 gdb/bsd-uthread.c                   |   52 +-
 gdb/cli/cli-logging.c               |    5 +-
 gdb/corelow.c                       |   30 +-
 gdb/cp-name-parser.y                |    1 +
 gdb/cp-namespace.c                  |    3 +
 gdb/cp-valprint.c                   |    2 +-
 gdb/cris-tdep.c                     |    4 +-
 gdb/darwin-nat.c                    |   18 +-
 gdb/eval.c                          |    2 +-
 gdb/exceptions.c                    |    2 +-
 gdb/exec.c                          |    6 +-
 gdb/findcmd.c                       |    3 +
 gdb/fork-child.c                    |    3 +
 gdb/frame.c                         |    2 +-
 gdb/frv-tdep.c                      |    2 +-
 gdb/gcore.c                         |    3 +
 gdb/gdbarch.c                       |   33 +
 gdb/gdbarch.h                       |    9 +
 gdb/gdbarch.sh                      |    4 +
 gdb/gdbcore.h                       |    4 -
 gdb/gnu-nat.c                       |   11 +-
 gdb/gnu-v3-abi.c                    |    2 +-
 gdb/go32-nat.c                      |   22 +-
 gdb/h8300-tdep.c                    |    4 +-
 gdb/hppa-hpux-nat.c                 |    6 +-
 gdb/hppa-linux-nat.c                |    6 +-
 gdb/hppa-tdep.c                     |    4 +-
 gdb/hppa-tdep.h                     |    2 -
 gdb/hppabsd-nat.c                   |    6 +-
 gdb/hppabsd-tdep.c                  |    3 +-
 gdb/{sol2-tdep.h => hppabsd-tdep.h} |   14 +-
 gdb/hppanbsd-nat.c                  |    6 +-
 gdb/hppanbsd-tdep.c                 |    5 +-
 gdb/hppaobsd-tdep.c                 |    5 +-
 gdb/hpux-thread.c                   |   31 +-
 gdb/i386-darwin-nat.c               |    6 +-
 gdb/i386-linux-nat.c                |   11 +-
 gdb/i386-nto-tdep.c                 |    3 +
 gdb/i386-sol2-tdep.c                |    3 +
 gdb/i386bsd-nat.c                   |    6 +-
 gdb/i386fbsd-nat.c                  |    3 +-
 gdb/i386nbsd-tdep.c                 |    3 +
 gdb/ia64-linux-nat.c                |    6 +-
 gdb/ia64-linux-tdep.c               |    3 +
 gdb/ia64-tdep.c                     |    2 +-
 gdb/inf-child.c                     |    7 +-
 gdb/inf-ptrace.c                    |   14 +-
 gdb/inf-ttrace.c                    |   26 +-
 gdb/inferior.h                      |    2 +-
 gdb/infrun.c                        |    4 +-
 gdb/iq2000-tdep.c                   |    3 +
 gdb/jv-lang.c                       |    2 +-
 gdb/linux-nat.c                     |   33 +-
 gdb/linux-tdep.c                    |    1 +
 gdb/linux-thread-db.c               |   27 +-
 gdb/m2-typeprint.c                  |    2 +-
 gdb/m32c-tdep.c                     |    8 +-
 gdb/m32r-linux-nat.c                |    6 +-
 gdb/m32r-rom.c                      |    3 +
 gdb/m32r-tdep.c                     |    4 +-
 gdb/m68hc11-tdep.c                  |    4 +-
 gdb/m68kbsd-nat.c                   |    6 +-
 gdb/m68klinux-nat.c                 |    6 +-
 gdb/m68klinux-tdep.c                |    3 +
 gdb/m88k-tdep.c                     |    2 +-
 gdb/m88kbsd-nat.c                   |    6 +-
 gdb/macroscope.c                    |    2 +
 gdb/mep-tdep.c                      |    6 +-
 gdb/mi/mi-common.c                  |    3 +
 gdb/mips-irix-tdep.c                |    3 +
 gdb/mips-linux-nat.c                |   10 +-
 gdb/mips-linux-tdep.c               |    7 +-
 gdb/mips-tdep.c                     |    2 +-
 gdb/mips64obsd-nat.c                |    6 +-
 gdb/mipsnbsd-nat.c                  |    6 +-
 gdb/mipsnbsd-tdep.c                 |    3 +
 gdb/mn10300-linux-tdep.c            |    3 +
 gdb/mn10300-tdep.c                  |    3 +
 gdb/monitor.c                       |   11 +-
 gdb/mt-tdep.c                       |    3 +
 gdb/nbsd-tdep.c                     |    1 +
 gdb/nto-procfs.c                    |   23 +-
 gdb/nto-tdep.c                      |    5 +-
 gdb/osdata.c                        |    2 +-
 gdb/ppc-linux-nat.c                 |    6 +-
 gdb/ppc-linux-tdep.c                |    5 +-
 gdb/ppcnbsd-nat.c                   |    6 +-
 gdb/ppcobsd-nat.c                   |    6 +-
 gdb/proc-service.c                  |    3 +
 gdb/procfs.c                        |  190 ++---
 gdb/python/python.c                 |    3 +
 gdb/regcache.c                      |    2 +-
 gdb/remote-m32r-sdi.c               |   69 +-
 gdb/remote-mips.c                   |   20 +-
 gdb/remote-sim.c                    |   16 +-
 gdb/remote.c                        |   27 +-
 gdb/reverse.c                       |    3 +
 gdb/rs6000-aix-tdep.c               |    3 +
 gdb/rs6000-nat.c                    |   14 +-
 gdb/rs6000-tdep.c                   |   16 +-
 gdb/s390-nat.c                      |    6 +-
 gdb/s390-tdep.c                     |    2 +-
 gdb/sh-tdep.c                       |    2 +-
 gdb/shnbsd-nat.c                    |    6 +-
 gdb/shnbsd-tdep.c                   |    5 +-
 gdb/sol-thread.c                    |  509 ++----------
 gdb/sol2-tdep.c                     |   13 +
 gdb/sol2-tdep.h                     |    2 +
 gdb/solib-frv.c                     |    5 +-
 gdb/solib-irix.c                    |    5 +-
 gdb/solib-som.c                     |    4 +-
 gdb/solib-svr4.c                    |    2 +-
 gdb/solib.c                         |    1 +
 gdb/sparc-nat.c                     |    6 +-
 gdb/sparc-nat.h                     |    6 +-
 gdb/sparc-sol2-tdep.c               |    3 +
 gdb/sparc-tdep.c                    |    2 +-
 gdb/sparc64-sol2-tdep.c             |    3 +
 gdb/sparcnbsd-tdep.c                |    2 +-
 gdb/spu-linux-nat.c                 |    6 +-
 gdb/spu-tdep.c                      |    5 +-
 gdb/stabsread.c                     |    4 +-
 gdb/symfile-mem.c                   |    4 +
 gdb/symfile.c                       |    2 +-
 gdb/symtab.c                        |    4 +-
 gdb/target-descriptions.c           |    3 +
 gdb/target.c                        |  182 +++--
 gdb/target.h                        |   24 +-
 gdb/tui/tui-command.c               |    1 +
 gdb/tui/tui-data.c                  |    4 +-
 gdb/tui/tui-disasm.c                |    1 +
 gdb/tui/tui-interp.c                |    3 +
 gdb/tui/tui-layout.c                |    5 +
 gdb/tui/tui-regs.c                  |    6 +-
 gdb/tui/tui-stack.c                 |    4 +
 gdb/tui/tui-win.c                   |   10 +-
 gdb/tui/tui-win.h                   |    3 +-
 gdb/tui/tui-windata.c               |    1 +
 gdb/tui/tui-wingeneral.c            |    2 +-
 gdb/utils.c                         |    3 +
 gdb/vax-tdep.c                      |    2 +-
 gdb/vaxbsd-nat.c                    |    6 +-
 gdb/version.in                      |    2 +-
 gdb/windows-nat.c                   |   23 +-
 gdb/xcoffread.c                     |    6 +-
 gdb/{sol2-tdep.h => xcoffread.h}    |   15 +-
 gdb/xtensa-linux-nat.c              |    6 +-
 gdb/xtensa-linux-tdep.c             |    3 +
 gdb/xtensa-tdep.c                   |    7 +-
 libiberty/ChangeLog                 |    5 +
 libiberty/make-temp-file.c          |   87 ++-
 190 files changed, 5493 insertions(+), 2358 deletions(-)
 copy gdb/{sol2-tdep.h => hppabsd-tdep.h} (72%)
 copy gdb/{sol2-tdep.h => xcoffread.h} (72%)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 32ae0d8..1c4717f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,227 @@
+2009-02-23  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
+	code.
+	(elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
+	(arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
+	BLX is not available. Fix typo in warning message. Add comments
+	and improve formatting.
+	(arm_build_one_stub): Adjust to new
+	elf32_arm_stub_long_branch_v4t_thumb_arm stub.
+	(arm_map_one_stub): Likewise.
+
+2009-02-23  Tristan Gingold  <gingold@adacore.com>
+
+	* vms.h: Update copyright year, fix comments, reorder declarations.
+	(_bfd_save_vms_section): Remove the prototype.
+	(EGPS_S_V_NO_SHIFT): New constant.
+	(bfd_vms_set_section_flags): New prototype.
+	(EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
+	constants.
+	(EGSY_S_W_FLAGS): Ditto.
+	(EGSY_S_V_QUAD_VAL): Ditto.
+	(ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
+	(EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
+	EGST_S_B_NAMLNG): Ditto.
+	(ESRF_S_B_NAMLNG): Ditto.
+	(ETIR_S_C_HEADER_SIZE): Ditto.
+	(EGPS_S_V_ALLOC_64BIT): Ditto.
+	(DST_S_C_EPILOG): Ditto.
+	(DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
+	(DST_S_C_SRC_INCRLNUM_B): Ditto.
+	(DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
+	(DST_S_L_PCLINE_UNSLONG): Ditto.
+	(DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
+	(DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
+	(DST_S_C_SOURCE_HEADER_SIZE): Ditto.
+	(DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
+	(DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
+	(DST_S_B_SRC_UNSBYTE): Ditto.
+	(DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
+	Add prototypes.
+	(vms_section, vms_reloc): Remove types.
+	(hdr_struc): Replaced by ...
+	(hdr_struct): ... new type.
+	(EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
+	(EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
+	(EMH_DATE_LENGTH): Ditto.
+	(eom_struc): Replaced by ...
+	(eom_struct): ... new type.
+	(EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
+	(EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
+	(EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
+	(EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
+	(EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
+	(EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
+	(EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
+	(EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
+	(EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
+	(EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
+	(EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
+	(EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
+	(EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
+	(EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
+	(EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
+	(DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
+	(DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
+	(DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
+	(DBG_S_C_DMT_PSECT_SIZE): Ditto.
+	(enum file_type_enum): New type.
+	(struct location_struct): Removed.
+	(struct fileinfo, struct srecinfo, struct lineinfo): New types.
+	(struct funcinfo, struct module): Ditto.
+	(struct vms_private_data_struct): Update fields.
+	(struct vms_section_data_struct): New type.
+
+	* vms.c: Update copyright year, fix comments,
+	Fix includes for DECC, add prototypes.
+	(vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
+	some initializers.
+	Use flavour to set is_vax, location_stack is removed.
+	(struct pair): Declare.
+	(fill_section_ptr): Initialize variables at declaration.
+	Add guard to set SECTION_SYM flag, handlde und section.
+	(vms_fixup_sections): Use struct pair for fill_section_ptr argument.
+	(_bfd_vms_slurp_object_records): New function, replaces previous
+	vms_object_p.
+	(vms_slurp_module): New function.
+	(vms_slurp_image): Ditto.
+	(vms_object_p): Complete rewrite.
+	(vms_mkobject): Use is_vax field to slect architecture.
+	(free_reloc_stream): New function.
+	(vms_convert_to_var): Ditto.
+	(vms_convert_to_var_1): Ditto.
+	(vms_convert_to_var_unix_filename): Ditto.
+	(vms_close_and_cleanup): Call free_reloc_stream, convert file to
+	VAR format on VMS.
+	(vms_new_section_hook): Set alignment to 0, allocate private data.
+	(vms_get_section_contents): Load content.
+	(vms_get_symbol_info): Handle undefined section.
+	(vms_find_nearest_line): Handle.
+	(alloc_reloc_stream): New function.
+	(vms_slurp_reloc_table): Ditto.
+	(vms_get_reloc_upper_bound): Make it real.
+	(vms_canonicalize_reloc): Do the real work.
+	(alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
+	ALPHA_R_BOH.
+	(vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
+	(vms_set_arch_mach): Check arch.
+	(vms_set_section_contents): Copy the content after allocation.
+	(vms_alpha_vec): Update object flags.
+
+	* vms-tir.c: Update copyright year, fix comments,
+	add prototypes for new functions.
+	(dst_define_location): New function.
+	(dst_restore_location): New function.
+	(dst_retrieve_location): New function.
+	(dst_check_allocation): New function.
+	(image_dump): Call dst_check_allocation.
+	(image_write_b): Ditto.
+	(image_write_w): Ditto.
+	(image_write_l): Ditto.
+	(image_write_q): Ditto.
+	(cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
+	STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
+	CTL_STKDL.
+	Call error handler instead of abort if name is not known.
+	(etir_sta): Add quarter_relocs argument and set it.
+	Fix cast.
+	(etir_sto): Ditto.
+	(etir_opr): Ditto, return FALSE in case of error.
+	(etir_ctl): Add quarter_relocs argument and set it, fix cast.
+	Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
+	(etir_stc): Add quarter_relocs argument and set it, fix cast.
+	Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
+	Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
+	Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
+	Return FALSE in case of error.
+	(tir_sta): Change sign of psect.
+	(tir_ctl): Ditto.
+	(tir_cmd): Fix cast. Makes tir_table static const.
+	(etir_cmd): Add quarter_relocs argument, makes etir_table const,
+	add argument to explain.
+	(analyze_etir): Initialize maxptr, add quarter_relocs
+	declaration, move some declarations into inner scopes.
+	Handle quarter_relocs and STO_IMM.
+	(_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
+	(_bfd_vms_slurp_relocs): New function.
+	(_bfd_vms_decode_relocs): New function.
+	(sto_imm): Rewritten.
+	(start_first_etbt_record): New function.
+	(start_another_etbt_record): Ditto.
+	(etir_output_check): Ditto.
+	(defer_reloc_p): Ditto.
+	(_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
+	a for-loop.  Correctly deals with contents, deals with .vmsdebug,
+	rewritte relocations handling.
+	(_bfd_vms_write_tbt): Removed.
+	(_bfd_vms_write_dbg): Ditto.
+
+	* vms-misc.c: Update copyright year, Fix comments.
+	(_bfd_vms_get_header_values): Use 'size' instead of 'length'.
+	(maybe_adjust_record_pointer_for_object): New function.
+	(_bfd_vms_get_first_record): New function, replaces ...
+	(_bfd_vms_get_record): ..  removed.
+	(_bfd_vms_get_object_record): New function.
+	(_bfd_vms_get_object_record): New function.
+	(vms_get_remaining_object_record): New function, replaces ...
+	(_bfd_vms_get_next_record): ... removed.
+	(add_new_contents): Removed.
+	(_bfd_save_vms_section): Removed.
+	(_bfd_get_vms_section): Removed.
+	(_bfd_vms_output_flush): Write in VAR format.
+	(new_symbol): Don't make UND section.
+
+	* vms-hdr.c: Update copyright year, update list of record handled.
+	(_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
+	(_bfd_vms_write_hdr): Strip vms and unix patches,
+	add comments, truncate module name at 31 characters,
+	use constants instead of hard-coded value,
+	write BFD version instead of a fixed string.
+	(_bfd_vms_slurp_ihd): New function.
+	(_bfd_vms_slurp_isd): Ditto.
+	(_bfd_vms_slurp_ihs): Ditto.
+	(new_module): Ditto.
+	(parse_module): Ditto
+	(build_module_list): Ditto.
+	(module_find_nearest_line): Ditto.
+	(_bfd_vms_find_nearest_dst_line): Ditto.
+	(vms_slurp_debug): Ditto.
+	(_bfd_vms_slurp_dbg): Ditto.
+	(_bfd_vms_slurp_tbt): Ditto.
+	(_bfd_vms_write_dbg): Ditto.
+	(_bfd_vms_write_tbt): Ditto.
+
+	* vms-gsd.c: Update copyright year, update list of records handled.
+	(EVAX_LITERALS_NAME): New macro.
+	(evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
+	(gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
+	(register_universal_symbol): New function and prototype.
+	(_bfd_vms_slurp_gsd): Fix indentations and casts,
+	improve debug messages,
+	use constants instead of hard-coded value,
+	fix missing endianness conversion,
+	handle global symbol (SYMG).
+	(bfd_vms_set_section_flags): New function.
+	(_bfd_vms_write_gsd): Don't write .vmsdebug section,
+	handle section literals,
+	fix indentation,
+	handle section bfd and vms flags,
+	don't output LIB$INITIALIZE symbol,
+	fix handling of weak symbols,
+	fix evax vs vax procedure descriptor,
+	handle absolute symbols.
+
+	* reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
+	BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
+
+	* makefile.vms (DEFS): Fix flags for VMS.
+
+	* bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
+
+	* bfd-in2.h: Regenerated.
+	* libbfd.h: Regenerated.
+
 2009-02-20  Cary Coutant  <ccoutant@google.com>
 
 	* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 994759d..7870962 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2586,6 +2586,22 @@ share a common GP, and the target address is adjusted for
 STO_ALPHA_STD_GPLOAD.  */
   BFD_RELOC_ALPHA_BRSGP,
 
+/* The NOP relocation outputs a NOP if the longword displacement
+between two procedure entry points is < 2^21.  */
+  BFD_RELOC_ALPHA_NOP,
+
+/* The BSR relocation outputs a BSR if the longword displacement
+between two procedure entry points is < 2^21.  */
+  BFD_RELOC_ALPHA_BSR,
+
+/* The LDA relocation outputs a LDA if the longword displacement
+between two procedure entry points is < 2^16.  */
+  BFD_RELOC_ALPHA_LDA,
+
+/* The BOH relocation outputs a BSR if the longword displacement
+between two procedure entry points is < 2^21, or else a hint.  */
+  BFD_RELOC_ALPHA_BOH,
+
 /* Alpha thread-local storage relocations.  */
   BFD_RELOC_ALPHA_TLSGD,
   BFD_RELOC_ALPHA_TLSLDM,
diff --git a/bfd/bfdio.c b/bfd/bfdio.c
index 7cba51f..d3a295c 100644
--- a/bfd/bfdio.c
+++ b/bfd/bfdio.c
@@ -102,13 +102,21 @@ real_fopen (const char *filename, const char *modes)
     }
   else
     {
-      /* Attribute found - rebuild modes.  */
-      size_t modes_len = vms_attr - modes;
-
-      BFD_ASSERT (modes_len < sizeof (vms_modes));
-      memcpy (vms_modes, modes, modes_len);
-      vms_modes[modes_len] = 0;
-      return close_on_exec (fopen (filename, vms_modes, vms_attr + 1));
+      /* Attributes found.  Split.  */
+      size_t modes_len = strlen (modes) + 1;
+      char attrs[modes_len + 1];
+      char *at[3];
+      int i;
+
+      memcpy (attrs, modes, modes_len);
+      at[0] = attrs;
+      for (i = 0; i < 2; i++)
+	{
+	  at[i + 1] = strchr (at[i], ',');
+	  BFD_ASSERT (at[i + 1] != NULL);
+	  *(at[i + 1]++) = 0; /* Replace ',' with a nul, and skip it.  */
+	}
+      return close_on_exec (fopen (filename, at[0], at[1], at[2]));
     }
 #else /* !VMS */
 #if defined (HAVE_FOPEN64)
diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
index 04f5405..6cf3322 100644
--- a/bfd/elf32-arm.c
+++ b/bfd/elf32-arm.c
@@ -2032,11 +2032,11 @@ static const bfd_vma elf32_arm_stub_long_branch_v4t_arm_thumb[] =
    to ARM.  */
 static const bfd_vma elf32_arm_stub_long_branch_thumb_only[] =
   {
-    0x4e02b540,         /* push {r6, lr} */
-                        /* ldr  r6, [pc, #8] */
-    0x473046fe,         /* mov  lr, pc */
-                        /* bx   r6 */
-    0xbf00bd40,         /* pop  {r6, pc} */
+    0x4802b401,         /* push {r0} */
+                        /* ldr  r0, [pc, #8] */
+    0xbc014684,         /* mov  ip, r0 */
+                        /* pop  {r0} */
+    0xbf004760,         /* bx   ip */
                         /* nop */
     0x00000000,         /* dcd  R_ARM_ABS32(X) */
   };
@@ -2045,13 +2045,10 @@ static const bfd_vma elf32_arm_stub_long_branch_thumb_only[] =
    available.  */
 static const bfd_vma elf32_arm_stub_long_branch_v4t_thumb_arm[] =
   {
-    0x4e03b540,         /* push {r6, lr} */
-                        /* ldr  r6, [pc, #12] */
-    0x473046fe,         /* mov  lr, pc */
-                        /* bx   r6 */
-    0xe8bd4040,         /* pop  {r6, pc} */
-    0xe12fff1e,         /* bx   lr */
-    0x00000000,         /* dcd  R_ARM_ABS32(X) */
+    0x46c04778,         /* bx   pc */
+                        /* nop   */
+    0xe51ff004,         /* ldr   pc, [pc, #-4] */
+    0x00000000,         /* dcd   R_ARM_ABS32(X) */
   };
 
 /* V4T Thumb -> ARM short branch stub. Shorter variant of the above
@@ -2819,20 +2816,27 @@ arm_type_of_stub (struct bfd_link_info *info,
 	      if (!thumb_only)
 		{
 		  stub_type = (info->shared | globals->pic_veneer)
+		    /* PIC stubs.  */
 		    ? ((globals->use_blx)
+		       /* V5T and above.  */
 		       ? arm_stub_long_branch_any_any_pic
+		       /* not yet supported on V4T.  */
 		       : arm_stub_none)
-		    : (globals->use_blx)
-		    ? arm_stub_long_branch_any_any
-		    : arm_stub_none;
+
+		    /* non-PIC stubs.  */
+		    : ((globals->use_blx)
+		       /* V5T and above.  */
+		       ? arm_stub_long_branch_any_any
+		       /* V4T.  */
+		       : arm_stub_long_branch_thumb_only);
 		}
 	      else
 		{
 		  stub_type = (info->shared | globals->pic_veneer)
+		    /* PIC stub not yet supported on V4T.  */
 		    ? arm_stub_none
-		    : (globals->use_blx)
-		    ? arm_stub_long_branch_thumb_only
-		    : arm_stub_none;
+		    /* non-PIC stub.  */
+		    : arm_stub_long_branch_thumb_only;
 		}
 	    }
 	  else
@@ -2849,12 +2853,19 @@ arm_type_of_stub (struct bfd_link_info *info,
 		}
 
 	      stub_type = (info->shared | globals->pic_veneer)
+		/* PIC stubs.  */
 		? ((globals->use_blx)
+		   /* V5T and above.  */
 		   ? arm_stub_long_branch_any_any_pic
+		   /* not yet supported on V4T.  */
 		   : arm_stub_none)
-		: (globals->use_blx)
-		? arm_stub_long_branch_any_any
-		: arm_stub_long_branch_v4t_thumb_arm;
+
+		/* non-PIC stubs.  */
+		: ((globals->use_blx)
+		   /* V5T and above.  */
+		   ? arm_stub_long_branch_any_any
+		   /* V4T.  */
+		   : arm_stub_long_branch_v4t_thumb_arm);
 
 	      /* Handle v4t short branches.  */
 	      if ((stub_type == arm_stub_long_branch_v4t_thumb_arm)
@@ -2876,7 +2887,7 @@ arm_type_of_stub (struct bfd_link_info *info,
 	    {
 	      (*_bfd_error_handler)
 		(_("%B(%s): warning: interworking not enabled.\n"
-		   "  first occurrence: %B: Thumb call to ARM"),
+		   "  first occurrence: %B: ARM call to Thumb"),
 		 sym_sec->owner, input_bfd, name);
 	    }
 
@@ -2887,10 +2898,14 @@ arm_type_of_stub (struct bfd_link_info *info,
 	      || !globals->use_blx)
 	    {
 	      stub_type = (info->shared | globals->pic_veneer)
+		/* PIC stubs.  */
 		? arm_stub_long_branch_any_any_pic
-		: (globals->use_blx)
-		? arm_stub_long_branch_any_any
-		: arm_stub_long_branch_v4t_arm_thumb;
+		/* non-PIC stubs.  */
+		: ((globals->use_blx)
+		   /* V5T and above.  */
+		   ? arm_stub_long_branch_any_any
+		   /* V4T.  */
+		   : arm_stub_long_branch_v4t_arm_thumb);
 	    }
 	}
       else
@@ -2900,7 +2915,9 @@ arm_type_of_stub (struct bfd_link_info *info,
 	      || (branch_offset < ARM_MAX_BWD_BRANCH_OFFSET))
 	    {
 	      stub_type = (info->shared | globals->pic_veneer)
+		/* PIC stubs.  */
 		? arm_stub_long_branch_any_any_pic
+		/* non-PIC stubs.  */
 		: arm_stub_long_branch_any_any;
 	    }
 	}
@@ -3188,7 +3205,7 @@ arm_build_one_stub (struct bfd_hash_entry *gen_entry,
     case arm_stub_long_branch_v4t_thumb_arm:
       _bfd_final_link_relocate (elf32_arm_howto_from_type (R_ARM_ABS32),
 				stub_bfd, stub_sec, stub_sec->contents,
-				stub_entry->stub_offset + 16, sym_value, 0);
+				stub_entry->stub_offset + 8, sym_value, 0);
       break;
     case arm_stub_short_branch_v4t_thumb_arm:
       {
@@ -11697,9 +11714,9 @@ arm_map_one_stub (struct bfd_hash_entry * gen_entry,
 	return FALSE;
       if (!elf32_arm_output_map_sym (osi, ARM_MAP_THUMB, addr))
 	return FALSE;
-      if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr + 8))
+      if (!elf32_arm_output_map_sym (osi, ARM_MAP_ARM, addr + 4))
 	return FALSE;
-      if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 16))
+      if (!elf32_arm_output_map_sym (osi, ARM_MAP_DATA, addr + 8))
 	return FALSE;
       break;
     case arm_stub_short_branch_v4t_thumb_arm:
diff --git a/bfd/libbfd.h b/bfd/libbfd.h
index 26238b5..2ba7fc8 100644
--- a/bfd/libbfd.h
+++ b/bfd/libbfd.h
@@ -957,6 +957,10 @@ static const char *const bfd_reloc_code_real_names[] = { "@@uninitialized@@",
   "BFD_RELOC_ALPHA_GPREL_HI16",
   "BFD_RELOC_ALPHA_GPREL_LO16",
   "BFD_RELOC_ALPHA_BRSGP",
+  "BFD_RELOC_ALPHA_NOP",
+  "BFD_RELOC_ALPHA_BSR",
+  "BFD_RELOC_ALPHA_LDA",
+  "BFD_RELOC_ALPHA_BOH",
   "BFD_RELOC_ALPHA_TLSGD",
   "BFD_RELOC_ALPHA_TLSLDM",
   "BFD_RELOC_ALPHA_DTPMOD64",
diff --git a/bfd/makefile.vms b/bfd/makefile.vms
index 963441a..2e2d2a1 100644
--- a/bfd/makefile.vms
+++ b/bfd/makefile.vms
@@ -36,13 +36,15 @@ endif
 CFLAGS=/include=([],[-.include])$(DEFS)
 else
 ifeq ($(ARCH),ALPHA)
-DEFS=/define=(SELECT_VECS="&vms_alpha_vec",SELECT_ARCHITECTURES="&bfd_alpha_arch",\
-"HAVE_vms_alpha_vec=1","unlink=remove","DEBUGDIR=NULL")
+DEFS=/define=(SELECT_VECS="&vms_alpha_vec",\
+  SELECT_ARCHITECTURES="&bfd_alpha_arch",\
+  "HAVE_vms_alpha_vec=1","unlink=remove","DEBUGDIR=NULL")
 else
 DEFS=/define=(SELECT_VECS="&vms_vax_vec",SELECT_ARCHITECTURES="&bfd_vax_arch",\
-"HAVE_vms_vax_vec=1","unlink=remove","const=")
+  "HAVE_vms_vax_vec=1","unlink=remove")
 endif
-CFLAGS=/noopt/debug/show=incl/name=(as_is,shortened)/include=([],[-.include])$(DEFS)/warnings=disable=(missingreturn,longextern)
+OPT=/noopt/debug
+CFLAGS=/name=(as_is,shortened)/include=([],[-.include])$(DEFS)$(OPT)
 endif
 
 
diff --git a/bfd/reloc.c b/bfd/reloc.c
index 0c0fb1d..781147e 100644
--- a/bfd/reloc.c
+++ b/bfd/reloc.c
@@ -2110,6 +2110,30 @@ ENUMDOC
   STO_ALPHA_STD_GPLOAD.
 
 ENUM
+  BFD_RELOC_ALPHA_NOP
+ENUMDOC
+  The NOP relocation outputs a NOP if the longword displacement
+     between two procedure entry points is < 2^21.
+
+ENUM
+  BFD_RELOC_ALPHA_BSR


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-02-21  0:31 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-02-21  0:31 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  48c30cb6b9c943fd4ab69d552b8f51f8e67b99f2 (commit)
       via  53089be36d7fcfd62e8eb40bd4fdf3f0631fe3ac (commit)
       via  a860804364cd916d40273cce19c02f05e6540f0f (commit)
       via  6d96804441519abea1126232640d2f82e987335b (commit)
       via  2ec6dc173a50f318ea0865c7b9543ff723c6bfd3 (commit)
       via  9509403af9755d5334454c20d1504a567c5d9b3a (commit)
       via  597f03241f93b1a73ab394469992309f93e4bc8e (commit)
       via  bdd55903c84984eccaa5345b36415cd767728190 (commit)
       via  677bfa8d5bc34ed302193271a439268c1cfeb632 (commit)
       via  36c5624bebf012aa7dec40b20d5e7712d9e0b33b (commit)
       via  b8be230d6d076d3466492b0a6e1877e26150783a (commit)
       via  a74dbf1be8a84bff333571954e220837deb3ddc9 (commit)
       via  98272542add82fe113c4d3bea888a7a40019eaa1 (commit)
       via  5f0501477fc6332075673ad425979103423c74be (commit)
       via  566ddf642553ba473040430f751004389ed44fff (commit)
       via  2504a910747bad8ae1076430a07b0acdaf6d2613 (commit)
       via  3a289b5e696442abc63ccde975ded195c94f70a1 (commit)
       via  38d8413dc193b820586777e11a11716fbcdfed30 (commit)
       via  3af29a91e1f67cf94009f6fa9473553fac7b83c8 (commit)
       via  5214df495a03ce68a6f9fd5944e2a70ad5b39db2 (commit)
       via  011557197e75c477dc9d97281aa6708db5986566 (commit)
       via  1f30768d8c6b06a25638a3ee42bfce87b6ff195c (commit)
       via  92997fd6efe086fa0e9a2e9118298b5eefbbcee2 (commit)
       via  68e6cb94bcedea41f1e31dc9c338c1ec4471b2aa (commit)
       via  fa48e67a600b2550c9811795a6faecc44414db82 (commit)
       via  3d8a30832b60b9cd4b3fdc46bb799162e85e0907 (commit)
       via  85ced7552f6c186be0cdc574a4e7bf13f996ca88 (commit)
       via  58f069edbd6baf1fe200ab72de2e423429dba100 (commit)
       via  fabdb985649e3590f792033892b2df4f9a83b91a (commit)
       via  58622c3c6ef0f90ffa81d03a34d1ffd93cd89c97 (commit)
       via  33547c8d8624410894b32cb5f29dea127737176a (commit)
       via  850e80a0786263242e89a78810b858a9cac464f9 (commit)
       via  dc234f38592e3c58e599d1c638e18bc9cddd9c64 (commit)
       via  024503abcd82b2736f3e0f9b0acb0889b7d173b5 (commit)
       via  451c4b94b450503affd3a40a9f821b6fe70c3376 (commit)
       via  26d086d741fb1bb0eee9d50e0bafa7c5e388023f (commit)
       via  28dd1034e2e511306a371575fcec79b4c1b19349 (commit)
       via  1f12e11d4dad9dec64f93e53284fe871e29481c2 (commit)
       via  719a65d44b030937c4e74b1bbfd6319654a2fffc (commit)
       via  fb2b554031acf2106a1fc2a5e68940c0e53aa64d (commit)
       via  9e852fd7a0bbbe9b2dd89b6e44431f00fcc23d57 (commit)
       via  5a5d549b6d6d6751957d87349678e121e614a372 (commit)
       via  50c4065f0b670f31eeea906899a6672df004cf67 (commit)
       via  a1c1682668b751806ccb515b48fdfe58d1df9192 (commit)
       via  64c26b89439dd0a74591fb5700fbd230e364feeb (commit)
       via  126b3fb801f7acfa0f414c3e95896de59566adbd (commit)
       via  e947ab663936483dc67424c153f67e78a910b96b (commit)
       via  ad88187efac2686ec0b15c558e05262a003ba504 (commit)
       via  57f9b3e3aca4b09da7dee45bba37a60653de27ee (commit)
       via  8daf1989a99b49fb00fa475a10337916ec418ce2 (commit)
       via  a861ee310e073105e393e0f4353c6bd12f2dcdc9 (commit)
       via  7c2608818db4dc98bbbd9429b4530a8a8c191c4a (commit)
       via  9dc7f9a502f63c04302c19f5ae7c5d24953bb4c6 (commit)
       via  1424a5757dc0468db2f20be1ab9945a67da23931 (commit)
       via  206dd726511502c477ae435f0f0c2d8a253be064 (commit)
       via  a2359259373fcc5b393843c24bdfd03f5cfc6dff (commit)
       via  948311e2382e7a427f7f8d77e584e421c2c4ad52 (commit)
       via  1e702ec6c22c9ad145ae87d8073fc853973cc512 (commit)
       via  66d3e97f76138f50c5954b9f104c1a831bbf6932 (commit)
       via  3466f1a4bb94676a9305361bfd61e667315bff79 (commit)
       via  c953f5544c9e1769eaea18ef4326de7b872dd10f (commit)
       via  bd772e2cfac951fff4635f88316503f358186d8a (commit)
       via  23815d11dce4e80177e1bd1a0831c6d0b749eaaf (commit)
      from  30cac77f8975ae7b16030107d938808e5debed8b (commit)

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

- Log -----------------------------------------------------------------
commit 48c30cb6b9c943fd4ab69d552b8f51f8e67b99f2
Merge: 30cac77f8975ae7b16030107d938808e5debed8b 53089be36d7fcfd62e8eb40bd4fdf3f0631fe3ac
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sat Feb 21 01:30:40 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                               |  157 +++++++++++++++++
 bfd/coff-alpha.c                            |    5 +-
 bfd/coff-mips.c                             |    5 +-
 bfd/coff-rs6000.c                           |    6 +-
 bfd/coff-sh.c                               |   10 +-
 bfd/coff64-rs6000.c                         |    8 +-
 bfd/coffcode.h                              |  181 ++++++++++++++++----
 bfd/coffgen.c                               |   11 +-
 bfd/ecoff.c                                 |   12 ++-
 bfd/efi-app-ia32.c                          |    5 +-
 bfd/efi-app-ia64.c                          |    5 +-
 bfd/efi-app-x86_64.c                        |    5 +-
 bfd/efi-bsdrv-ia32.c                        |    5 +-
 bfd/efi-bsdrv-ia64.c                        |    5 +-
 bfd/efi-bsdrv-x86_64.c                      |    5 +-
 bfd/efi-rtdrv-ia32.c                        |    5 +-
 bfd/efi-rtdrv-ia64.c                        |    5 +-
 bfd/efi-rtdrv-x86_64.c                      |    5 +-
 bfd/elf-hppa.h                              |    5 +-
 bfd/elf32-arm.c                             |  172 ++++++++++---------
 bfd/elf32-avr.c                             |   19 ++-
 bfd/elf32-mips.c                            |    2 +-
 bfd/elf32-ppc.c                             |   82 +++++----
 bfd/elf32-spu.c                             |   22 ++-
 bfd/elf64-ppc.c                             |  247 +++++++++++++--------------
 bfd/elflink.c                               |    9 +-
 bfd/libcoff-in.h                            |    4 +-
 bfd/libcoff.h                               |   10 +-
 bfd/libecoff.h                              |    9 +-
 bfd/libxcoff.h                              |    2 +
 bfd/pe-mips.c                               |    8 +-
 bfd/pei-arm.c                               |    5 +-
 bfd/pei-i386.c                              |    5 +-
 bfd/pei-mcore.c                             |    5 +-
 bfd/pei-mips.c                              |    5 +-
 bfd/pei-ppc.c                               |    5 +-
 bfd/pei-sh.c                                |    5 +-
 bfd/pei-x86_64.c                            |    5 +-
 bfd/ticoff.h                                |   17 +--
 bfd/version.h                               |    2 +-
 bfd/vmsutil.c                               |    5 +-
 gdb/ChangeLog                               |  137 +++++++++++++++-
 gdb/Makefile.in                             |    9 +-
 gdb/NEWS                                    |    1 +
 gdb/ada-tasks.c                             |    2 +-
 gdb/ada-typeprint.c                         |   16 --
 gdb/amd64-dicos-tdep.c                      |   82 +++++++++
 gdb/amd64-sol2-tdep.c                       |    4 +
 gdb/amd64-tdep.c                            |   43 ++---
 gdb/breakpoint.c                            |    8 +
 gdb/config/i386/nm-cygwin.h                 |    1 +
 gdb/config/i386/nm-cygwin64.h               |    1 +
 gdb/config/i386/nm-fbsd.h                   |    1 +
 gdb/config/i386/nm-go32.h                   |    1 +
 gdb/configure.tgt                           |    4 +-
 gdb/corelow.c                               |   32 +++-
 gdb/dicos-tdep.c                            |  113 ++++++++++++
 gdb/{config/i386/nm-go32.h => dicos-tdep.h} |   25 +--
 gdb/doc/ChangeLog                           |   19 ++
 gdb/doc/gdb.texinfo                         |   16 ++
 gdb/doc/observer.texi                       |   12 +-
 gdb/dwarf2read.c                            |   48 +++++-
 gdb/gdbarch.c                               |   27 +++-
 gdb/gdbarch.h                               |   11 +-
 gdb/gdbarch.sh                              |    7 +
 gdb/gdbserver/ChangeLog                     |    5 +
 gdb/gdbserver/remote-utils.c                |    8 +
 gdb/go32-nat.c                              |    3 +
 gdb/i386-dicos-tdep.c                       |   83 +---------
 gdb/i386-sol2-tdep.c                        |    4 +
 gdb/i386-tdep.c                             |   89 +++++++---
 gdb/i386fbsd-nat.c                          |    1 +
 gdb/infcmd.c                                |    2 +-
 gdb/infrun.c                                |   21 +--
 gdb/mi/mi-interp.c                          |   69 +++++++-
 gdb/observer.c                              |    6 +-
 gdb/p-lang.c                                |   33 +++--
 gdb/p-valprint.c                            |   20 ++-
 gdb/solib.c                                 |    1 +
 gdb/sparc-sol2-tdep.c                       |    4 +
 gdb/sparc64-sol2-tdep.c                     |    4 +
 gdb/stack.c                                 |   11 +-
 gdb/testsuite/ChangeLog                     |   76 ++++++++
 gdb/testsuite/gdb.arch/amd64-disp-step.S    |   28 +++
 gdb/testsuite/gdb.arch/amd64-disp-step.exp  |   20 +++
 gdb/testsuite/gdb.arch/i386-disp-step.S     |   65 +++++++-
 gdb/testsuite/gdb.arch/i386-disp-step.exp   |   58 +++++++
 gdb/testsuite/gdb.base/dfp-test.exp         |   20 ---
 gdb/testsuite/gdb.base/long_long.exp        |   20 ---
 gdb/testsuite/gdb.base/macscp.exp           |   10 +-
 gdb/testsuite/gdb.base/pc-fp.exp            |   19 +--
 gdb/testsuite/gdb.base/remote.exp           |   16 --
 gdb/testsuite/gdb.base/sizeof.exp           |   26 +---
 gdb/testsuite/gdb.cp/pr9594.cc              |    1 +
 gdb/testsuite/gdb.fortran/module.exp        |   35 ++++
 gdb/testsuite/gdb.fortran/module.f90        |   22 +++
 gdb/testsuite/gdb.gdb/observer.exp          |   48 +++---
 gdb/testsuite/gdb.mi/mi-cli.exp             |    3 +
 gdb/testsuite/gdb.mi/mi-nonstop.exp         |    2 +-
 gdb/testsuite/gdb.mi/mi-nsintrall.exp       |    2 +-
 gdb/testsuite/gdb.mi/mi-nsmoribund.exp      |    2 +-
 gdb/testsuite/gdb.pascal/floats.exp         |    8 +-
 gdb/testsuite/gdb.python/python-cmd.exp     |  107 ++++++++++++
 gdb/testsuite/lib/gdb.exp                   |   56 ++++++
 gdb/testsuite/lib/mi-support.exp            |   17 +-
 gdb/version.in                              |    2 +-
 gdb/windows-nat.c                           |    2 +
 gdb/xtensa-tdep.c                           |    7 +-
 libdecnumber/ChangeLog                      |    4 +
 libdecnumber/Makefile.in                    |    4 +-
 opcodes/ChangeLog                           |   30 ++++
 opcodes/fr30-opc.c                          |    5 +-
 opcodes/frv-opc.c                           |    5 +-
 opcodes/ip2k-opc.c                          |    5 +-
 opcodes/iq2000-opc.c                        |    5 +-
 opcodes/lm32-opc.c                          |    5 +-
 opcodes/m32c-opc.c                          |    5 +-
 opcodes/m32r-opc.c                          |    5 +-
 opcodes/m68k-opc.c                          |    4 +-
 opcodes/mep-opc.c                           |    5 +-
 opcodes/mips-opc.c                          |    4 +-
 opcodes/mt-opc.c                            |    5 +-
 opcodes/ppc-opc.c                           |    4 +-
 opcodes/tic54x-dis.c                        |    5 +-
 opcodes/xc16x-opc.c                         |    5 +-
 opcodes/xstormy16-opc.c                     |    5 +-
 126 files changed, 2089 insertions(+), 767 deletions(-)
 create mode 100644 gdb/amd64-dicos-tdep.c
 create mode 100644 gdb/dicos-tdep.c
 copy gdb/{config/i386/nm-go32.h => dicos-tdep.h} (53%)
 create mode 100644 gdb/testsuite/gdb.fortran/module.exp
 create mode 100644 gdb/testsuite/gdb.fortran/module.f90
 create mode 100644 gdb/testsuite/gdb.python/python-cmd.exp

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ecc442f..32ae0d8 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,160 @@
+2009-02-20  Cary Coutant  <ccoutant@google.com>
+
+	* vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
+	in struct stat.
+
+2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+	PR gas/7059
+	* coffcode.h (coff_write_object_contents):  Don't let the string
+	table offset overflow the s_name field when using long section names.
+
+2009-18-02  Dave Korn  <dave.korn.cygwin@gmail.com>
+
+	* coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
+	control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
+	* coff-mips.c (mips_ecoff_backend_data):  Likewise.
+	* coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
+	control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
+	(bfd_pmac_xcoff_backend_data):  Likewise.
+	* coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
+	(bfd_xcoff_aix5_backend_data):  Likewise.
+	(xcoff64_write_object_contents):  Delete unused long_section_names
+	local variable.
+	* coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
+	name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
+	struct non-const.
+	* coffcode.h (documentation):  Update to describe long section names.
+	(COFFLONGSECTIONCATHELPER):  New helper macro.
+	(BLANKOR1TOODD):  Likewise.
+	(COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
+	(COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
+	(COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
+	(bfd_coff_set_long_section_names_allowed):  New function.
+	(bfd_coff_set_long_section_names_disallowed):  Likewise.
+	(struct bfd_coff_backend_data):  Add new backend hook function
+	pointer _bfd_coff_set_long_section_names.
+	(bfd_coff_set_long_section_names):  New backend hook.
+	(coff_write_object_contents):  Only generate long section names if
+	bfd_coff_long_section_names() indicates they are currently enabled.
+	(bfd_coff_std_swap_table):  Make non-const, and initialise long
+	section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
+	(ticoff0_swap_table):  Likewise to both.
+	(ticoff1_swap_table):  Again, likewise to both.
+	* coffgen.c (make_a_section_from_file):  Allow long section names
+	as inputs even if not currently allowed for outputs.
+	* ecoff.c (_bfd_ecoff_no_long_sections):  New function.
+	* efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
+	* efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
+	* libcoff-in.h:  Update copyright year to cause updated copyright
+	year in generated libcoff.h, and fix typo.
+	* libcoff.h:  Regenerated.
+	* libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
+	(_bfd_ecoff_no_long_sections):  Add prototype.
+	* libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
+	* pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
+	defined by an including .c file.
+	* ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
+	long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
+	(ticoff1_swap_table):  Likewise to both.
+
+2009-02-18  Christophe Lyon  <christophe.lyon@st.com>
+
+	* elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
+	stub. Catch default case error.
+	(arm_map_one_stub): Add missing Thumb mapping symbol.
+
+2009-02-18  Bjoern Haase  <bjoern.m.haase@web.de>
+
+	PR 9841
+	* elf32-avr.c: Handle case where no local symbos exist correctly.
+
+2009-02-16  Christophe Lyon  <christophe.lyon@st.com>
+
+	bfd/
+	* elf32-arm.c (arm_long_branch_stub,
+	arm_thumb_v4t_long_branch_stub,
+	arm_thumb_thumb_long_branch_stub,
+	arm_thumb_arm_v4t_long_branch_stub,
+	arm_thumb_arm_v4t_short_branch_stub,
+	arm_pic_long_branch_stub):
+	Renamed to elf32_arm_stub_long_branch_any_any,
+	elf32_arm_stub_long_branch_v4t_arm_thumb,
+	elf32_arm_stub_long_branch_thumb_only,
+	elf32_arm_stub_long_branch_v4t_thumb_arm,
+	elf32_arm_stub_short_branch_v4t_thumb_arm,
+	elf32_arm_stub_long_branch_any_any_pic.
+	(arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
+	arm_thumb_thumb_stub_long_branch,
+	arm_thumb_arm_v4t_stub_long_branch,
+	arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
+	Renamed to arm_stub_long_branch_any_any,
+	arm_stub_long_branch_v4t_arm_thumb,
+	arm_stub_long_branch_thumb_only,
+	arm_stub_long_branch_v4t_thumb_arm,
+	arm_stub_short_branch_v4t_thumb_arm,
+	arm_stub_long_branch_any_any_pic.
+
+2009-02-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
+	in branch offset check.
+
+2009-02-15  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
+	add toc.symndx and toc.add.
+	(ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
+	Set up toc.add.
+	(get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
+	callers.
+	(ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
+	(branch_reloc_hash_match): New function, extracted from..
+	(ppc64_elf_tls_optimize): ..here.
+	(ppc64_elf_relocate_section): Properly set addends when optimizing
+	tls sequences.  Avoid unnecessary reading and writing of insns.
+	Only redo reloc when symbol changed.  Bypass symbol checks when
+	using tlsld_got.
+	* elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
+	(branch_reloc_hash_match): New function, extracted from..
+	(ppc_elf_tls_optimize): ..here.
+	(ppc_elf_relocate_section): Avoid unnecessary reading of insns.
+	Don't clear addend on zapped __tls_get_addr reloc.
+
+2009-02-12  Nick Clifton  <nickc@redhat.com>
+
+	PR 9827
+	* elflink.c (bfd_elf_final_link): When counting the relocations,
+	if the header size has not been set yet then assume that it will
+	match the output section's reloc type.
+
+2009-02-12  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
+	relocatable link.
+
+2009-02-09  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
+	(find_function): Likewise.
+	(pasted_function): Don't error if no prior function found.
+	(discover_functions): Revert 2008-12-10 change.  Extend first
+	function range to start of section.
+
 2009-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
 	* elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
diff --git a/bfd/coff-alpha.c b/bfd/coff-alpha.c
index 98bed84..efe2dd3 100644
--- a/bfd/coff-alpha.c
+++ b/bfd/coff-alpha.c
@@ -1,6 +1,6 @@
 /* BFD back-end for ALPHA Extended-Coff files.
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
+   2003, 2004, 2005, 2007, 2008, 2009 Free Software Foundation, Inc.
    Modified from coff-mips.c by Steve Chamberlain <sac@cygnus.com> and
    Ian Lance Taylor <ian@cygnus.com>.
 
@@ -2297,7 +2297,8 @@ static const struct ecoff_backend_data alpha_ecoff_backend_data =
     (unsigned (*) PARAMS ((bfd *,PTR,PTR))) bfd_void, /* reloc_out */
     alpha_ecoff_swap_filehdr_out, alpha_ecoff_swap_aouthdr_out,
     alpha_ecoff_swap_scnhdr_out,
-    FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, FALSE, 4, FALSE, 2,
+    FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, 
+    ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2,
     alpha_ecoff_swap_filehdr_in, alpha_ecoff_swap_aouthdr_in,
     alpha_ecoff_swap_scnhdr_in, NULL,
     alpha_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook,
diff --git a/bfd/coff-mips.c b/bfd/coff-mips.c
index 929b3c1..f82c52d 100644
--- a/bfd/coff-mips.c
+++ b/bfd/coff-mips.c
@@ -1,6 +1,6 @@
 /* BFD back-end for MIPS Extended-Coff files.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2007, 2008
+   2000, 2001, 2002, 2003, 2004, 2007, 2008, 2009
    Free Software Foundation, Inc.
    Original version by Per Bothner.
    Full support added by Ian Lance Taylor, ian@cygnus.com.
@@ -1312,7 +1312,8 @@ static const struct ecoff_backend_data mips_ecoff_backend_data =
     (unsigned (*) PARAMS ((bfd *,PTR,PTR))) bfd_void, /* reloc_out */
     mips_ecoff_swap_filehdr_out, mips_ecoff_swap_aouthdr_out,
     mips_ecoff_swap_scnhdr_out,
-    FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, FALSE, 4, FALSE, 2,
+    FILHSZ, AOUTSZ, SCNHSZ, 0, 0, 0, 0, FILNMLEN, TRUE, 
+    ECOFF_NO_LONG_SECTION_NAMES, 4, FALSE, 2,
     mips_ecoff_swap_filehdr_in, mips_ecoff_swap_aouthdr_in,
     mips_ecoff_swap_scnhdr_in, NULL,
     mips_ecoff_bad_format_hook, _bfd_ecoff_set_arch_mach_hook,
diff --git a/bfd/coff-rs6000.c b/bfd/coff-rs6000.c
index 17c6907..1db66e7 100644
--- a/bfd/coff-rs6000.c
+++ b/bfd/coff-rs6000.c
@@ -1,6 +1,6 @@
 /* BFD back-end for IBM RS/6000 "XCOFF" files.
    Copyright 1990-1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
-   2008  Free Software Foundation, Inc.
+   2008, 2009  Free Software Foundation, Inc.
    Written by Metin G. Ozisik, Mimi Phuong-Thao Vo, and John Gilmore.
    Archive support from Damon A. Permezel.
    Contributed by IBM Corporation and Cygnus Support.
@@ -4011,7 +4011,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_backend_data =
       LINESZ,
       FILNMLEN,
       TRUE,			/* _bfd_coff_long_filenames */
-      FALSE,			/* _bfd_coff_long_section_names */
+      XCOFF_NO_LONG_SECTION_NAMES,  /* _bfd_coff_long_section_names */
       3,			/* _bfd_coff_default_section_alignment_power */
       FALSE,			/* _bfd_coff_force_symnames_in_strings */
       2,			/* _bfd_coff_debug_string_prefix_length */
@@ -4263,7 +4263,7 @@ static const struct xcoff_backend_data_rec bfd_pmac_xcoff_backend_data =
       LINESZ,
       FILNMLEN,
       TRUE,			/* _bfd_coff_long_filenames */
-      FALSE,			/* _bfd_coff_long_section_names */
+      XCOFF_NO_LONG_SECTION_NAMES,  /* _bfd_coff_long_section_names */
       3,			/* _bfd_coff_default_section_alignment_power */
       FALSE,			/* _bfd_coff_force_symnames_in_strings */
       2,			/* _bfd_coff_debug_string_prefix_length */
diff --git a/bfd/coff-sh.c b/bfd/coff-sh.c
index 1a5d63d..05d99d4 100644
--- a/bfd/coff-sh.c
+++ b/bfd/coff-sh.c
@@ -1,6 +1,6 @@
 /* BFD back-end for Renesas Super-H COFF binaries.
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
-   2003, 2004, 2005, 2007, 2008  Free Software Foundation, Inc.
+   2003, 2004, 2005, 2007, 2008, 2009  Free Software Foundation, Inc.
    Contributed by Cygnus Support.
    Written by Steve Chamberlain, <sac@cygnus.com>.
    Relaxing code written by Ian Lance Taylor, <ian@cygnus.com>.
@@ -3121,7 +3121,7 @@ coff_small_new_section_hook (abfd, section)
 /* This is copied from bfd_coff_std_swap_table so that we can change
    the default section alignment power.  */
 
-static const bfd_coff_backend_data bfd_coff_small_swap_table =
+static bfd_coff_backend_data bfd_coff_small_swap_table =
 {
   coff_swap_aux_in, coff_swap_sym_in, coff_swap_lineno_in,
   coff_swap_aux_out, coff_swap_sym_out,
@@ -3134,11 +3134,7 @@ static const bfd_coff_backend_data bfd_coff_small_swap_table =
 #else
   FALSE,
 #endif
-#ifdef COFF_LONG_SECTION_NAMES
-  TRUE,
-#else
-  FALSE,
-#endif
+  COFF_DEFAULT_LONG_SECTION_NAMES,
   2,
 #ifdef COFF_FORCE_SYMBOLS_IN_STRINGS
   TRUE,
diff --git a/bfd/coff64-rs6000.c b/bfd/coff64-rs6000.c
index ee797ed..776b6a2 100644
--- a/bfd/coff64-rs6000.c
+++ b/bfd/coff64-rs6000.c
@@ -1,5 +1,5 @@
 /* BFD back-end for IBM RS/6000 "XCOFF64" files.
-   Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+   Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    Free Software Foundation, Inc.
    Written Clinton Popetz.
    Contributed by Cygnus Support.
@@ -767,7 +767,6 @@ xcoff64_write_object_contents (abfd)
   file_ptr sym_base;
   unsigned long reloc_size = 0;
   unsigned long lnno_size = 0;
-  bfd_boolean long_section_names;
   asection *text_sec = ((void *) 0);
   asection *data_sec = ((void *) 0);
   asection *bss_sec = ((void *) 0);
@@ -837,7 +836,6 @@ xcoff64_write_object_contents (abfd)
   if (bfd_seek (abfd, scn_base, SEEK_SET) != 0)
     return FALSE;
 
-  long_section_names = FALSE;
   for (current = abfd->sections; current != NULL; current = current->next)
     {
       struct internal_scnhdr section;
@@ -2561,7 +2559,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_backend_data =
       LINESZ,
       FILNMLEN,
       TRUE,			/* _bfd_coff_long_filenames */
-      FALSE,			/* _bfd_coff_long_section_names */
+      XCOFF_NO_LONG_SECTION_NAMES,  /* _bfd_coff_long_section_names */
       3,			/* _bfd_coff_default_section_alignment_power */
       TRUE,			/* _bfd_coff_force_symnames_in_strings */
       4,			/* _bfd_coff_debug_string_prefix_length */
@@ -2815,7 +2813,7 @@ static const struct xcoff_backend_data_rec bfd_xcoff_aix5_backend_data =
       LINESZ,
       FILNMLEN,
       TRUE,			/* _bfd_coff_long_filenames */
-      FALSE,			/* _bfd_coff_long_section_names */
+      XCOFF_NO_LONG_SECTION_NAMES,  /* _bfd_coff_long_section_names */
       3,			/* _bfd_coff_default_section_alignment_power */
       TRUE,			/* _bfd_coff_force_symnames_in_strings */
       4,			/* _bfd_coff_debug_string_prefix_length */
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index db0b2e9..59bb223 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1,6 +1,6 @@
 /* Support for the generic parts of most COFF variants, for BFD.
    Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
+   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
    Free Software Foundation, Inc.
    Written by Cygnus Support.
 
@@ -109,6 +109,60 @@ SUBSUBSECTION
 	target.
 
 SUBSUBSECTION
+	Coff long section names
+
+	In the standard Coff object format, section names are limited to
+	the eight bytes available in the @code{s_name} field of the
+	@code{SCNHDR} section header structure.  The format requires the
+	field to be NUL-padded, but not necessarily NUL-terminated, so
+	the longest section names permitted are a full eight characters.
+
+	The Microsoft PE variants of the Coff object file format add
+	an extension to support the use of long section names.  This
+	extension is defined in section 4 of the Microsoft PE/COFF 
+	specification (rev 8.1).  If a section name is too long to fit
+	into the section header's @code{s_name} field, it is instead
+	placed into the string table, and the @code{s_name} field is
+	filled with a slash ("/") followed by the ASCII decimal 
+	representation of the offset of the full name relative to the
+	string table base.
+
+	Note that this implies that the extension can only be used in object
+	files, as executables do not contain a string table.  The standard
+	specifies that long section names from objects emitted into executable
+	images are to be truncated.
+
+	However, as a GNU extension, BFD can generate executable images
+	that contain a string table and long section names.  This
+	would appear to be technically valid, as the standard only says
+	that Coff debugging information is deprecated, not forbidden,
+	and in practice it works, although some tools that parse PE files
+	expecting the MS standard format may become confused; @file{PEview} is
+	one known example.
+
+	The functionality is supported in BFD by code implemented under 
+	the control of the macro @code{COFF_LONG_SECTION_NAMES}.  If not
+	defined, the format does not support long section names in any way.
+	If defined, it is used to initialise a flag, 
+	@code{_bfd_coff_long_section_names}, and a hook function pointer, 
+	@code{_bfd_coff_set_long_section_names}, in the Coff backend data
+	structure.  The flag controls the generation of long section names
+	in output BFDs at runtime; if it is false, as it will be by default
+	when generating an executable image, long section names are truncated;
+	if true, the long section names extension is employed.  The hook
+	points to a function that allows the value of the flag to be altered
+	at runtime, on formats that support long section names at all; on
+	other formats it points to a stub that returns an error indication.
+
+	If @code{COFF_LONG_SECTION_NAMES} is simply defined (blank), or is
+	defined to the value "1", then long section names are enabled by
+	default; if it is defined to the value zero, they are disabled by
+	default (but still accepted in input BFDs).  The header @file{coffcode.h}
+	defines a macro, @code{COFF_DEFAULT_LONG_SECTION_NAMES}, which is
+	used in the backends to initialise the backend data structure fields
+	appropriately; see the comments for further detail.
+
+SUBSUBSECTION
 	Bit twiddling
 
 	Each flavour of coff supported in BFD has its own header file
@@ -310,6 +364,40 @@ CODE_FRAGMENT
 #define DOT_DEBUG	".debug"
 #define GNU_LINKONCE_WI ".gnu.linkonce.wi."
 
+#if defined (COFF_LONG_SECTION_NAMES)
+/* Needed to expand the inputs to BLANKOR1TOODD.  */
+#define COFFLONGSECTIONCATHELPER(x,y)    x ## y
+/* If the input macro Y is blank or '1', return an odd number; if it is
+   '0', return an even number.  Result undefined in all other cases.  */
+#define BLANKOR1TOODD(y)                 COFFLONGSECTIONCATHELPER(1,y)
+/* Defined to numerical 0 or 1 according to whether generation of long
+   section names is disabled or enabled by default.  */
+#define COFF_ENABLE_LONG_SECTION_NAMES   (BLANKOR1TOODD(COFF_LONG_SECTION_NAMES) & 1)
+/* Where long section names are supported, we allow them to be enabled
+   and disabled at runtime, so select an appropriate hook function for
+   _bfd_coff_set_long_section_names.  */
+#define COFF_LONG_SECTION_NAMES_SETTER   bfd_coff_set_long_section_names_allowed
+#else /* !defined (COFF_LONG_SECTION_NAMES) */
+/* If long section names are not supported, this stub disallows any
+   attempt to enable them at run-time.  */
+#define COFF_LONG_SECTION_NAMES_SETTER   bfd_coff_set_long_section_names_disallowed
+#endif /* defined (COFF_LONG_SECTION_NAMES) */
+
+/* Define a macro that can be used to initialise both the fields relating
+   to long section names in the backend data struct simultaneously.  */
+#if COFF_ENABLE_LONG_SECTION_NAMES
+#define COFF_DEFAULT_LONG_SECTION_NAMES  (TRUE), COFF_LONG_SECTION_NAMES_SETTER
+#else /* !COFF_ENABLE_LONG_SECTION_NAMES */
+#define COFF_DEFAULT_LONG_SECTION_NAMES  (FALSE), COFF_LONG_SECTION_NAMES_SETTER
+#endif /* COFF_ENABLE_LONG_SECTION_NAMES */
+
+#if defined (COFF_LONG_SECTION_NAMES)
+static bfd_boolean bfd_coff_set_long_section_names_allowed
+  (bfd *, int);
+#else /* !defined (COFF_LONG_SECTION_NAMES) */
+static bfd_boolean bfd_coff_set_long_section_names_disallowed
+  (bfd *, int);
+#endif /* defined (COFF_LONG_SECTION_NAMES) */
 static long sec_to_styp_flags
   (const char *, flagword);
 static bfd_boolean styp_to_sec_flags
@@ -372,6 +460,23 @@ static bfd_boolean ticoff1_bad_format_hook
 \f
 /* void warning(); */
 
+#if defined (COFF_LONG_SECTION_NAMES)
+static bfd_boolean
+bfd_coff_set_long_section_names_allowed (bfd *abfd, int enable)
+{
+  coff_backend_info (abfd)->_bfd_coff_long_section_names = enable;
+  return TRUE;
+}
+#else /* !defined (COFF_LONG_SECTION_NAMES) */
+static bfd_boolean
+bfd_coff_set_long_section_names_disallowed (bfd *abfd, int enable)
+{
+  (void) abfd;
+  (void) enable;
+  return FALSE;
+}
+#endif /* defined (COFF_LONG_SECTION_NAMES) */
+
 /* Return a word with STYP_* (scnhdr.s_flags) flags set to represent
    the incoming SEC_* flags.  The inverse of this function is
    styp_to_sec_flags().  NOTE: If you add to/change this routine, you
@@ -1214,7 +1319,11 @@ Special entry points for gdb to swap in coff symbol table parts:
 .  unsigned int _bfd_linesz;
 .  unsigned int _bfd_filnmlen;
 .  bfd_boolean _bfd_coff_long_filenames;
+.
 .  bfd_boolean _bfd_coff_long_section_names;
+.  bfd_boolean (*_bfd_coff_set_long_section_names)
+.    (bfd *, int);
+.  
 .  unsigned int _bfd_coff_default_section_alignment_power;
 .  bfd_boolean _bfd_coff_force_symnames_in_strings;
 .  unsigned int _bfd_coff_debug_string_prefix_length;
@@ -1351,6 +1460,8 @@ Special entry points for gdb to swap in coff symbol table parts:
 .  (coff_backend_info (abfd)->_bfd_coff_long_filenames)
 .#define bfd_coff_long_section_names(abfd) \
 .  (coff_backend_info (abfd)->_bfd_coff_long_section_names)
+.#define bfd_coff_set_long_section_names(abfd, enable) \
+.  ((coff_backend_info (abfd)->_bfd_coff_set_long_section_names) (abfd, enable))
 .#define bfd_coff_default_section_alignment_power(abfd) \
 .  (coff_backend_info (abfd)->_bfd_coff_default_section_alignment_power)
 .#define bfd_coff_swap_filehdr_in(abfd, i,o) \
@@ -3511,18 +3622,40 @@ coff_write_object_contents (bfd * abfd)
 #ifdef COFF_LONG_SECTION_NAMES
       /* Handle long section names as in PE.  This must be compatible
 	 with the code in coff_write_symbols and _bfd_coff_final_link.  */
-      {
-	size_t len;
+      if (bfd_coff_long_section_names (abfd))
+	{
+	  size_t len;
 
-	len = strlen (current->name);
-	if (len > SCNNMLEN)
-	  {
-	    memset (section.s_name, 0, SCNNMLEN);
-	    sprintf (section.s_name, "/%lu", (unsigned long) string_size);
-	    string_size += len + 1;
-	    long_section_names = TRUE;
-	  }
-      }
+	  len = strlen (current->name);
+	  if (len > SCNNMLEN)
+	    {
+	      /* The s_name field is defined to be NUL-padded but need not be


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-02-09 14:35 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-02-09 14:35 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  30cac77f8975ae7b16030107d938808e5debed8b (commit)
       via  aa9e163aeabac07be9e5d02ca7c610e38c22adb6 (commit)
       via  49431235476ec3ac86c03f3fd3f96405fd6f44d5 (commit)
       via  8474d8b73df10d52592dfabaf191b02e1ce7de83 (commit)
       via  b2535ab9b55e4509bbddceebe61c1649c463cc81 (commit)
       via  faf0b01eda05c08865793f3f29fe857d5ec756ae (commit)
       via  7d7b5f60e0dbb9d2168706aaeca2a467ada0c6bf (commit)
       via  51618e64a75f87a49b8d89b4c4f25960f9823c78 (commit)
       via  1307c4f734b3c4c887d0b4c97f4d4fcde886e1a6 (commit)
       via  830bd202c54edc3f7cb1c9909213337ee26214a2 (commit)
       via  355f3289ed09b4d6a61c315d0007c3ada83afbbe (commit)
       via  7b2e4b7b232037453630d3062bbd332ea422db83 (commit)
       via  7811e8abd0badf9acf4e03fd41d57023f3ebee5b (commit)
       via  e9073a2e083d941860355640391801ef6348007c (commit)
       via  6f2bad6c505482623ae39733fca82ad82847e432 (commit)
       via  007adcd27bbddfc64a74ffc09d40265b097d117d (commit)
       via  d0168fb4e09bde9f40830c1a98f47cef3d48980e (commit)
       via  d45fdd4ff235fe067ce5c42291612faf446c7e65 (commit)
       via  1255cee6a9c614ec92cebdc6f5e264a1a0c8f2cf (commit)
       via  263438089876e3a6f3a6797c2d3e3f6f50abc6ff (commit)
       via  6756ddeddd373eedbfe140ed1b4733993745cf0e (commit)
       via  9d3162dae32640334a142100d14774d59f03e044 (commit)
       via  57492ff716e032d769e5a77b712bdaf8129fd328 (commit)
       via  29812a409d3050b33641793706d980dcfc8fba80 (commit)
       via  a78c01aa25b052c69655a45f51b44580f31fc274 (commit)
       via  481b6ee5fac7a08c10ad6be0359730464ed4d2c0 (commit)
       via  f6a01920a37b6cd61f0c56ab3b9a5741b939e299 (commit)
       via  74fb74b8199f2c32bc7c941827ea0f325c6a2206 (commit)
       via  e07b6da344df10253e7bc1652983a94590ccf37a (commit)
       via  1c16b172f6c9585e581aeeba83962031fed9238e (commit)
       via  499683add884015d10a79fc2689af16bb102421a (commit)
       via  afae06d4cd7540a55060b41257743563344b12ba (commit)
       via  2ef6d153fc7fbc4ccbd691b190ecce6696b0b290 (commit)
       via  ec0b317e787b4ddd254c1ebbf1f1da43af6c5867 (commit)
       via  d01d94ef3114c8490d919d04efb3ed9772e8c2e6 (commit)
       via  7d5dabc5616e1677a35e38d0813caa04aba3419d (commit)
       via  b8ebdfbbfb243d17d816d7ae260bb6ab6eab9d8c (commit)
       via  c57514c5a7481509929821bf2c0f4d4e0ae05d99 (commit)
       via  9084212b273d5f61543f3ec690790ffbe89490d2 (commit)
       via  0f5e1bd15ddabc7b36dde309b095e748df89e457 (commit)
       via  770caeefe482bba086e960b859c07bd764cd8526 (commit)
       via  23e0f90d9e882540eea737cbbf87e49ba31e4449 (commit)
       via  30dd021f93f0fb60c732abf7c7f8f8319b488c07 (commit)
       via  1d240df3a6b051cede459b198358903eebf169f3 (commit)
       via  14fea5b74a9f96a11c0d2a657c2e228909e25e8d (commit)
       via  590d6ea5c2ccdf286b3deb49d13093e7c8eb2bdd (commit)
       via  b39196ffa6ac5e0c4f221bfa83d0094866c91d2f (commit)
       via  3f8ab5bd0abe1234a0fa40799e28e77b19b6bd23 (commit)
       via  6a39a538722affc904593c399c4dd0c53ab5826a (commit)
       via  aa8db852a72468c03224c517e3c45f8a37b8fe87 (commit)
       via  b1ab508b8ca4b6f19818376652208ed26646229b (commit)
       via  2b5bc67a55096bd2e49d1676cb8a6a8a55b27ecd (commit)
       via  cdb74e5ff3d3396edc18dca754b97ecc286cbcd5 (commit)
       via  a39875781013be22170069298eec4cf10f6345d6 (commit)
       via  4d0bf29f48fc74a0c73272d908be6576b3b98651 (commit)
       via  2974de281b84c7188779b8fed155ecbcef22ce27 (commit)
       via  eaee67125959568e0f0ec7799d26b6d3f60f7c04 (commit)
       via  eaa61cb386941b9c08674d99da5e210cb742b546 (commit)
       via  83244659d8ba6362e7dbd7dfafb8ed1cf6e51c0a (commit)
       via  a3bba34e704e8ff71dba954c74452217cb40124d (commit)
       via  34083a97307a6f1456c9455997c4b5471ba21330 (commit)
       via  9b9259f61cdcbec6d68eb9cedef6819f288053ed (commit)
       via  331acbfdd7b4c6734baad6d4d4c2c1489a9a22a1 (commit)
       via  12ee80b84d3220d99f5396deb7b072e51d7d1afd (commit)
       via  55a909760e801aafcf7e031b098cf2161d248d9a (commit)
       via  48a6038a855c30477e907307ab8b7d3834c575c1 (commit)
       via  fe4c4e465347fee881541b71c140a773f42a0ce6 (commit)
       via  e1d633a3fafbf670c686f59f3007b6280da50625 (commit)
       via  5c8d779d999734da634d5905e5a945d98cab69d8 (commit)
       via  54596033c019654f4a92f8d99c62a2cfb02b8b19 (commit)
       via  7a228ded75afbcc5af87b9cd26e54ceea0b3cb25 (commit)
       via  d8ccded1bd72290e07a69451f708292a76fe7a7a (commit)
       via  f1737c87c2af20d1325583a5ab7861a4dd5a0111 (commit)
       via  5d8468a9859aabe67d53f6babf5c2321e2abf000 (commit)
       via  937201738a21d48c627d2200ca73de7960d46786 (commit)
       via  b861fbb2404426ae5f91fe2d92b9809a487698fa (commit)
       via  8c64d8171f82fb656a5c7f77895867bb0d7372ad (commit)
       via  0a35ab92d3b16aadbf63f6079a61b9a71b9ebcb7 (commit)
       via  4b1236ddb168d1eeed42dfcca0e64973301451cf (commit)
       via  81ebe44fd16047d8bd1f695003bec53eb50b1051 (commit)
       via  0cd91cc2b97d671e6f2035f26c34cc134b800228 (commit)
       via  e7579ed59ad66782474d31635dd5cbc26ecbcf94 (commit)
       via  09547ab8a96a6f3636ceacdf11c66e8f333c0a03 (commit)
       via  5845b55b1b01b9339c2384806e7107d321a4237c (commit)
       via  8e4acafc10950e2d83954aa8f56714403a2c604b (commit)
       via  d112c9579d4e97ddbaf61e762316154fe187b2f7 (commit)
       via  32e15a5e8946225fa4e9c11f6fc2040adae79e38 (commit)
       via  cf7d1af3ff6a6913b472bdee56b083604ee5b87e (commit)
       via  9efdb5ea40104f4be915361c462fe596302efe86 (commit)
       via  6bcccbac081b4d742322d319b8df687fe78501c8 (commit)
       via  3a8e057c013d2df89a90b7c94e5ac5842d8f6b77 (commit)
       via  a967bdb3b666cf75b608da72d82d61f3bb7d05df (commit)
       via  114a09c3fef29ad0d580c86c81338dceb176b8bb (commit)
       via  c02cfd685030e8f65a7727a14cc303790e0e94c7 (commit)
       via  e71c3f1030c5a9ae8a4b54f030b0ed1797074554 (commit)
       via  c80176fdeed48b514d2dc005005b6483fb85e8dd (commit)
       via  24f23f293583eea2a35a3a46b6f1b5034c12bbad (commit)
       via  d235a2f3d48298dd7a2b6841108965292dd78907 (commit)
       via  7f38f003c49fa058eb1f46f4e5625f5224cd9d6d (commit)
      from  baaf53080172f2fa827f789f409e110fbcd27f24 (commit)

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

- Log -----------------------------------------------------------------
commit 30cac77f8975ae7b16030107d938808e5debed8b
Merge: baaf53080172f2fa827f789f409e110fbcd27f24 aa9e163aeabac07be9e5d02ca7c610e38c22adb6
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Feb 9 15:34:26 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount
    
    Conflicts:
    	gdb/value.c

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

Summary of changes:
 ChangeLog                                          |   14 +-
 Makefile.in                                        |    2 +
 Makefile.tpl                                       |    2 +
 bfd/ChangeLog                                      |  146 ++
 bfd/Makefile.am                                    |   30 +
 bfd/Makefile.in                                    |   30 +
 bfd/aoutx.h                                        |    1 +
 bfd/archures.c                                     |    1 +
 bfd/bfd-in2.h                                      |   16 +
 bfd/configure                                      |    4 +-
 bfd/configure.in                                   |    3 +-
 bfd/cpu-mips.c                                     |    6 +-
 bfd/doc/Makefile.am                                |   14 +
 bfd/doc/Makefile.in                                |   18 +-
 bfd/dwarf2.c                                       |   19 +-
 bfd/elf-attrs.c                                    |    4 +-
 bfd/elf-bfd.h                                      |    9 -
 bfd/elf-eh-frame.c                                 |   30 +-
 bfd/elf.c                                          |   44 +-
 bfd/elf32-arm.c                                    |    8 +-
 bfd/elf32-avr.c                                    |    3 +-
 bfd/elf32-cris.c                                   |    8 +-
 bfd/elf32-m68k.c                                   | 1520 ++++++++++++++------
 bfd/elf32-mep.c                                    |    3 +-
 bfd/elf32-spu.c                                    |    8 +-
 bfd/elf64-hppa.c                                   |  306 ++---
 bfd/elf64-hppa.h                                   |    8 +-
 bfd/elflink.c                                      |   19 +-
 bfd/elfxx-mips.c                                   |   22 +-
 bfd/libbfd.h                                       |   17 +-
 bfd/mach-o.c                                       |    5 +
 bfd/po/Make-in                                     |    1 +
 bfd/reloc.c                                        |   30 +
 bfd/version.h                                      |    2 +-
 config/ChangeLog                                   |    8 +
 config/tcl.m4                                      |   14 +-
 etc/ChangeLog                                      |    5 +
 etc/configure                                      |    3 +-
 etc/configure.in                                   |    2 +-
 gdb/ChangeLog                                      |  511 +++++++
 gdb/MAINTAINERS                                    |   16 +-
 gdb/Makefile.in                                    |   12 +-
 gdb/NEWS                                           |   10 +
 gdb/aclocal.m4                                     |   24 +-
 gdb/ada-lang.c                                     |   15 +-
 gdb/aix-thread.c                                   |    9 +-
 gdb/amd64-linux-nat.c                              |  234 +++
 gdb/amd64-linux-tdep.c                             |   13 +
 gdb/amd64-tdep.c                                   |  729 +++++++++-
 gdb/amd64-tdep.h                                   |    8 +
 gdb/arm-linux-tdep.c                               |    3 +
 gdb/breakpoint.c                                   |   57 +-
 gdb/breakpoint.h                                   |    3 +-
 gdb/bsd-kvm.c                                      |    2 +-
 gdb/bsd-uthread.c                                  |    8 +-
 gdb/c-lang.c                                       |  120 ++
 gdb/cli/cli-decode.c                               |    8 +-
 gdb/cli/cli-decode.h                               |   10 +-
 gdb/command.h                                      |    3 +-
 gdb/completer.c                                    |   52 +-
 gdb/completer.h                                    |   10 +-
 gdb/config.in                                      |    7 +
 gdb/configure                                      |  410 +++---
 gdb/configure.ac                                   |  138 ++-
 gdb/configure.tgt                                  |    8 +-
 gdb/corefile.c                                     |   34 -
 gdb/corelow.c                                      |    2 +-
 gdb/darwin-nat.c                                   |    9 +-
 gdb/dec-thread.c                                   |    9 +-
 gdb/defs.h                                         |    5 +-
 gdb/doc/ChangeLog                                  |   54 +
 gdb/doc/gdb.texinfo                                |  470 ++++++-
 gdb/doc/gdbint.texinfo                             |   96 ++
 gdb/dwarf2read.c                                   |   59 +-
 gdb/f-lang.c                                       |    1 +
 gdb/frame.c                                        |   38 +-
 gdb/frame.h                                        |    5 +
 gdb/gdbarch.c                                      |   33 +
 gdb/gdbarch.h                                      |   10 +
 gdb/gdbarch.sh                                     |    5 +
 gdb/gdbcore.h                                      |    5 -
 gdb/gdbserver/ChangeLog                            |    8 +
 gdb/gdbserver/linux-low.c                          |   39 +
 gdb/gdbserver/server.c                             |   74 +
 gdb/gdbserver/target.h                             |    5 +
 gdb/gdbtypes.c                                     |   29 +-
 gdb/gdbtypes.h                                     |    4 +
 gdb/gnu-nat.c                                      |    5 +-
 gdb/go32-nat.c                                     |    7 +-
 gdb/hpux-thread.c                                  |    6 +-
 gdb/i386-darwin-tdep.c                             |   81 +-
 gdb/i386-linux-tdep.c                              |    3 +
 gdb/i386-tdep.c                                    |    2 +-
 gdb/i386-tdep.h                                    |    3 +
 gdb/inf-ptrace.c                                   |   11 +-
 gdb/inf-ttrace.c                                   |    5 +-
 gdb/infrun.c                                       |  107 ++
 gdb/interps.c                                      |    5 +-
 gdb/jv-lang.c                                      |    1 +
 gdb/language.c                                     |   10 +
 gdb/language.h                                     |   16 +
 gdb/linux-fork.c                                   |    2 +-
 gdb/linux-nat.c                                    |  117 ++-
 gdb/linux-nat.h                                    |   11 +-
 gdb/linux-tdep.c                                   |  138 ++
 .../gdb.python/python-value.c => linux-tdep.h}     |   36 +-
 gdb/linux-thread-db.c                              |   66 +-
 gdb/m2-lang.c                                      |    1 +
 gdb/machoread.c                                    |   24 +-
 gdb/main.c                                         |  150 ++-
 gdb/mi/mi-cmd-break.c                              |   11 +-
 gdb/monitor.c                                      |    5 +-
 gdb/nto-procfs.c                                   |    7 +-
 gdb/objc-lang.c                                    |    1 +
 gdb/p-lang.c                                       |    1 +
 gdb/printcmd.c                                     |   13 +-
 gdb/procfs.c                                       |   10 +-
 gdb/python/python-cmd.c                            |  585 ++++++++
 gdb/python/python-internal.h                       |    8 +-
 gdb/python/python-utils.c                          |   67 +-
 gdb/python/python-value.c                          |  417 +++++--
 gdb/python/python.c                                |   77 +-
 gdb/remote-m32r-sdi.c                              |    5 +-
 gdb/remote-mips.c                                  |    6 +-
 gdb/remote-sim.c                                   |    7 +-
 gdb/remote.c                                       |   46 +-
 gdb/rs6000-nat.c                                   |    3 +-
 gdb/scm-lang.c                                     |    1 +
 gdb/sol-thread.c                                   |   11 +-
 gdb/solib-darwin.c                                 |  450 ++++++
 .../gdb.python/python-value.c => solib-darwin.h}   |   39 +-
 gdb/solist.h                                       |    4 +-
 gdb/spu-linux-nat.c                                |    3 +-
 gdb/symtab.c                                       |   10 +
 gdb/symtab.h                                       |    2 +
 gdb/target.c                                       |  243 ++--
 gdb/target.h                                       |   41 +-
 gdb/testsuite/ChangeLog                            |   72 +
 gdb/testsuite/gdb.ada/uninitialized_vars.exp       |   54 +
 gdb/testsuite/gdb.ada/uninitialized_vars/parse.adb |  130 ++
 .../uninitialized_vars/parse_controlled.ads        |   35 +
 gdb/testsuite/gdb.arch/amd64-disp-step.S           |  153 ++
 gdb/testsuite/gdb.arch/amd64-disp-step.exp         |  219 +++
 gdb/testsuite/gdb.arch/i386-disp-step.S            |   64 +
 gdb/testsuite/gdb.arch/i386-disp-step.exp          |  112 ++
 gdb/testsuite/gdb.arch/i386-sse.c                  |    2 +-
 gdb/testsuite/gdb.base/sigbpt.c                    |    1 +
 gdb/testsuite/gdb.base/sigbpt.exp                  |   24 +-
 gdb/testsuite/gdb.base/siginfo-obj.c               |   70 +
 gdb/testsuite/gdb.base/siginfo-obj.exp             |  131 ++
 gdb/testsuite/gdb.base/signull.c                   |    1 +
 gdb/testsuite/gdb.base/signull.exp                 |   15 +-
 gdb/testsuite/gdb.cp/Makefile.in                   |    2 +-
 gdb/testsuite/gdb.cp/call-c.cc                     |    3 +
 gdb/testsuite/gdb.cp/call-c.exp                    |    3 +
 gdb/testsuite/gdb.cp/cpcompletion.exp              |   72 +
 gdb/testsuite/gdb.cp/pr9594.cc                     |   51 +
 gdb/testsuite/gdb.mi/mi-break.exp                  |   16 +
 gdb/testsuite/gdb.python/python-value.c            |   10 +
 gdb/testsuite/gdb.python/python-value.exp          |   13 +-
 gdb/testsuite/lib/mi-support.exp                   |    4 +-
 gdb/thread.c                                       |   20 +-
 gdb/typeprint.c                                    |   29 +
 gdb/valops.c                                       |   20 +-
 gdb/valprint.c                                     |  172 ++-
 gdb/valprint.h                                     |    3 +
 gdb/value.c                                        |  123 ++-
 gdb/value.h                                        |   62 +
 gdb/varobj.c                                       |   41 +-
 gdb/version.in                                     |    2 +-
 gdb/windows-nat.c                                  |    5 +-
 include/elf/ChangeLog                              |    8 +
 include/elf/m68k.h                                 |   19 +
 include/elf/mips.h                                 |    1 +
 include/opcode/ChangeLog                           |   21 +
 include/opcode/i386.h                              |   31 +-
 include/opcode/mips.h                              |   11 +-
 opcodes/ChangeLog                                  |   52 +
 opcodes/Makefile.am                                |    3 +
 opcodes/Makefile.in                                |    3 +
 opcodes/arm-dis.c                                  |    8 +-
 opcodes/i386-dis.c                                 |   22 +-
 opcodes/i386-opc.tbl                               |   13 +
 opcodes/i386-tbl.h                                 |  141 ++
 opcodes/mep-asm.c                                  |   37 -
 opcodes/mep-desc.c                                 | 1136 +++++----------
 opcodes/mep-desc.h                                 |   33 +-
 opcodes/mep-dis.c                                  |   39 -
 opcodes/mep-ibld.c                                 |  211 ---
 opcodes/mep-opc.c                                  |  268 +----
 opcodes/mep-opc.h                                  |   26 +-
 opcodes/mips-dis.c                                 |   56 +
 opcodes/mips-opc.c                                 |   19 +-
 opcodes/po/Make-in                                 |    1 +
 opcodes/ppc-opc.c                                  |    8 +-
 195 files changed, 9400 insertions(+), 3180 deletions(-)
 create mode 100644 gdb/linux-tdep.c
 copy gdb/{testsuite/gdb.python/python-value.c => linux-tdep.h} (66%)
 create mode 100644 gdb/python/python-cmd.c
 create mode 100644 gdb/solib-darwin.c
 copy gdb/{testsuite/gdb.python/python-value.c => solib-darwin.h} (66%)
 create mode 100644 gdb/testsuite/gdb.ada/uninitialized_vars.exp
 create mode 100644 gdb/testsuite/gdb.ada/uninitialized_vars/parse.adb
 create mode 100755 gdb/testsuite/gdb.ada/uninitialized_vars/parse_controlled.ads
 create mode 100644 gdb/testsuite/gdb.arch/amd64-disp-step.S
 create mode 100644 gdb/testsuite/gdb.arch/amd64-disp-step.exp
 create mode 100644 gdb/testsuite/gdb.arch/i386-disp-step.S
 create mode 100644 gdb/testsuite/gdb.arch/i386-disp-step.exp
 create mode 100644 gdb/testsuite/gdb.base/siginfo-obj.c
 create mode 100644 gdb/testsuite/gdb.base/siginfo-obj.exp
 create mode 100644 gdb/testsuite/gdb.cp/cpcompletion.exp
 create mode 100644 gdb/testsuite/gdb.cp/pr9594.cc

First 500 lines of diff:
diff --git a/ChangeLog b/ChangeLog
index 1da2e0d..474f3d4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2009-02-05  Andreas Schwab  <schwab@suse.de>
+
+	* Makefile.tpl (stage_last): Define $r and $s before using
+	$(RECURSE_FLAGS_TO_PASS).
+	* Makefile.in: Regenerate
+
 2009-01-21  Jeff Johnston  <jjohnstn@redhat.com>
 
 	* COPYING.NEWLIB: Add ARM license.
@@ -43,13 +49,13 @@
 
 	2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>
 
-        * configure.ac: Add double brackets on darwin[912].
-        * configure: Regenerate.
+	* configure.ac: Add double brackets on darwin[912].
+	* configure: Regenerate.
 
 	2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>
 
-        * configure.ac: Expand to darwin10 and later.
-        * configure: Regenerate.
+	* configure.ac: Expand to darwin10 and later.
+	* configure: Regenerate.
 
 2008-12-02  Andreas Schwab  <schwab@suse.de>
 
diff --git a/Makefile.in b/Makefile.in
index 2df155e..3ca3f26 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -54861,6 +54861,8 @@ do-distclean: distclean-stage1
 # Provide a GCC build when we're building target libraries.  This does
 # not work as a dependency, just as the minimum necessary to avoid errors.
 stage_last:
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 	$(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
 
 # Same as unstage, but not phony and defaulting to stage1-start.  We place
diff --git a/Makefile.tpl b/Makefile.tpl
index f654fb3..acb349f 100644
--- a/Makefile.tpl
+++ b/Makefile.tpl
@@ -1468,6 +1468,8 @@ do-distclean: distclean-stage1
 # Provide a GCC build when we're building target libraries.  This does
 # not work as a dependency, just as the minimum necessary to avoid errors.
 stage_last:
+	@r=`${PWD_COMMAND}`; export r; \
+	s=`cd $(srcdir); ${PWD_COMMAND}`; export s; \
 	$(MAKE) $(RECURSE_FLAGS_TO_PASS) stage1-bubble
 
 # Same as unstage, but not phony and defaulting to stage1-start.  We place
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 41cee38..ecc442f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,149 @@
+2009-02-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
+	functions to C90.
+	* elf64-hppa.h: Likewise.
+
+2009-02-06  Joseph Myers  <joseph@codesourcery.com>
+
+	* elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
+	.sbss handling.
+
+2009-02-04  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
+	Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
+
+2009-02-03  Sandip Matte  <sandip@rmicorp.com>
+
+	* aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
+	* archures.c (bfd_mach_mips_xlr): Define.
+	* bfd-in2.h: Regenerate.
+	* cpu-mips.c (I_xlr): Define.
+	(arch_info_struct): Add XLR entry.
+	* elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
+	(mips_set_isa_flags): Handle bfd_mach_mips_xlr
+	(mips_mach_extensions): Add XLR entry.
+
+2009-02-03  Eric B. Weddington  <eric.weddington@atmel.com>
+
+	* elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
+
+2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
+
+	* configure.in: AC_SUBST pdfdir.
+	* Makefile.am: Add install-pdf, install-pdf-am 
+	and install-pdf-recursive targets. Define pdfdir.
+	* doc/Makefile.am: Define pdf__strip_dir. Add
+	install-pdf and install-pdf-am targets.
+	* po/Make-in: Add install-pdf target. 
+	* configure: Regenerate.
+	* Makefile.in: Regenerate
+	* doc/Makefile.in: Regenerate.
+
+2009-02-03  Maxim Kuvyrkov  <maxim@codesourcery.com>
+
+	* bfd-in2.h: Regenerate.
+	* elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
+	fields from n_entries to n_slots where appropriate, update comments.
+	(HOWTO): Add TLS relocations.
+	(reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
+	(enum elf_m68k_got_offset_size): New enum.
+	(struct elf_m68k_got_entry.type): Move field to ...
+	(struct elf_m68k_got_entry_key): ... here.  Update all uses.
+	(elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
+	functions.
+	(elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
+	functions.
+	(struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
+	fields into n_entries array.  Update comments.
+	(elf_m68k_init_got): Simplify, update all uses.
+	(elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
+	(ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
+	GOT entries; update name, update all uses.
+	(ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
+	(elf_m68k_get_got_entry): Update.
+	(elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
+	simplify.
+	(elf_m68k_remove_got_entry_type): Simplify.
+	(elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
+	(elf_m68k_can_merge_gots): Update.
+	(elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
+	(struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
+	GOT entries, simplify.
+	(elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
+	(struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
+	field, remove obsoleted local_n_entries field.
+	(elf_m68k_partition_multi_got_2): New static function.
+	(elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
+	update.
+	(elf_m68k_remove_got_entry_type): Update.
+	(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
+	(elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary 
+	update of sgot->size and srelgot->size.
+	(elf_m68k_gc_sweep_hook): Update.
+	(elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
+	(elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
+	TLS relocations.
+	* reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
+	* libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
+
+2009-02-02  DJ Delorie  <dj@redhat.com>
+
+	* elf32-mep.c (config_names): Regenerate configuration.
+
+2009-02-02  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf-bfd.h (bfd_elf_get_str_section): Don't declare.
+	(bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
+	* elf.c (bfd_elf_get_str_section): Make static.
+	(bfd_elf_find_section): Delete.
+	* libbfd.h: Regenerate.
+
+2009-02-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
+	(_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
+
+2009-01-31  Alan Modra  <amodra@bigpond.net.au>
+
+	* elflink.c (on_needed_list): New function.
+	(elf_link_add_object_symbols): Link in --as-needed libs if they
+	satisfy undefined symbols in other libs.
+
+2009-01-30  Julian Brown  <julian@codesourcery.com>
+
+	* elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
+	EXEC_P or DYNAMIC flags, and skip sections which are being linked
+	with --just-symbols (-R).
+
+2009-01-29  Adam Nemet  <anemet@caviumnetworks.com>
+
+	* dwarf2.c (read_rangelist): Use read_address to read low_pc and
+	high_pc in order to properly sign-extend VMAs.
+
+2009-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
+            Mark Shinwell  <shinwell@codesourcery.com>
+            Catherine Moore  <clm@codesourcery.com>
+
+	* elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
+
+2009-01-28  Catherine Moore <clm@codesourcery.com>
+
+	* elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
+	SEC_LOAD for dynamic relocation sections.
+
+2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
+	(info)->tls_size, not elf_hash_table (info)->tls_sec->size for
+	the size of local TLS data.
+
+2009-01-27  Andreas Schwab  <schwab@suse.de>
+
+	* mach-o.c (bfd_mach_o_archive_p): Restrict the number of
+	architectures in the archive.
+
 2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
 
 	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 593647c..8d67cb8 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -19,6 +19,7 @@ bfdincludedir = @bfdincludedir@
 datarootdir = @datarootdir@
 docdir = @docdir@
 htmldir = @htmldir@
+pdfdir = @pdfdir@
 
 bfdlib_LTLIBRARIES = libbfd.la
 
@@ -714,6 +715,35 @@ po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
 
 all diststuff: info
 
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+install-pdf:	install-pdf-recursive
+
+install-pdf-recursive:
+	@failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; \
+	if test "$$dot_seen" = "no"; then \
+	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+	fi; test -z "$$fail"
+
 .PHONY: install-html install-html-am install-html-recursive
 
 install-html:	install-html-recursive
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index afaadb7..9932dea 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -266,6 +266,7 @@ lt_ECHO = @lt_ECHO@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 sbindir = @sbindir@
@@ -1350,6 +1351,35 @@ po/BLD-POTFILES.in: @MAINT@ Makefile $(BLD_POTFILES)
 
 all diststuff: info
 
+.PHONY: install-pdf install-pdf-am install-pdf-recursive
+
+install-pdf:	install-pdf-recursive
+
+install-pdf-recursive:
+	@failcom='exit 1'; \
+	for f in x $$MAKEFLAGS; do \
+	  case $$f in \
+	    *=* | --[!k]*);; \
+	    *k*) failcom='fail=yes';; \
+	  esac; \
+	done; \
+	dot_seen=no; \
+	target=`echo $@ | sed s/-recursive//`; \
+	list='$(SUBDIRS)'; for subdir in $$list; do \
+	  echo "Making $$target in $$subdir"; \
+	  if test "$$subdir" = "."; then \
+	    dot_seen=yes; \
+	    local_target="$$target-am"; \
+	  else \
+	    local_target="$$target"; \
+	  fi; \
+	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
+	  || eval $$failcom; \
+	done; \
+	if test "$$dot_seen" = "no"; then \
+	  $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
+	fi; test -z "$$fail"
+
 .PHONY: install-html install-html-am install-html-recursive
 
 install-html:	install-html-recursive
diff --git a/bfd/aoutx.h b/bfd/aoutx.h
index e808716..fccfdeb 100644
--- a/bfd/aoutx.h
+++ b/bfd/aoutx.h
@@ -795,6 +795,7 @@ NAME (aout, machine_type) (enum bfd_architecture arch,
 	case bfd_mach_mipsisa64:
 	case bfd_mach_mipsisa64r2:
 	case bfd_mach_mips_sb1:
+	case bfd_mach_mips_xlr:
 	  /* FIXME: These should be MIPS3, MIPS4, MIPS16, MIPS32, etc.  */
 	  arch_flags = M_MIPS2;
 	  break;
diff --git a/bfd/archures.c b/bfd/archures.c
index c76e16e..f548ea2 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -175,6 +175,7 @@ DESCRIPTION
 .#define bfd_mach_mips_loongson_2f      3002
 .#define bfd_mach_mips_sb1              12310201 {* octal 'SB', 01 *}
 .#define bfd_mach_mips_octeon		6501
+.#define bfd_mach_mips_xlr              887682   {* decimal 'XLR'  *}
 .#define bfd_mach_mipsisa32             32
 .#define bfd_mach_mipsisa32r2           33
 .#define bfd_mach_mipsisa64             64
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 779f03a..994759d 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1801,6 +1801,7 @@ enum bfd_architecture
 #define bfd_mach_mips_loongson_2f      3002
 #define bfd_mach_mips_sb1              12310201 /* octal 'SB', 01 */
 #define bfd_mach_mips_octeon           6501
+#define bfd_mach_mips_xlr              887682   /* decimal 'XLR'  */
 #define bfd_mach_mipsisa32             32
 #define bfd_mach_mipsisa32r2           33
 #define bfd_mach_mipsisa64             64
@@ -2363,6 +2364,21 @@ The 24-bit relocation is used in some Intel 960 configurations.  */
   BFD_RELOC_68K_GLOB_DAT,
   BFD_RELOC_68K_JMP_SLOT,
   BFD_RELOC_68K_RELATIVE,
+  BFD_RELOC_68K_TLS_GD32,
+  BFD_RELOC_68K_TLS_GD16,
+  BFD_RELOC_68K_TLS_GD8,
+  BFD_RELOC_68K_TLS_LDM32,
+  BFD_RELOC_68K_TLS_LDM16,
+  BFD_RELOC_68K_TLS_LDM8,
+  BFD_RELOC_68K_TLS_LDO32,
+  BFD_RELOC_68K_TLS_LDO16,
+  BFD_RELOC_68K_TLS_LDO8,
+  BFD_RELOC_68K_TLS_IE32,
+  BFD_RELOC_68K_TLS_IE16,
+  BFD_RELOC_68K_TLS_IE8,
+  BFD_RELOC_68K_TLS_LE32,
+  BFD_RELOC_68K_TLS_LE16,
+  BFD_RELOC_68K_TLS_LE8,
 
 /* Linkage-table relative.  */
   BFD_RELOC_32_BASEREL,
diff --git a/bfd/configure b/bfd/configure
index eaab98d..80e5eaf 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -458,7 +458,7 @@ ac_includes_default="\
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 ac_pwd=`pwd`
 
@@ -22188,6 +22188,7 @@ rm -f doc/config.status
 
 
 
+
 cat >confcache <<\_ACEOF
 # This file is a shell script that caches the results of configure
 # tests run on this system so they can be shared between configure
@@ -23270,6 +23271,7 @@ s,@tdefaults@,$tdefaults,;t t
 s,@datarootdir@,$datarootdir,;t t
 s,@docdir@,$docdir,;t t
 s,@htmldir@,$htmldir,;t t
+s,@pdfdir@,$pdfdir,;t t
 s,@LIBOBJS@,$LIBOBJS,;t t
 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
 CEOF
diff --git a/bfd/configure.in b/bfd/configure.in
index c3a8efa..a444418 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -1063,10 +1063,11 @@ sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
     -e "s,@GMOFILES@,$GMOFILES," \
     po/Makefile.in > po/Makefile]],[[]])
 
-dnl Required by html and install-html
+dnl Required by html, pdf, install-pdf and install-html
 AC_SUBST(datarootdir)
 AC_SUBST(docdir)
 AC_SUBST(htmldir)
+AC_SUBST(pdfdir)
 
 AC_OUTPUT
 
diff --git a/bfd/cpu-mips.c b/bfd/cpu-mips.c
index 1102467..4c98821 100644
--- a/bfd/cpu-mips.c
+++ b/bfd/cpu-mips.c
@@ -91,7 +91,8 @@ enum
   I_sb1,
   I_loongson_2e,
   I_loongson_2f,
-  I_mipsocteon
+  I_mipsocteon,
+  I_xlr
 };
 
 #define NN(index) (&arch_info_struct[(index) + 1])
@@ -129,7 +130,8 @@ static const bfd_arch_info_type arch_info_struct[] =
   N (64, 64, bfd_mach_mips_sb1, "mips:sb1",       FALSE, NN(I_sb1)),
   N (64, 64, bfd_mach_mips_loongson_2e, "mips:loongson_2e",       FALSE, NN(I_loongson_2e)),
   N (64, 64, bfd_mach_mips_loongson_2f, "mips:loongson_2f",       FALSE, NN(I_loongson_2f)),
-  N (64, 64, bfd_mach_mips_octeon, "mips:octeon", FALSE, 0)
+  N (64, 64, bfd_mach_mips_octeon,"mips:octeon",  FALSE, NN(I_mipsocteon)),
+  N (64, 64, bfd_mach_mips_xlr, "mips:xlr",       FALSE, 0)
 };
 
 /* The default architecture is mips:3000, but with a machine number of
diff --git a/bfd/doc/Makefile.am b/bfd/doc/Makefile.am
index 9256bd1..d5b3fba 100644
--- a/bfd/doc/Makefile.am
+++ b/bfd/doc/Makefile.am
@@ -296,6 +296,20 @@ MAINTAINERCLEANFILES = $(DOCFILES)
 # cygnus option.
 install: install-info
 
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+
+install-pdf: install-pdf-am
+ 
+install-pdf-am: $(PDFS)
+	@$(NORMAL_INSTALL)
+	test -z "$(pdfdir)" || $(mkinstalldirs) "$(DESTDIR)$(pdfdir)"
+	@list='$(PDFS)'; for p in $$list; do \
+	  if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+	  f=$(pdf__strip_dir) \
+	  echo " $(INSTALL_DATA) '$$d$$p' '$(DESTDIR)$(pdfdir)/$$f'"; \
+	  $(INSTALL_DATA) "$$d$$p" "$(DESTDIR)$(pdfdir)/$$f"; \
+	done
+
 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
 
 install-html: install-html-am
diff --git a/bfd/doc/Makefile.in b/bfd/doc/Makefile.in
index d81c6de..97700e5 100644
--- a/bfd/doc/Makefile.in
+++ b/bfd/doc/Makefile.in
@@ -176,14 +176,14 @@ REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
 REPORT_BUGS_TO = @REPORT_BUGS_TO@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
+SHARED_LDFLAGS = @SHARED_LDFLAGS@
+SHARED_LIBADD = @SHARED_LIBADD@
 SHELL = @SHELL@
 STRIP = @STRIP@
 TDEFINES = @TDEFINES@
 USE_NLS = @USE_NLS@
 VERSION = @VERSION@
 WARN_CFLAGS = @WARN_CFLAGS@
-WIN32LDFLAGS = @WIN32LDFLAGS@
-WIN32LIBADD = @WIN32LIBADD@
 XGETTEXT = @XGETTEXT@
 ac_ct_AR = @ac_ct_AR@
 ac_ct_CC = @ac_ct_CC@
@@ -239,6 +239,7 @@ lt_ECHO = @lt_ECHO@
 mandir = @mandir@
 mkdir_p = @mkdir_p@
 oldincludedir = @oldincludedir@
+pdfdir = @pdfdir@
 prefix = @prefix@
 program_transform_name = @program_transform_name@
 sbindir = @sbindir@
@@ -358,6 +359,7 @@ CLEANFILES = *.p *.ip
 DISTCLEANFILES = bfd.?? bfd.??? bfd.h libbfd.h libcoff.h texput.log \
 	$(am__append_1)
 MAINTAINERCLEANFILES = $(DOCFILES) bfd.info
+pdf__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
 html__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
 all: all-am
 
@@ -808,6 +810,18 @@ bfdver.texi: $(srcdir)/Makefile.in
 # cygnus option.


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-01-27 14:39 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-01-27 14:39 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  13c7170fa46901aa186a0cdbdd1d4d3a43d2a78a (commit)
       via  587fa1a9ae4b6dcbce35a510d850032ce1df12cf (commit)
       via  1491427ae8c6205fe1f325da1201419313e3c3b9 (commit)
       via  52da3cb816963552920c3bd1be6d382d4debad8a (commit)
       via  ccee8cf101a68a9595867638c100086715ae1944 (commit)
       via  c51205a752a5c26e0e4f1a5763b89dd33432c6fe (commit)
       via  b51efefd842bea521c5ee25306bd73eeab74fa85 (commit)
       via  5b87a749027154f0aa0120ac1c24e726c483a8a0 (commit)
       via  3ce76e710f43751f99e1ac6137ccc4ef9e4b9f07 (commit)
       via  bf06624c54fe05cce54fef983fa7d329c500404a (commit)
       via  8b58bcf2f83e4f98a2ca9202d477b725abb90e72 (commit)
       via  051a1cf006b13a738f7f2697bc897c57d7cb163b (commit)
       via  b4d75490715058a51d045b89561bfce02fa331b6 (commit)
       via  b3d79b8ed687dfa889f46d03a17f37c42e945a2b (commit)
       via  3a4ab0a3e31d115b1b9f3ab9e14f3efcf124a5d7 (commit)
       via  aea85d57cdd9eda9faca88f025d58cc7e9f49f7f (commit)
       via  68be5f29099b8bba57a3a5bb87946511f4f82c62 (commit)
       via  59388d5a95d91cc3710b91f2b3b334f126517ad5 (commit)
       via  aefee5ed5cf0909fc174b538be69a7de3f63a91f (commit)
       via  2b33b569bdebeb623beabc36cc43c545701b6d93 (commit)
       via  c68ed5493b7c919af1cb950b542f72d62bd08882 (commit)
       via  b1482bb07699c150bcbc2cc915d2ae039ebaee80 (commit)
       via  d46ef7dd9c96079bbfb7b2c675a98fbacc37dba5 (commit)
       via  b7ee711e348c8b8bd07bc810142fe468a7da9d04 (commit)
       via  ecdf4477c1cba445b81193d6609f06aebdebeba9 (commit)
       via  1f14283bfadf9f5d9b68b8863947c0d4fb2c3cf2 (commit)
       via  857c05cde38f5b6529d4eb2e2570710b65b71b11 (commit)
       via  a1e78a92edb65f61398f75fa82122fa36a31f3dc (commit)
       via  9316ed5bdad1416e32f5be97d20cb573ac0bf64c (commit)
       via  fa9d7815fd365b52135be091938481fb5307fce4 (commit)
       via  ecf101f78860519418555b966e4ed5061286a2a9 (commit)
       via  1a6c57ddde9b9fb62dbcf7230d4f1308d3674df1 (commit)
       via  c090d23b34b137ce98f9de62537fa2fb13ca1ecd (commit)
       via  e6e9396c648fd22fe476b17352ed52a40bb2e0bd (commit)
       via  d7fb7dd25e0ab498d182b0c214270ec0703e6720 (commit)
       via  502a1d8a6089ed66188719292520c9baed722691 (commit)
       via  17ba7979fefa3603c3c150026b7f1e6084080b00 (commit)
       via  5de3a5856a0feb2e905caea5b965558b68e0bf4c (commit)
       via  9e8f01670d7d7334a7fb65c8329968bedf3c90f1 (commit)
       via  aabca0d611c0e34a0d6996210e53851d2b7789d8 (commit)
       via  b5e43e479bba74752908cedf4badff85ed25f9e6 (commit)
       via  1925ddc4c2bd7ec1446f291468fa3983d3ba4755 (commit)
       via  4fa71ccefb5491b8ed6e55d9c5e85c2236ca6151 (commit)
       via  4d5395266d494570a0cbc8b792da41185f4663c2 (commit)
       via  ed4a78fc3d59d21c02818380df85dff422ba12aa (commit)
       via  d74817b84bb759030de2dedb4c64adf008955433 (commit)
       via  68ccdda06ddeb6dd689615c1817e4e766b243c06 (commit)
       via  3edeb2f06956b32f7c8a4df32ca9039de7e4a78a (commit)
       via  1602efbcae70b4e40b4c8e3e0dac82a0dee91acf (commit)
       via  d28c2e65ddf50a889532bf15e5ec570018373292 (commit)
       via  dbfa9cc7e9016dde29373bc472533daacce53b65 (commit)
       via  81a55f1427d48710e2d699f134a6c59f78f5550b (commit)
       via  6178fc046d036ba0639a456272b63ab099edaf82 (commit)
       via  a48c179934bee9df3f67fcaaf632242e40d30e84 (commit)
       via  d641b754fd63c07aefd102230909dd015f851331 (commit)
       via  c4c2286bc98cad3c54a9b5d017ee3b150e680ac2 (commit)
       via  6cf613d6c791e0d6a785dc97654956f13139b9b7 (commit)
       via  35c95b2b57b61d962e5404886905dfe2829fb6bb (commit)
       via  8d2e8ad63204a3019f9b12f4a467a6e2b9a6c23b (commit)
       via  fae81fd61a19c98ca18a8b6b98d2840fa9dd5ade (commit)
       via  bb8e50ab4853f6b18efacc3328fa2075539d8974 (commit)
       via  2b330cc803da788211cd4b66e87cfd6bc21dfbab (commit)
       via  363c7b345f7d0730bd202c1775efeaf3d8254ed2 (commit)
       via  e7f2b7951a4b2190a967e367e5395a1c3e2d4802 (commit)
       via  dd5681c3362ddd4c5933fcaba245ff6333034f38 (commit)
       via  e6bd8f2abf2aff1a2ed7b29daaff68f918be9b88 (commit)
       via  4e8d44f12e27f569721e742bceccdfee35a78e2f (commit)
       via  6da1a829889ede67cb1d79801d7e303ffa6b4528 (commit)
       via  11a5ed3eee53962a18e0c348ac6ad6ccde4430a3 (commit)
       via  76d4004ac49829afe4cf6398c12d180b0d5242e1 (commit)
       via  306a5665b5c0cb1b3e097bbc23b79620f59e2cf0 (commit)
       via  d438502cf4d0f80282a5b84ab8e7425acd1a53c1 (commit)
       via  c0ec56f7f57d5d83ad589fb16255de691561f997 (commit)
       via  ff95333fe26824a2b1982e3ddcdc8d56d13d66a3 (commit)
       via  847915664fd893f065928e0b73911025973c0d68 (commit)
       via  feb4d18f5aa47204581b1e2f916ee4c34817e31f (commit)
       via  1aad842f599a7f2ae77c7ad85898471e503e83b2 (commit)
       via  a06be778506917cc0d66485bc74dfdf92f212506 (commit)
       via  82ab01cef505b98e5217e350fb1ce0fa5bdb5667 (commit)
       via  96dd75b5a8d23c3be6309de91768869003583298 (commit)
       via  56adda13173a3b8a2355b6b2865ff6d25059e1ca (commit)
       via  8ce9a2934dc0e16e01bb9dd0276fe05e90c39688 (commit)
       via  c86ee81222651c3e2c8694e71dcc5c7036b2aefc (commit)
       via  460b2283a3b26e9df8c9a91006806b46924c5945 (commit)
       via  7f81dd5c655ca22f862d168a3f8ac87edf4e96e0 (commit)
       via  e67de9c4083ea465357e9dd982e1c9be8d3ae9cc (commit)
       via  3a910fb838b06f989303f531482efb1189017055 (commit)
      from  10d81c8c20a52bb71503e9d5c933b5ead42bf7d6 (commit)

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

- Log -----------------------------------------------------------------
commit 13c7170fa46901aa186a0cdbdd1d4d3a43d2a78a
Merge: 10d81c8c20a52bb71503e9d5c933b5ead42bf7d6 587fa1a9ae4b6dcbce35a510d850032ce1df12cf
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Jan 27 15:21:15 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount
    
    Conflicts:
    	gdb/gdbtypes.c

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

Summary of changes:
 COPYING.NEWLIB                                     |   31 +
 ChangeLog                                          |   15 +
 Makefile.def                                       |    5 +-
 Makefile.in                                        |   20 +
 bfd/ChangeLog                                      |  194 ++++++
 bfd/Makefile.am                                    |    7 +-
 bfd/Makefile.in                                    |   19 +-
 bfd/coffcode.h                                     |   17 +-
 bfd/config.bfd                                     |    4 +
 bfd/configure                                      |   79 ++--
 bfd/configure.in                                   |   45 +-
 bfd/dwarf2.c                                       |   17 +-
 bfd/elf-attrs.c                                    |  154 ++---
 bfd/elf-bfd.h                                      |  106 +---
 bfd/elf-hppa.h                                     |   26 +-
 bfd/elf.c                                          |   17 +-
 bfd/elf32-arm.c                                    |  644 +++++++++++++++-----
 bfd/elf32-cris.c                                   |   26 +-
 bfd/elf32-ppc.c                                    |   47 ++-
 bfd/elf32-spu.c                                    |   28 +-
 bfd/elf32-spu.h                                    |    5 +-
 bfd/elflink.c                                      |  243 ++++----
 bfd/elfxx-ia64.c                                   |  306 +++++++++-
 bfd/elfxx-target.h                                 |    4 +
 bfd/pdp11.c                                        |   25 +-
 bfd/po/SRC-POTFILES.in                             |    3 +
 bfd/targets.c                                      |    2 +
 bfd/version.h                                      |    2 +-
 bfd/vmsutil.c                                      |  265 ++++++++
 bfd/vmsutil.h                                      |   20 +
 configure                                          |    4 +
 configure.ac                                       |    4 +
 gdb/ChangeLog                                      |  230 +++++++
 gdb/NEWS                                           |    6 +-
 gdb/cli/cli-decode.c                               |   21 +
 gdb/cli/cli-setshow.c                              |    6 +
 gdb/command.h                                      |   14 +
 gdb/doc/ChangeLog                                  |   16 +
 gdb/doc/gdb.texinfo                                |   40 ++-
 gdb/dummy-frame.c                                  |  112 +++--
 gdb/dummy-frame.h                                  |   16 +-
 gdb/eval.c                                         |   17 +-
 gdb/findvar.c                                      |   75 +---
 gdb/frame.c                                        |   60 +--
 gdb/frame.h                                        |   18 -
 gdb/gdbserver/ChangeLog                            |   24 +
 gdb/gdbserver/gdbreplay.c                          |    2 +-
 gdb/gdbserver/regcache.c                           |    2 -
 gdb/gdbserver/server.c                             |   74 ++-
 gdb/gdbserver/server.h                             |    5 +-
 gdb/gdbserver/thread-db.c                          |    2 +-
 gdb/gdbserver/utils.c                              |   19 +-
 gdb/gdbthread.h                                    |   17 +
 gdb/gdbtypes.c                                     |   48 +-
 gdb/gnu-v3-abi.c                                   |    2 +-
 gdb/hppa-hpux-tdep.c                               |    2 +-
 gdb/inf-ptrace.c                                   |    8 +-
 gdb/inf-ttrace.c                                   |    5 +-
 gdb/infcall.c                                      |  375 ++++++++----
 gdb/infcmd.c                                       |   28 +-
 gdb/inferior.h                                     |   28 +-
 gdb/infrun.c                                       |  221 +++++---
 gdb/linux-nat.c                                    |   12 +-
 gdb/objfiles.c                                     |    4 +-
 gdb/objfiles.h                                     |    6 +
 gdb/procfs.c                                       |    8 +-
 gdb/signals/signals.c                              |   12 +-
 gdb/solib.c                                        |  110 +++--
 gdb/solist.h                                       |    9 +
 gdb/stack.c                                        |    2 +-
 gdb/target.h                                       |    6 +-
 gdb/testsuite/ChangeLog                            |   53 ++
 gdb/testsuite/gdb.base/break.exp                   |    2 +-
 gdb/testsuite/gdb.base/call-signal-resume.exp      |  159 +++++
 gdb/testsuite/gdb.base/call-signals.c              |   89 +++
 gdb/testsuite/gdb.base/find.exp                    |    2 +-
 gdb/testsuite/gdb.base/hook-stop-frame.c           |   32 +
 gdb/testsuite/gdb.base/hook-stop-frame.exp         |   55 ++
 gdb/testsuite/gdb.base/interrupt.c                 |   18 +-
 gdb/testsuite/gdb.base/interrupt.exp               |   38 ++-
 gdb/testsuite/gdb.base/radix.exp                   |   17 +-
 gdb/testsuite/gdb.base/sepdebug.exp                |    2 +-
 gdb/testsuite/gdb.base/unwindonsignal.c            |   65 ++
 gdb/testsuite/gdb.base/unwindonsignal.exp          |   98 +++
 gdb/testsuite/gdb.cp/pr9631.cc                     |   42 ++
 gdb/testsuite/gdb.cp/pr9631.exp                    |   48 ++
 gdb/testsuite/gdb.mi/mi-syn-frame.exp              |    7 +-
 gdb/testsuite/gdb.mi/mi2-syn-frame.exp             |    7 +-
 gdb/testsuite/gdb.server/file-transfer.exp         |    2 +-
 gdb/testsuite/gdb.threads/interrupted-hand-call.c  |  149 +++++
 .../gdb.threads/interrupted-hand-call.exp          |   92 +++
 .../gdb.threads/thread-unwindonsignal.exp          |  117 ++++
 gdb/thread.c                                       |   52 ++-
 gdb/tui/tui-disasm.c                               |   15 +-
 gdb/tui/tui-winsource.c                            |   16 +-
 gdb/utils.c                                        |  166 ++++-
 gdb/valops.c                                       |   58 ++-
 gdb/valprint.c                                     |   20 +-
 gdb/value.h                                        |    5 +-
 gdb/version.in                                     |    2 +-
 include/elf/ChangeLog                              |   17 +
 include/elf/arm.h                                  |   44 +-
 include/elf/ia64.h                                 |   23 +-
 libiberty/ChangeLog                                |    6 +
 libiberty/configure                                |   30 -
 libiberty/configure.ac                             |   23 -
 opcodes/ChangeLog                                  |   18 +
 opcodes/configure                                  |   62 +-
 opcodes/configure.in                               |   32 +-
 opcodes/fr30-asm.c                                 |    2 +-
 opcodes/fr30-dis.c                                 |    4 +-
 opcodes/fr30-ibld.c                                |    4 +-
 opcodes/frv-asm.c                                  |    2 +-
 opcodes/frv-dis.c                                  |    4 +-
 opcodes/frv-ibld.c                                 |    4 +-
 opcodes/ip2k-asm.c                                 |    2 +-
 opcodes/ip2k-dis.c                                 |    4 +-
 opcodes/ip2k-ibld.c                                |    4 +-
 opcodes/iq2000-asm.c                               |    2 +-
 opcodes/iq2000-dis.c                               |    4 +-
 opcodes/iq2000-ibld.c                              |    4 +-
 opcodes/m32c-asm.c                                 |    2 +-
 opcodes/m32c-dis.c                                 |    4 +-
 opcodes/m32c-ibld.c                                |    4 +-
 opcodes/m32r-asm.c                                 |    2 +-
 opcodes/m32r-dis.c                                 |    4 +-
 opcodes/m32r-ibld.c                                |    4 +-
 opcodes/mep-asm.c                                  |    2 +-
 opcodes/mep-dis.c                                  |    4 +-
 opcodes/mep-ibld.c                                 |    4 +-
 opcodes/mt-asm.c                                   |    2 +-
 opcodes/mt-dis.c                                   |    4 +-
 opcodes/mt-ibld.c                                  |    4 +-
 opcodes/openrisc-asm.c                             |    2 +-
 opcodes/openrisc-dis.c                             |    4 +-
 opcodes/openrisc-ibld.c                            |    4 +-
 opcodes/po/POTFILES.in                             |    8 +
 opcodes/xc16x-asm.c                                |    2 +-
 opcodes/xc16x-dis.c                                |    4 +-
 opcodes/xc16x-ibld.c                               |    4 +-
 opcodes/xstormy16-asm.c                            |    2 +-
 opcodes/xstormy16-dis.c                            |    4 +-
 opcodes/xstormy16-ibld.c                           |    4 +-
 sim/ChangeLog                                      |   20 +
 sim/cris/sim-if.c                                  |  127 ++++-
 sim/testsuite/ChangeLog                            |    6 +
 sim/testsuite/lib/sim-defs.exp                     |    4 +-
 sim/testsuite/sim/cris/asm/bare3.ms                |   41 ++
 sim/testsuite/sim/cris/asm/opterr3.ms              |   10 +
 sim/testsuite/sim/cris/asm/opterr4.ms              |    7 +
 sim/testsuite/sim/cris/asm/opterr5.ms              |    7 +
 151 files changed, 4697 insertions(+), 1372 deletions(-)
 create mode 100644 bfd/vmsutil.c
 create mode 100644 bfd/vmsutil.h
 create mode 100644 gdb/testsuite/gdb.base/call-signal-resume.exp
 create mode 100644 gdb/testsuite/gdb.base/call-signals.c
 create mode 100644 gdb/testsuite/gdb.base/hook-stop-frame.c
 create mode 100644 gdb/testsuite/gdb.base/hook-stop-frame.exp
 create mode 100644 gdb/testsuite/gdb.base/unwindonsignal.c
 create mode 100644 gdb/testsuite/gdb.base/unwindonsignal.exp
 create mode 100644 gdb/testsuite/gdb.cp/pr9631.cc
 create mode 100644 gdb/testsuite/gdb.cp/pr9631.exp
 create mode 100644 gdb/testsuite/gdb.threads/interrupted-hand-call.c
 create mode 100644 gdb/testsuite/gdb.threads/interrupted-hand-call.exp
 create mode 100644 gdb/testsuite/gdb.threads/thread-unwindonsignal.exp
 create mode 100644 sim/testsuite/sim/cris/asm/bare3.ms
 create mode 100644 sim/testsuite/sim/cris/asm/opterr3.ms
 create mode 100644 sim/testsuite/sim/cris/asm/opterr4.ms
 create mode 100644 sim/testsuite/sim/cris/asm/opterr5.ms

First 500 lines of diff:
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index b3cccd8..68ff0c2 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -767,3 +767,34 @@ SUCH DAMAGE.
  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  SUCH DAMAGE.
+
+
+(35) - ARM Ltd (arm and thumb variant targets only)
+
+ Copyright (c) 2009 ARM Ltd
+ All rights reserved.
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. The name of the company may not be used to endorse or promote
+    products derived from this software without specific prior written
+    permission.
+
+ THIS SOFTWARE IS PROVIDED BY ARM LTD ``AS IS'' AND ANY EXPRESS OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL ARM LTD BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+
diff --git a/ChangeLog b/ChangeLog
index 9ee88bf..1da2e0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,18 @@
+2009-01-21  Jeff Johnston  <jjohnstn@redhat.com>
+
+	* COPYING.NEWLIB: Add ARM license.
+
+2009-01-16  Alan Modra  <amodra@bigpond.net.au>
+
+	* Makefile.def (configure-opcodes): Depend on configure-libiberty.
+	(all-opcodes): Depend on all-libiberty.
+	* Makefile.in: Regenerate.
+
+2009-01-15  Douglas B Rupp  <rupp@gnat.com>
+
+	* configure.ac (ia64*-*-*vms*): Add case with no gdb or ld support.
+	* configure: Regenerate.
+
 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
 	Backport link test fix from upstream Libtool:
diff --git a/Makefile.def b/Makefile.def
index dea795a..fee4dda 100644
--- a/Makefile.def
+++ b/Makefile.def
@@ -4,7 +4,8 @@ AutoGen definitions Makefile.tpl;
 // Makefile.in is generated from Makefile.tpl by 'autogen Makefile.def'.
 // This file was originally written by Nathanael Nerode.
 //
-//   Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation
+//   Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
+//   Free Software Foundation
 //
 // This file is free software; you can redistribute it and/or modify
 // it under the terms of the GNU General Public License as published by
@@ -357,6 +358,8 @@ dependencies = { module=configure-bfd; on=configure-libiberty; hard=true; };
 dependencies = { module=configure-bfd; on=configure-intl; };
 dependencies = { module=all-bfd; on=all-libiberty; };
 dependencies = { module=all-bfd; on=all-intl; };
+dependencies = { module=configure-opcodes; on=configure-libiberty; hard=true; };
+dependencies = { module=all-opcodes; on=all-libiberty; };
 
 dependencies = { module=configure-binutils; on=configure-intl; };
 dependencies = { module=all-binutils; on=all-libiberty; };
diff --git a/Makefile.in b/Makefile.in
index ab03aab..2df155e 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -55311,6 +55311,26 @@ all-stageb3g2-bfd: maybe-all-stageb3g2-intl
 all-stage4-bfd: maybe-all-stage4-intl
 all-stageprofile-bfd: maybe-all-stageprofile-intl
 all-stagefeedback-bfd: maybe-all-stagefeedback-intl
+configure-opcodes: configure-libiberty
+
+configure-stage1-opcodes: configure-stage1-libiberty
+configure-stage2-opcodes: configure-stage2-libiberty
+configure-stageb2g0-opcodes: configure-stageb2g0-libiberty
+configure-stage3-opcodes: configure-stage3-libiberty
+configure-stageb3g2-opcodes: configure-stageb3g2-libiberty
+configure-stage4-opcodes: configure-stage4-libiberty
+configure-stageprofile-opcodes: configure-stageprofile-libiberty
+configure-stagefeedback-opcodes: configure-stagefeedback-libiberty
+all-opcodes: maybe-all-libiberty
+
+all-stage1-opcodes: maybe-all-stage1-libiberty
+all-stage2-opcodes: maybe-all-stage2-libiberty
+all-stageb2g0-opcodes: maybe-all-stageb2g0-libiberty
+all-stage3-opcodes: maybe-all-stage3-libiberty
+all-stageb3g2-opcodes: maybe-all-stageb3g2-libiberty
+all-stage4-opcodes: maybe-all-stage4-libiberty
+all-stageprofile-opcodes: maybe-all-stageprofile-libiberty
+all-stagefeedback-opcodes: maybe-all-stagefeedback-libiberty
 configure-binutils: maybe-configure-intl
 
 configure-stage1-binutils: maybe-configure-stage1-intl
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index bc2df92..41cee38 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,197 @@
+2009-01-27  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
+	<R_CRIS_32_DTPREL>: Correct relocation value.
+
+	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
+	<R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
+	symbols with non-default visibility.
+
+2009-01-26  Nathan Sidwell  <nathan@codesourcery.com>
+
+	* elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
+	describing the trampolines.
+	(ppc_elf_relocate_section): Update relocs to describe the
+	trampolines.
+
+2009-01-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+	* elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
+	branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
+	and R_PARISC_PCREL12F relocations.
+
+2009-01-24  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 6022
+	* elflink.c (find_version_for_sym): New function split out from,
+	but without export_dynamic test, ..
+	(_bfd_elf_link_assign_sym_version): ..here.
+	(_bfd_elf_export_symbol): Use it.
+
+2009-01-23  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf-bfd.h (struct elf_assign_sym_version_info): Delete.
+	(struct elf_info_failed, struct elf_find_verdep_info): Move to..
+	* elflink.c: ..here, somewhat modified.
+	* elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
+	_bfd_elf_link_find_version_dependencies,
+	_bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
+	_bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
+	_bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
+	declare..
+	* elflink.c: ..and make static here.
+	(_bfd_elf_link_find_version_dependencies): Adjust for removal
+	of output_bfd from struct elf_find_verdep_info.
+	(_bfd_elf_link_assign_sym_version): Similarly adjust to use
+	struct elf_info_failed.
+	(bfd_elf_size_dynamic_sections): Adjust.
+
+2009-01-22  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 6832
+	* dwarf2.c (find_line): Don't update stash->sec_info_ptr until
+	after comp_unit_find_line call.
+
+2009-01-21  Nick Clifton  <nickc@redhat.com>
+
+	PR 9769
+	* vmsutil.c (vms_file_stats_name): Remove use of unsupported
+	tm_gmtoff field in struct tm.
+
+2009-01-21  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.h (struct spu_elf_params): Add non_ia_text.
+	* elf32-spu.c (mark_overlay_section): Only include .text.ia.*
+	sections in soft-icache lines unless non_ia_text.  Don't add
+	rodata if doing so would exceed line size.
+
+2009-01-19  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
+	types than bfd_link_hash_indirect, before early return, call
+	_bfd_elf_link_hash_copy_indirect.
+
+2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
+
+	* elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
+	* elf-bfd.h (elf_backend_data): Add obj_attrs_order.
+	* elf32-arm.c (elf32_arm_obj_attrs_order): New function.
+	(elf_backend_obj_attrs_order): New define.
+	* elfxx-target.h (elf_backend_obj_attrs_order): New define.
+	(elfNN_bed): Add elf_backend_obj_attrs_order.
+
+2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
+
+	* elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
+	(obj_attr_size): Likewise.
+	(write_obj_attribute): Likewise.
+	(_bfd_elf_copy_obj_attributes): Likewise.
+	(_bfd_elf_parse_attributes): Likewise.
+	* elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
+	(ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
+	(ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
+	(ATTR_TYPE_HAS_NO_DEFAULT): New define.
+	* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
+	with macros.
+
+2009-01-19  Andrew Stubbs  <ams@codesourcery.com>
+
+	* elf-attrs.c (is_default_attr): Support defaultless attributes.
+	(bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
+	(bfd_elf_add_obj_attr_string): Likewise.
+	(bfd_elf_add_obj_attr_int_string): Likewise.
+	(_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
+	* elf-bfd.h (struct obj_attribute): Document new flag bit.
+	* elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
+	Tag_nodefaults has no default value.
+	(elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
+	comment to reflect the new state.
+
+2009-01-19  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 9695
+	* pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
+	(some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
+	(adjust_z_magix): Delete dead code handling QMAGIC.
+
+2009-01-16  Kai Tietz  <kai.tietz@onevision.com>
+
+	* coffcode.h (styp_to_sec_flags): Correct interpretation of
+	IMAGE_SCN_MEM_DISCARDABLE.
+
+2009-01-16  Alan Modra  <amodra@bigpond.net.au>
+
+	* Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
+	SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
+	* configure.in (commonbfdlib): Delete.
+	(SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
+	(SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
+	is available, not just for linux.
+	* po/SRC-POTFILES.in: Regenerate.
+	* Makefile.in: Regenerate.
+	* configure: Regenerate.
+
+2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
+	    Julian Brown   <julian@codesourcery.com>
+
+	* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
+	ARM attributes in ABI 2.07.
+	* elf32-arm.c (get_secondary_compatible_arch): New function.
+	(set_secondary_compatible_arch): New function.
+	(tag_cpu_arch_combine): New function.
+	(elf32_arm_copy_one_eabi_other_attribute): Delete function.
+	(elf32_arm_copy_eabi_other_attribute_list): Delete function.
+	(elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
+	make it fit with order_01243.
+	Add support for Tag_also_compatible_with,
+	Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
+	Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
+	Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
+	Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
+	Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
+	Tag_VFP_arch and Tag_ABI_FP_16bit_format.
+	Rework the way unknown attributes are handled.
+	Defer errors until all attributes have been processed.
+
+2009-01-15  Andrew Stubbs  <ams@codesourcery.com>
+
+	* elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
+	bfd_elf_add_obj_attr_int_string.
+	Read Tag_compatibility from its new location in the attribute array,
+	rather than the attribute list.
+	(_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
+	bfd_elf_add_obj_attr_int_string.
+	(_bfd_elf_parse_attributes): Likewise.
+	(_bfd_elf_merge_object_attributes): There's now only one
+	Tag_compatibility, and it's in the array, not the list.
+	* elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
+	Tag_compatibility.
+	(bfd_elf_add_obj_attr_compat): Rename to
+	bfd_elf_add_obj_attr_int_string.
+	(bfd_elf_add_proc_attr_compat): Rename to
+	bfd_elf_add_proc_attr_int_string.
+	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
+	Tag_compatibility.
+
+2009-01-15  Douglas B Rupp  <rupp@gnat.com>
+
+	* Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
+	(BFD32_BACKENDS_CFILES): Add new file vmsutil.c
+	(vmsutil.lo): Add dependency rule.
+	* Makefile.in: Regenerate.
+	* config.bfd (ia64*-*-*vms*): Add case.
+	* configure.in (bfd_elf64_ia64_vms_vec): Add case.
+	* configure: Regenerate.
+	* vmsutil.c: New file.
+	* vmsutil.h: New file.
+	* elf-bfd.h (struct bfd_elf_special_section): Change type of
+	attr to bfd_vma.
+	* elfxx-ia64.c (elfNN_vms_post_process_headers,
+	elfNN_vms_section_processing, elfNN_vms_final_write_processing,
+	elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
+	elfNN_vms_object_p): New functions
+	* targets.c (bfd_elf64_ia64_vms_vec): New target.
+
 2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
 
 	PR ld/9727
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 4eac4a0..593647c 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -371,6 +371,7 @@ BFD32_BACKENDS = \
 	vms-hdr.lo \
 	vms-misc.lo \
 	vms-tir.lo \
+	vmsutil.lo \
 	xcofflink.lo \
 	xsym.lo \
 	xtensa-isa.lo \
@@ -552,6 +553,7 @@ BFD32_BACKENDS_CFILES = \
 	vms-hdr.c \
 	vms-misc.c \
 	vms-tir.c \
+	vmsutil.c \
 	xcofflink.c \
 	xsym.c \
 	xtensa-isa.c \
@@ -767,8 +769,8 @@ ofiles: stamp-ofiles ; @true
 # libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
 libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
 libbfd_la_DEPENDENCIES = $(OFILES) ofiles
-libbfd_la_LIBADD = `cat ofiles` @WIN32LIBADD@
-libbfd_la_LDFLAGS = -release `cat libtool-soversion` @WIN32LDFLAGS@
+libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@
+libbfd_la_LDFLAGS = -release `cat libtool-soversion` @SHARED_LDFLAGS@
 
 # libtool will build .libs/libbfd.a.  We create libbfd.a in the build
 # directory so that we don't have to convert all the programs that use
@@ -1833,6 +1835,7 @@ vms-misc.lo: vms-misc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
 vms-tir.lo: vms-tir.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
+vmsutil.lo: vmsutil.c vmsutil.h $(INCDIR)/ansidecl.h
 xcofflink.lo: xcofflink.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/xcoff.h \
   libcoff.h libxcoff.h
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index fc370b0..afaadb7 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -203,14 +203,14 @@ REPORT_BUGS_TEXI = @REPORT_BUGS_TEXI@
 REPORT_BUGS_TO = @REPORT_BUGS_TO@
 SED = @SED@
 SET_MAKE = @SET_MAKE@
+SHARED_LDFLAGS = @SHARED_LDFLAGS@
+SHARED_LIBADD = @SHARED_LIBADD@
 SHELL = @SHELL@
 STRIP = @STRIP@
 TDEFINES = @TDEFINES@
 USE_NLS = @USE_NLS@
 VERSION = @VERSION@
 WARN_CFLAGS = @WARN_CFLAGS@
-WIN32LDFLAGS = @WIN32LDFLAGS@
-WIN32LIBADD = @WIN32LIBADD@
 XGETTEXT = @XGETTEXT@
 ac_ct_AR = @ac_ct_AR@
 ac_ct_CC = @ac_ct_CC@
@@ -637,6 +637,7 @@ BFD32_BACKENDS = \
 	vms-hdr.lo \
 	vms-misc.lo \
 	vms-tir.lo \
+	vmsutil.lo \
 	xcofflink.lo \
 	xsym.lo \
 	xtensa-isa.lo \
@@ -818,6 +819,7 @@ BFD32_BACKENDS_CFILES = \
 	vms-hdr.c \
 	vms-misc.c \
 	vms-tir.c \
+	vmsutil.c \
 	xcofflink.c \
 	xsym.c \
 	xtensa-isa.c \
@@ -975,8 +977,8 @@ OFILES = $(BFD_BACKENDS) $(BFD_MACHINES) @COREFILE@ @bfd64_libs@
 # libbfd_la_SOURCES, we put BFD64_LIBS in OFILES instead.
 libbfd_la_SOURCES = $(BFD32_LIBS_CFILES)
 libbfd_la_DEPENDENCIES = $(OFILES) ofiles
-libbfd_la_LIBADD = `cat ofiles` @WIN32LIBADD@
-libbfd_la_LDFLAGS = -release `cat libtool-soversion` @WIN32LDFLAGS@
+libbfd_la_LIBADD = `cat ofiles` @SHARED_LIBADD@
+libbfd_la_LDFLAGS = -release `cat libtool-soversion` @SHARED_LDFLAGS@
 
 # libtool will build .libs/libbfd.a.  We create libbfd.a in the build
 # directory so that we don't have to convert all the programs that use
@@ -2022,15 +2024,15 @@ elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
-elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
-  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
-  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
-  elf32-target.h
 elf32-m32c.lo: elf32-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32c.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/libiberty.h \
   elf32-target.h
+elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-target.h
 elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h \
@@ -2429,6 +2431,7 @@ vms-misc.lo: vms-misc.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
 vms-tir.lo: vms-tir.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h vms.h
+vmsutil.lo: vmsutil.c vmsutil.h $(INCDIR)/ansidecl.h
 xcofflink.lo: xcofflink.c $(INCDIR)/filenames.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/hashtab.h $(INCDIR)/coff/internal.h $(INCDIR)/coff/xcoff.h \
   libcoff.h libxcoff.h
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 12d2ad5..db0b2e9 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -1069,10 +1069,19 @@ styp_to_sec_flags (bfd *abfd,
 	  sec_flags &= ~ SEC_READONLY;
 	  break;
 	case IMAGE_SCN_MEM_DISCARDABLE:
-	  /* The MS PE spec sets the DISCARDABLE flag on .reloc sections
-	     but we do not want them to be labelled as debug section, since
-	     then strip would remove them.  */
-	  if (! CONST_STRNEQ (name, ".reloc"))
+	  /* The MS PE spec says that debug sections are DISCARDABLE,
+	     but the presence of a DISCARDABLE flag does not necessarily
+	     mean that a given section contains debug information.  Thus
+	     we only set the SEC_DEBUGGING flag on sections that we
+	     recognise as containing debug information.  */
+	     if (CONST_STRNEQ (name, DOT_DEBUG)
+#ifdef _COMMENT
+	      || strcmp (name, _COMMENT) == 0
+#endif
+#ifdef COFF_LONG_SECTION_NAMES
+  	      || CONST_STRNEQ (name, GNU_LINKONCE_WI)
+#endif
+	      || CONST_STRNEQ (name, ".stab"))
 	    sec_flags |= SEC_DEBUGGING;
 	  break;
 	case IMAGE_SCN_MEM_SHARED:
diff --git a/bfd/config.bfd b/bfd/config.bfd
index e3d2b86..d9865e6 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -187,6 +187,10 @@ case "${targ}" in
     targ_selvecs="bfd_elf64_ia64_hpux_big_vec"
     want64=true
     ;;
+  ia64*-*-*vms*)
+    targ_defvec=bfd_elf64_ia64_vms_vec
+    want64=true
+    ;;
   sparc64-*-freebsd* | sparc64-*-kfreebsd*-gnu)
     targ_defvec=bfd_elf64_sparc_freebsd_vec
     targ_selvecs="bfd_elf64_sparc_vec bfd_elf32_sparc_vec sunos_big_vec"
diff --git a/bfd/configure b/bfd/configure
index a3ca40f..eaab98d 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -458,7 +458,7 @@ ac_includes_default="\
 # include <unistd.h>
 #endif"
 
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS'
 ac_subst_files=''
 ac_pwd=`pwd`
 
@@ -1012,7 +1012,6 @@ Optional Features:
   --disable-libtool-lock  avoid locking (might break parallel builds)
   --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)
   --enable-targets        alternative target configurations
-  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library
   --enable-secureplt      Default to creating read-only plt entries
   --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type
   --enable-werror         treat compile warnings as errors
@@ -5720,13 +5719,13 @@ if test "${lt_cv_nm_interface+set}" = set; then
 else
   lt_cv_nm_interface="BSD nm"


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-01-15 12:13 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-01-15 12:13 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  10d81c8c20a52bb71503e9d5c933b5ead42bf7d6 (commit)
       via  1b26519e2da4d8911270921f9f3f5d35a89bb4b0 (commit)
       via  0cfdf12ebb79fbe02ef38ba04ebf72e70209fe84 (commit)
       via  c6bf25e6e5ea9e480d09dfafd68b2748aca7b5a7 (commit)
       via  19a21ea3060f22dc3cd57af7de2d165295d1d564 (commit)
       via  bacf115a52bbab63860c290c368468f9969bfbb5 (commit)
       via  ec3e7bcd5ddd1692c834f61dcaeffaeaa5ad171a (commit)
       via  7b9ddb80ce43d46a1362b3446c122b5d2059a790 (commit)
       via  6de4ebe01d8ec1c109121e6f4f0ba4a6aa8c844d (commit)
       via  de0dac8e13465811dc1f6f0101b37f4e0cefb0ff (commit)
       via  24e811e5b400f3d15ecd15e4016f5bb703f3493b (commit)
       via  b3b8f7fcd034901efd2da7b2510d17b1659febd7 (commit)
       via  5f97626715295ce62acf56599a69501bff204f89 (commit)
       via  429a3006f056541ca2679131643b64629d9a8ca1 (commit)
       via  923cae23714297737070af0cb6127fff84e01934 (commit)
       via  2d6d3a41a5b8625d958f4f1c13d87203360710be (commit)
       via  d01d9f616da76337402f2a5614bb287a2307fd14 (commit)
       via  d52f6c771825f463ee4359051d169c4e7727e39f (commit)
       via  aa9ce73ea9e5d5f57acc0bf5cad43844c75bbf5f (commit)
       via  6e9fd0006cfd1fd96d286ae6ee1cd9196003da4e (commit)
       via  6c731926e209d61f297815028008facb3330afee (commit)
       via  5d956b6c873148aaf661851059b08adeb9e2478d (commit)
       via  8f40c7017844a39544a56c1a2a923ddf9c23acf4 (commit)
       via  9b4d98c60fcd1c022be194b1531b9b1d46f4bfff (commit)
       via  ca922ee40ab51547f0b3580f3f480bbac8be77a0 (commit)
       via  7f08c16c1ff2512e7dd909261899f1fa27e068bc (commit)
       via  62427248e95d5e0355ad214f9edb2756a31105d3 (commit)
       via  5452564e0a42f420c23232fbd9d67790ee282847 (commit)
       via  8e15d9dffb522ecb916e4e6a73e806d3ed2e451c (commit)
       via  f634ecc13a7c5644887d97b235919e788a6217f9 (commit)
       via  84047918f976f8b240a6c5a5c02d489a9869827b (commit)
       via  da268f9a9aaddf58af0ff324b447ef34a681f874 (commit)
       via  a06b996dcf762a276d85532ced1b55d5a6303edb (commit)
       via  6497550db50dc6a26a7c6b8d8b37a3fdf0ad1641 (commit)
       via  659f38d5c6585a19e99f14d9e537cfcb4e7c4d4e (commit)
       via  3f7d5964e85c0d620ad2cd2dcd486edac4b8b707 (commit)
       via  1a5d1c21ab02040a31d59e308cb1124003bbf7c7 (commit)
       via  916f4199c37d5371f1b6870db72fe8aee4ab14c0 (commit)
       via  144fbabf43efc102c284bf15a7e8f208869f8c37 (commit)
       via  bc655b7fd0fa70213e28695540f4e43da933bb60 (commit)
       via  b645d6a2ea0908336b70703d884d5702d1de3bee (commit)
       via  07b459a4e6c5130b469b934422e7655ea61ae99a (commit)
       via  7ec34a49aa9cb7d812021ba6667a0cfdd182676e (commit)
       via  4862c642a24472539ac705783835a847e5ec8b20 (commit)
       via  87305e8fba25e58c528850af46dbe886c0b33342 (commit)
       via  d9adab297c5c89dd458acb08e9802add640c1aac (commit)
       via  9a007bf02bc2dab12f94080fd81921f8c91e4ae5 (commit)
       via  a31f09673356bc0040bb850f21962549cd1a9cef (commit)
      from  fb2f150dc840dab31f4c322e44d0d22780c2f909 (commit)

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

- Log -----------------------------------------------------------------
commit 10d81c8c20a52bb71503e9d5c933b5ead42bf7d6
Merge: fb2f150dc840dab31f4c322e44d0d22780c2f909 1b26519e2da4d8911270921f9f3f5d35a89bb4b0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Jan 15 13:11:32 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                                      |   73 ++
 bfd/elf32-spu.c                                    | 1188 +++++++++++++++-----
 bfd/elf32-spu.h                                    |    9 +-
 bfd/elflink.c                                      |   41 +-
 bfd/syms.c                                         |    9 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |  188 +++
 gdb/MAINTAINERS                                    |    1 +
 gdb/Makefile.in                                    |    7 +-
 gdb/NEWS                                           |    3 +
 gdb/ada-lang.c                                     |   10 +-
 gdb/amd64-windows-nat.c                            |   92 ++
 sim/igen/filter_host.c => gdb/amd64-windows-tdep.c |   37 +-
 gdb/cli/cli-cmds.c                                 |    9 +-
 gdb/cli/cli-decode.c                               |    4 +
 gdb/cli/cli-script.c                               |  101 ++-
 gdb/cli/cli-script.h                               |    3 +-
 gdb/config/djgpp/fnchange.lst                      |   10 +
 gdb/config/i386/cygwin.mh                          |    2 +-
 gdb/config/i386/mingw.mh                           |    2 +-
 gdb/config/i386/mingw64.mh                         |    2 +
 .../gen-itable.h => gdb/config/i386/nm-cygwin64.h  |   24 +-
 gdb/configure                                      |    2 +-
 gdb/configure.ac                                   |    2 +-
 gdb/configure.host                                 |    4 +-
 gdb/configure.tgt                                  |   10 +-
 gdb/doc/ChangeLog                                  |   23 +
 gdb/doc/annotate.texinfo                           |   28 +-
 gdb/doc/gdb.texinfo                                |   66 +-
 gdb/doc/gdbint.texinfo                             |   27 +-
 gdb/doc/stabs.texinfo                              |   43 +-
 gdb/dwarf2loc.c                                    |    9 +-
 gdb/f-typeprint.c                                  |   23 +-
 gdb/gdb_curses.h                                   |    2 +-
 gdb/gdbserver/ChangeLog                            |    5 +
 gdb/gdbserver/win32-low.c                          |    1 +
 gdb/gdbtypes.c                                     |   38 +-
 gdb/i386-cygwin-tdep.c                             |   48 +-
 gdb/i386-windows-nat.c                             |   76 ++
 gdb/mdebugread.c                                   |   10 +-
 gdb/mi/mi-main.c                                   |    5 +-
 gdb/remote.c                                       |   25 +
 gdb/ser-mingw.c                                    |    3 +
 gdb/target.c                                       |   15 +-
 gdb/testsuite/ChangeLog                            |    5 +
 gdb/testsuite/gdb.ada/ref_tick_size/p.adb          |    2 +-
 gdb/testsuite/gdb.ada/ref_tick_size/pck.adb        |    2 +-
 gdb/testsuite/gdb.ada/ref_tick_size/pck.ads        |    2 +-
 gdb/testsuite/gdb.base/define.exp                  |   37 +-
 gdb/testsuite/gdb.python/python.exp                |    2 +-
 gdb/utils.c                                        |    5 +-
 gdb/valarith.c                                     |   12 +-
 gdb/valops.c                                       |   10 +-
 gdb/value.c                                        |   16 +-
 gdb/value.h                                        |    5 +
 gdb/version.in                                     |    2 +-
 gdb/win32-termcap.c                                |   65 --
 gdb/{win32-nat.c => windows-nat.c}                 |  334 +++---
 sim/common/version.h => gdb/windows-nat.h          |   13 +-
 gdb/windows-tdep.c                                 |   39 +
 gdb/{i386-cygwin-tdep.h => windows-tdep.h}         |   17 +-
 include/ChangeLog                                  |    8 +
 include/gdb/callback.h                             |    2 +-
 include/gdb/fileio.h                               |    2 +-
 include/gdb/remote-sim.h                           |    2 +-
 include/gdb/signals.h                              |    3 +-
 include/gdb/sim-arm.h                              |    2 +-
 include/gdb/sim-cr16.h                             |    2 +-
 include/gdb/sim-d10v.h                             |    2 +-
 include/gdb/sim-frv.h                              |    2 +-
 include/gdb/sim-h8300.h                            |    2 +-
 include/gdb/sim-m32c.h                             |    2 +-
 include/gdb/sim-ppc.h                              |    2 +-
 include/gdb/sim-sh.h                               |    3 +-
 include/plugin-api.h                               |   21 +-
 opcodes/ChangeLog                                  |   28 +
 opcodes/bfin-dis.c                                 |    2 +-
 opcodes/i386-dis.c                                 |   32 +-
 opcodes/i386-gen.c                                 |    4 +-
 opcodes/i386-opc.tbl                               |    6 +-
 opcodes/i386-tbl.h                                 |    6 +-
 opcodes/ppc-dis.c                                  |    3 +-
 opcodes/ppc-opc.c                                  |   12 +-
 sim/Makefile.in                                    |    2 +-
 sim/arm/Makefile.in                                |    2 +-
 sim/arm/iwmmxt.c                                   |    2 +-
 sim/arm/iwmmxt.h                                   |    2 +-
 sim/arm/maverick.c                                 |    2 +-
 sim/arm/wrapper.c                                  |    2 +-
 sim/common/Make-common.in                          |    2 +-
 sim/common/Makefile.in                             |    2 +-
 sim/common/callback.c                              |    2 +-
 sim/common/cgen-cpu.h                              |    2 +-
 sim/common/cgen-defs.h                             |    2 +-
 sim/common/cgen-engine.h                           |    2 +-
 sim/common/cgen-mem.h                              |    2 +-
 sim/common/cgen-par.c                              |    2 +-
 sim/common/cgen-par.h                              |    2 +-
 sim/common/cgen-run.c                              |    2 +-
 sim/common/cgen-scache.c                           |    3 +-
 sim/common/cgen-scache.h                           |    2 +-
 sim/common/cgen-sim.h                              |    2 +-
 sim/common/cgen-trace.c                            |    2 +-
 sim/common/cgen-trace.h                            |    2 +-
 sim/common/cgen-types.h                            |    2 +-
 sim/common/cgen-utils.c                            |    2 +-
 sim/common/dv-core.c                               |    2 +-
 sim/common/dv-glue.c                               |    2 +-
 sim/common/dv-pal.c                                |    2 +-
 sim/common/dv-sockser.c                            |    2 +-
 sim/common/genmloop.sh                             |    2 +-
 sim/common/hw-alloc.c                              |    2 +-
 sim/common/hw-alloc.h                              |    2 +-
 sim/common/hw-base.c                               |    2 +-
 sim/common/hw-base.h                               |    2 +-
 sim/common/hw-device.c                             |    2 +-
 sim/common/hw-device.h                             |    2 +-
 sim/common/hw-events.c                             |    2 +-
 sim/common/hw-events.h                             |    2 +-
 sim/common/hw-handles.c                            |    2 +-
 sim/common/hw-handles.h                            |    2 +-
 sim/common/hw-instances.c                          |    2 +-
 sim/common/hw-instances.h                          |    2 +-
 sim/common/hw-main.h                               |    2 +-
 sim/common/hw-ports.c                              |    2 +-
 sim/common/hw-ports.h                              |    2 +-
 sim/common/hw-properties.c                         |    2 +-
 sim/common/hw-properties.h                         |    2 +-
 sim/common/hw-tree.c                               |    2 +-
 sim/common/hw-tree.h                               |    2 +-
 sim/common/nrun.c                                  |    2 +-
 sim/common/run-sim.h                               |    2 +-
 sim/common/run.c                                   |    2 +-
 sim/common/sim-abort.c                             |    2 +-
 sim/common/sim-alu.h                               |    2 +-
 sim/common/sim-arange.c                            |    2 +-
 sim/common/sim-arange.h                            |    2 +-
 sim/common/sim-base.h                              |    2 +-
 sim/common/sim-basics.h                            |    2 +-
 sim/common/sim-bits.c                              |    2 +-
 sim/common/sim-bits.h                              |    2 +-
 sim/common/sim-config.c                            |    2 +-
 sim/common/sim-config.h                            |    2 +-
 sim/common/sim-core.c                              |    2 +-
 sim/common/sim-core.h                              |    2 +-
 sim/common/sim-cpu.c                               |    2 +-
 sim/common/sim-cpu.h                               |    2 +-
 sim/common/sim-endian.c                            |    2 +-
 sim/common/sim-endian.h                            |    2 +-
 sim/common/sim-engine.c                            |    2 +-
 sim/common/sim-engine.h                            |    2 +-
 sim/common/sim-events.c                            |    2 +-
 sim/common/sim-events.h                            |    2 +-
 sim/common/sim-fpu.c                               |    3 +-
 sim/common/sim-fpu.h                               |    3 +-
 sim/common/sim-hload.c                             |    2 +-
 sim/common/sim-hrw.c                               |    2 +-
 sim/common/sim-hw.c                                |    2 +-
 sim/common/sim-hw.h                                |    2 +-
 sim/common/sim-info.c                              |    2 +-
 sim/common/sim-inline.c                            |    2 +-
 sim/common/sim-inline.h                            |    2 +-
 sim/common/sim-io.c                                |    2 +-
 sim/common/sim-io.h                                |    2 +-
 sim/common/sim-load.c                              |    2 +-
 sim/common/sim-memopt.c                            |    2 +-
 sim/common/sim-memopt.h                            |    2 +-
 sim/common/sim-model.c                             |    3 +-
 sim/common/sim-model.h                             |    3 +-
 sim/common/sim-module.c                            |    3 +-
 sim/common/sim-module.h                            |    2 +-
 sim/common/sim-n-bits.h                            |    2 +-
 sim/common/sim-n-core.h                            |    2 +-
 sim/common/sim-n-endian.h                          |    2 +-
 sim/common/sim-options.c                           |    3 +-
 sim/common/sim-options.h                           |    2 +-
 sim/common/sim-profile.c                           |    2 +-
 sim/common/sim-profile.h                           |    3 +-
 sim/common/sim-reason.c                            |    2 +-
 sim/common/sim-reg.c                               |    2 +-
 sim/common/sim-resume.c                            |    2 +-
 sim/common/sim-run.c                               |    2 +-
 sim/common/sim-signal.c                            |    2 +-
 sim/common/sim-signal.h                            |    2 +-
 sim/common/sim-stop.c                              |    2 +-
 sim/common/sim-trace.c                             |    3 +-
 sim/common/sim-trace.h                             |    3 +-
 sim/common/sim-types.h                             |    2 +-
 sim/common/sim-utils.c                             |    2 +-
 sim/common/sim-utils.h                             |    2 +-
 sim/common/sim-watch.c                             |    2 +-
 sim/common/sim-watch.h                             |    2 +-
 sim/common/syscall.c                               |    3 +-
 sim/common/version.h                               |    2 +-
 sim/cr16/Makefile.in                               |    2 +-
 sim/cr16/cr16_sim.h                                |    4 +-
 sim/cr16/endian.c                                  |    4 +-
 sim/cr16/gencode.c                                 |    4 +-
 sim/cr16/interp.c                                  |    4 +-
 sim/cr16/simops.c                                  |    4 +-
 sim/cris/Makefile.in                               |    2 +-
 sim/cris/cris-sim.h                                |    3 +-
 sim/cris/cris-tmpl.c                               |    3 +-
 sim/cris/crisv10f.c                                |    3 +-
 sim/cris/crisv32f.c                                |    3 +-
 sim/cris/devices.c                                 |    3 +-
 sim/cris/dv-cris.c                                 |    2 +-
 sim/cris/dv-rv.c                                   |    2 +-
 sim/cris/mloop.in                                  |    2 +-
 sim/cris/rvdummy.c                                 |    2 +-
 sim/cris/sim-if.c                                  |    3 +-
 sim/cris/sim-main.h                                |    3 +-
 sim/cris/tconfig.in                                |    2 +-
 sim/cris/traps.c                                   |    2 +-
 sim/d10v/Makefile.in                               |    2 +-
 sim/erc32/Makefile.in                              |    3 +-
 sim/frv/Makefile.in                                |    2 +-
 sim/frv/cache.c                                    |    2 +-
 sim/frv/cache.h                                    |    3 +-
 sim/frv/devices.c                                  |    2 +-
 sim/frv/frv-sim.h                                  |    2 +-
 sim/frv/frv.c                                      |    2 +-
 sim/frv/interrupts.c                               |    3 +-
 sim/frv/memory.c                                   |    2 +-
 sim/frv/mloop.in                                   |    2 +-
 sim/frv/options.c                                  |    2 +-
 sim/frv/pipeline.c                                 |    2 +-
 sim/frv/profile-fr400.c                            |    2 +-
 sim/frv/profile-fr400.h                            |    2 +-
 sim/frv/profile-fr450.c                            |    2 +-
 sim/frv/profile-fr500.c                            |    2 +-
 sim/frv/profile-fr500.h                            |    2 +-
 sim/frv/profile-fr550.c                            |    2 +-
 sim/frv/profile-fr550.h                            |    2 +-
 sim/frv/profile.c                                  |    2 +-
 sim/frv/profile.h                                  |    2 +-
 sim/frv/registers.c                                |    3 +-
 sim/frv/registers.h                                |    2 +-
 sim/frv/reset.c                                    |    2 +-
 sim/frv/sim-if.c                                   |    3 +-
 sim/frv/sim-main.h                                 |    3 +-
 sim/frv/traps.c                                    |    2 +-
 sim/h8300/Makefile.in                              |    2 +-
 sim/igen/Makefile.in                               |    2 +-
 sim/igen/compare_igen_models                       |    2 +-
 sim/igen/filter.c                                  |    2 +-
 sim/igen/filter.h                                  |    2 +-
 sim/igen/filter_host.c                             |    2 +-
 sim/igen/filter_host.h                             |    2 +-
 sim/igen/gen-engine.c                              |    2 +-
 sim/igen/gen-engine.h                              |    2 +-
 sim/igen/gen-icache.c                              |    2 +-
 sim/igen/gen-icache.h                              |    2 +-
 sim/igen/gen-idecode.c                             |    2 +-
 sim/igen/gen-idecode.h                             |    2 +-
 sim/igen/gen-itable.c                              |    2 +-
 sim/igen/gen-itable.h                              |    2 +-
 sim/igen/gen-model.c                               |    2 +-
 sim/igen/gen-model.h                               |    2 +-
 sim/igen/gen-semantics.c                           |    2 +-
 sim/igen/gen-semantics.h                           |    2 +-
 sim/igen/gen-support.c                             |    2 +-
 sim/igen/gen-support.h                             |    2 +-
 sim/igen/gen.c                                     |    2 +-
 sim/igen/gen.h                                     |    2 +-
 sim/igen/igen.c                                    |    2 +-
 sim/igen/igen.h                                    |    2 +-
 sim/igen/ld-cache.c                                |    2 +-
 sim/igen/ld-cache.h                                |    2 +-
 sim/igen/ld-decode.c                               |    2 +-
 sim/igen/ld-decode.h                               |    2 +-
 sim/igen/ld-insn.c                                 |    2 +-
 sim/igen/ld-insn.h                                 |    2 +-
 sim/igen/lf.c                                      |    2 +-
 sim/igen/lf.h                                      |    2 +-
 sim/igen/misc.c                                    |    2 +-
 sim/igen/misc.h                                    |    2 +-
 sim/igen/table.c                                   |    2 +-
 sim/igen/table.h                                   |    2 +-
 sim/iq2000/Makefile.in                             |    2 +-
 sim/iq2000/iq2000-sim.h                            |    2 +-
 sim/iq2000/iq2000.c                                |    2 +-
 sim/iq2000/mloop.in                                |    2 +-
 sim/iq2000/sim-if.c                                |    2 +-
 sim/m32c/Makefile.in                               |    2 +-
 sim/m32c/blinky.S                                  |    2 +-
 sim/m32c/configure.in                              |    2 +-
 sim/m32c/cpu.h                                     |    2 +-
 sim/m32c/gdb-if.c                                  |    2 +-
 sim/m32c/gloss.S                                   |    2 +-
 sim/m32c/int.c                                     |    2 +-
 sim/m32c/int.h                                     |    2 +-
 sim/m32c/load.c                                    |    2 +-
 sim/m32c/load.h                                    |    2 +-
 sim/m32c/m32c.opc                                  |    2 +-
 sim/m32c/main.c                                    |    2 +-
 sim/m32c/mem.c                                     |    2 +-
 sim/m32c/mem.h                                     |    2 +-
 sim/m32c/misc.c                                    |    2 +-
 sim/m32c/misc.h                                    |    2 +-
 sim/m32c/opc2c.c                                   |    2 +-
 sim/m32c/r8c.opc                                   |    2 +-
 sim/m32c/reg.c                                     |    2 +-
 sim/m32c/safe-fgets.c                              |    2 +-
 sim/m32c/safe-fgets.h                              |    2 +-
 sim/m32c/sample.S                                  |    2 +-
 sim/m32c/sample.ld                                 |    2 +-
 sim/m32c/sample2.c                                 |    2 +-
 sim/m32c/srcdest.c                                 |    2 +-
 sim/m32c/syscalls.c                                |    2 +-
 sim/m32c/syscalls.h                                |    2 +-
 sim/m32c/trace.c                                   |    2 +-
 sim/m32c/trace.h                                   |    2 +-
 sim/m32r/Makefile.in                               |    2 +-
 sim/m32r/devices.c                                 |    2 +-
 sim/m32r/m32r-sim.h                                |    2 +-
 sim/m32r/m32r.c                                    |    2 +-
 sim/m32r/m32r2.c                                   |    3 +-
 sim/m32r/m32rx.c                                   |    2 +-
 sim/m32r/mloop.in                                  |    3 +-
 sim/m32r/mloop2.in                                 |    2 +-
 sim/m32r/mloopx.in                                 |    3 +-
 sim/m32r/sim-if.c                                  |    2 +-
 sim/m32r/traps-linux.c                             |    2 +-
 sim/m32r/traps.c                                   |    2 +-
 sim/m68hc11/Makefile.in                            |    3 +-
 sim/m68hc11/dv-m68hc11.c                           |    2 +-
 sim/m68hc11/dv-m68hc11eepr.c                       |    2 +-
 sim/m68hc11/dv-m68hc11sio.c                        |    3 +-
 sim/m68hc11/dv-m68hc11spi.c                        |    3 +-
 sim/m68hc11/dv-m68hc11tim.c                        |    2 +-
 sim/m68hc11/dv-nvram.c                             |    2 +-
 sim/m68hc11/emulos.c                               |    2 +-
 sim/m68hc11/gencode.c                              |    3 +-
 sim/m68hc11/interp.c                               |    2 +-
 sim/m68hc11/interrupts.c                           |    2 +-
 sim/m68hc11/interrupts.h                           |    3 +-
 sim/m68hc11/m68hc11_sim.c                          |    2 +-
 sim/m68hc11/sim-main.h                             |    2 +-
 sim/mcore/Makefile.in                              |    2 +-
 sim/mcore/interp.c                                 |    2 +-
 sim/mcore/sysdep.h                                 |    2 +-
 sim/mips/cp1.c                                     |    2 +-
 sim/mips/cp1.h                                     |    3 +-
 sim/mips/dsp.c                                     |    2 +-
 sim/mips/dv-tx3904cpu.c                            |    2 +-
 sim/mips/dv-tx3904irc.c                            |    2 +-
 sim/mips/dv-tx3904sio.c                            |    2 +-
 sim/mips/dv-tx3904tmr.c                            |    2 +-
 sim/mips/mdmx.c                                    |    2 +-
 sim/mips/sim-main.h                                |    3 +-
 sim/mn10300/Makefile.in                            |    2 +-
 sim/mn10300/dv-mn103cpu.c                          |    2 +-
 sim/mn10300/dv-mn103int.c                          |    2 +-
 sim/mn10300/dv-mn103iop.c                          |    2 +-
 sim/mn10300/dv-mn103ser.c                          |    2 +-
 sim/mn10300/dv-mn103tim.c                          |    2 +-
 sim/ppc/ChangeLog                                  |    4 +
 sim/ppc/altivec_expression.h                       |    2 +-
 sim/ppc/altivec_registers.h                        |    2 +-
 sim/ppc/dp-bit.c                                   |    2 +-
 sim/ppc/e500_expression.h                          |    2 +-
 sim/ppc/e500_registers.h                           |    2 +-
 sim/ppc/gdb-sim.c                                  |    2 +-
 sim/ppc/ppc-instructions                           |    2 +-
 sim/sh/Makefile.in                                 |    2 +-
 sim/sh64/Makefile.in                               |    2 +-
 sim/sh64/eng.h                                     |    2 +-
 sim/sh64/sh64-sim.h                                |    2 +-
 sim/sh64/sh64.c                                    |    2 +-
 sim/sh64/sim-if.c                                  |    2 +-
 sim/testsuite/Makefile.in                          |    2 +-
 sim/testsuite/common/bits-gen.c                    |    2 +-
 sim/testsuite/d10v-elf/Makefile.in                 |    2 +-
 sim/testsuite/frv-elf/Makefile.in                  |    2 +-
 sim/testsuite/m32r-elf/Makefile.in                 |    2 +-
 sim/testsuite/mips64el-elf/Makefile.in             |    2 +-
 sim/testsuite/sim/cris/asm/asm.exp                 |    2 +-
 sim/testsuite/sim/cris/c/c.exp                     |    2 +-
 sim/testsuite/sim/cris/hw/rv-n-cris/rvc.exp        |    2 +-
 sim/testsuite/sim/mips/testutils.inc               |    2 +-
 sim/testsuite/sim/mips/utils-dsp.inc               |    2 +-
 sim/testsuite/sim/mips/utils-fpu.inc               |    2 +-
 sim/testsuite/sim/mips/utils-mdmx.inc              |    2 +-
 sim/v850/Makefile.in                               |    2 +-
 385 files changed, 2467 insertions(+), 1181 deletions(-)
 create mode 100644 gdb/amd64-windows-nat.c
 copy sim/igen/filter_host.c => gdb/amd64-windows-tdep.c (53%)
 create mode 100644 gdb/config/i386/mingw64.mh
 copy sim/igen/gen-itable.h => gdb/config/i386/nm-cygwin64.h (53%)
 create mode 100644 gdb/i386-windows-nat.c
 delete mode 100644 gdb/win32-termcap.c
 rename gdb/{win32-nat.c => windows-nat.c} (88%)
 copy sim/common/version.h => gdb/windows-nat.h (74%)
 create mode 100644 gdb/windows-tdep.c
 rename gdb/{i386-cygwin-tdep.h => windows-tdep.h} (66%)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index da237ce..bc2df92 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,76 @@
+2009-01-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/9727
+	* elflink.c (elf_gc_sweep): Exclude the group section if the
+	first member of the section group is excluded.
+
+2009-01-14  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 9735
+	* syms.c (_bfd_stab_section_find_nearest_line): Don't free
+	saved filename, use bfd_alloc rather than bfd_malloc for it.
+
+2009-01-13  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
+
+2009-01-13  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (remove_cycles): Always set call->max_depth.
+
+2009-01-12  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
+
+2009-01-12  Alan Modra  <amodra@bigpond.net.au>
+
+	* elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
+	num_lines_log2.
+	(struct got_entry): Add br_addr.
+	(struct call_info): Add priority.
+	(struct function_info): Add lr_store and sp_adjust.
+	(spu_elf_setup): Init line_size_log2 and num_lines_log2.
+	(spu_elf_find_overlays): For soft-icache, mark any section within cache
+	area as an overlay, and check that no other overlays exist.  Look up
+	icache overlay manager entry sym.
+	(BRA_STUBS, BRA, BRASL): Define.
+	(enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
+	(needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
+	in branch insn.
+	(count_stub, build_stub): Support soft-icache.
+	(build_spuear_stubs, process_stubs): Adjust build_stub call.
+	(spu_elf_size_stubs): Size soft-icache stubs.
+	(overlay_index): New function.
+	(spu_elf_build_stubs): Make static.  Support soft-icache.
+	(spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
+	(find_function_stack_adjust): Save lr store and stack adjust insn
+	offsets.
+	(maybe_insert_function): Adjust find_function_stack_adjust call.
+	(mark_functions_via_relocs): Retrieve priority.
+	(remove_cycles): Only warn about pruned arcs when stack_analysis.
+	(sort_calls): Sort by priority first.
+	(mark_overlay_section): Ignore .ovl.init.
+	(sum_stack): Only print when stack_analysis.
+	(print_one_overlay_section): New function, extracted from..
+	(spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
+	(spu_elf_stack_analysis): Only print when htab->stack_analysis.
+	(spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
+	analysis.  Call spu_elf_build_stubs.
+	(spu_elf_relocate_section): For soft-icache encode overlay index
+	into addresses.
+	(spu_elf_output_symbol_hook): Support soft-icache.
+	(spu_elf_modify_program_headers: Likewise.
+
+	* elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
+	num_regions to num_lines.  Add line_size and max_branch.
+	(enum _ovly_flavour): Add ovly_soft_icache.
+	(spu_elf_build_stubs): Delete.
+
+2009-01-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
+	relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
+
 2009-01-07  Hans-Peter Nilsson  <hp@axis.com>
 
 	* elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 447aa8d..318c5b4 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -1,6 +1,6 @@
 /* SPU specific support for 32-bit ELF
 
-   Copyright 2006, 2007, 2008 Free Software Foundation, Inc.
+   Copyright 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
 
@@ -301,6 +301,7 @@ struct spu_link_hash_table
 
   /* Shortcuts to overlay sections.  */
   asection *ovtab;
+  asection *init;
   asection *toe;
   asection **ovl_sec;
 
@@ -320,6 +321,10 @@ struct spu_link_hash_table
   /* Total number of overlays.  */
   unsigned int num_overlays;
 
+  /* For soft icache.  */
+  unsigned int line_size_log2;
+  unsigned int num_lines_log2;
+
   /* How much memory we have.  */
   unsigned int local_store;
   /* Local store --auto-overlay should reserve for non-overlay
@@ -345,7 +350,10 @@ struct got_entry
 {
   struct got_entry *next;
   unsigned int ovl;
-  bfd_vma addend;
+  union {
+    bfd_vma addend;
+    bfd_vma br_addr;
+  };
   bfd_vma stub_addr;
 };
 
@@ -360,6 +368,7 @@ struct call_info
   unsigned int max_depth;
   unsigned int is_tail : 1;
   unsigned int is_pasted : 1;
+  unsigned int priority : 13;
 };
 
 struct function_info
@@ -382,6 +391,10 @@ struct function_info
   unsigned int call_count;
   /* Address range of (this part of) function.  */
   bfd_vma lo, hi;
+  /* Offset where we found a store of lr, or -1 if none found.  */
+  bfd_vma lr_store;
+  /* Offset where we found the stack adjustment insn.  */
+  bfd_vma sp_adjust;
   /* Stack usage.  */
   int stack;
   /* Distance from root of call tree.  Tail and hot/cold branches
@@ -415,6 +428,9 @@ struct spu_elf_stack_info
   struct function_info fun[1];
 };
 
+static struct function_info *find_function (asection *, bfd_vma,
+					    struct bfd_link_info *);
+
 /* Create a spu ELF linker hash table.  */
 
 static struct bfd_link_hash_table *
@@ -449,6 +465,8 @@ spu_elf_setup (struct bfd_link_info *info, struct spu_elf_params *params)
 {
   struct spu_link_hash_table *htab = spu_hash_table (info);
   htab->params = params;
+  htab->line_size_log2 = bfd_log2 (htab->params->line_size);
+  htab->num_lines_log2 = bfd_log2 (htab->params->num_lines);
 }
 
 /* Find the symbol for the given R_SYMNDX in IBFD and set *HP and *SYMP
@@ -597,6 +615,7 @@ spu_elf_find_overlays (struct bfd_link_info *info)
   unsigned int i, n, ovl_index, num_buf;
   asection *s;
   bfd_vma ovl_end;
+  const char *ovly_mgr_entry;
 
   if (info->output_bfd->section_count < 2)
     return FALSE;
@@ -622,51 +641,149 @@ spu_elf_find_overlays (struct bfd_link_info *info)
   /* Sort them by vma.  */
   qsort (alloc_sec, n, sizeof (*alloc_sec), sort_sections);
 
-  /* Look for overlapping vmas.  Any with overlap must be overlays.
-     Count them.  Also count the number of overlay regions.  */
   ovl_end = alloc_sec[0]->vma + alloc_sec[0]->size;
-  for (ovl_index = 0, num_buf = 0, i = 1; i < n; i++)
+  if (htab->params->ovly_flavour == ovly_soft_icache)
     {
-      s = alloc_sec[i];
-      if (s->vma < ovl_end)
+      /* Look for an overlapping vma to find the first overlay section.  */
+      bfd_vma vma_start = 0;
+      bfd_vma lma_start = 0;
+
+      for (i = 1; i < n; i++)
 	{
-	  asection *s0 = alloc_sec[i - 1];
+	  s = alloc_sec[i];
+	  if (s->vma < ovl_end)
+	    {
+	      asection *s0 = alloc_sec[i - 1];
+	      vma_start = s0->vma;
+	      lma_start = s0->lma;
+	      ovl_end = (s0->vma
+			 + ((bfd_vma) 1
+			    << (htab->num_lines_log2 + htab->line_size_log2)));
+	      --i;
+	      break;
+	    }
+	  else
+	    ovl_end = s->vma + s->size;
+	}
 
-	  if (spu_elf_section_data (s0)->u.o.ovl_index == 0)
+      /* Now find any sections within the cache area.  */
+      for (ovl_index = 0, num_buf = 0; i < n; i++)
+	{
+	  s = alloc_sec[i];
+	  if (s->vma >= ovl_end)
+	    break;
+
+	  /* A section in an overlay area called .ovl.init is not
+	     an overlay, in the sense that it might be loaded in
+	     by the overlay manager, but rather the initial
+	     section contents for the overlay buffer.  */
+	  if (strncmp (s->name, ".ovl.init", 9) != 0)
 	    {
-	      alloc_sec[ovl_index] = s0;
-	      spu_elf_section_data (s0)->u.o.ovl_index = ++ovl_index;
-	      spu_elf_section_data (s0)->u.o.ovl_buf = ++num_buf;
+	      num_buf = ((s->vma - vma_start) >> htab->line_size_log2) + 1;
+	      if (((s->vma - vma_start) & (htab->params->line_size - 1))
+		  || ((s->lma - lma_start) & (htab->params->line_size - 1)))
+		{
+		  info->callbacks->einfo (_("%X%P: overlay section %A "
+					    "does not start on a cache line.\n"),
+					  s);
+		  return FALSE;
+		}
+	      else if (s->size > htab->params->line_size)
+		{
+		  info->callbacks->einfo (_("%X%P: overlay section %A "
+					    "is larger than a cache line.\n"),
+					  s);
+		  return FALSE;
+		}
+
+	      alloc_sec[ovl_index++] = s;
+	      spu_elf_section_data (s)->u.o.ovl_index
+		= ((s->lma - lma_start) >>  htab->line_size_log2) + 1;
+	      spu_elf_section_data (s)->u.o.ovl_buf = num_buf;
 	    }
-	  alloc_sec[ovl_index] = s;
-	  spu_elf_section_data (s)->u.o.ovl_index = ++ovl_index;
-	  spu_elf_section_data (s)->u.o.ovl_buf = num_buf;
-	  if (s0->vma != s->vma)
+	}
+
+      /* Ensure there are no more overlay sections.  */
+      for ( ; i < n; i++)
+	{
+	  s = alloc_sec[i];
+	  if (s->vma < ovl_end)
 	    {
-	      info->callbacks->einfo (_("%X%P: overlay sections %A and %A "
-					"do not start at the same address.\n"),
-				      s0, s);
+	      info->callbacks->einfo (_("%X%P: overlay section %A "
+					"is not in cache area.\n"),
+				      alloc_sec[i-1]);
 	      return FALSE;
 	    }
-	  if (ovl_end < s->vma + s->size)
+	  else
+	    ovl_end = s->vma + s->size;
+	}
+    }
+  else
+    {
+      /* Look for overlapping vmas.  Any with overlap must be overlays.
+	 Count them.  Also count the number of overlay regions.  */
+      for (ovl_index = 0, num_buf = 0, i = 1; i < n; i++)
+	{
+	  s = alloc_sec[i];
+	  if (s->vma < ovl_end)
+	    {
+	      asection *s0 = alloc_sec[i - 1];
+
+	      if (spu_elf_section_data (s0)->u.o.ovl_index == 0)
+		{
+		  ++num_buf;
+		  if (strncmp (s0->name, ".ovl.init", 9) != 0)
+		    {
+		      alloc_sec[ovl_index] = s0;
+		      spu_elf_section_data (s0)->u.o.ovl_index = ++ovl_index;
+		      spu_elf_section_data (s0)->u.o.ovl_buf = num_buf;
+		    }
+		  else
+		    ovl_end = s->vma + s->size;
+		}
+	      if (strncmp (s->name, ".ovl.init", 9) != 0)
+		{
+		  alloc_sec[ovl_index] = s;
+		  spu_elf_section_data (s)->u.o.ovl_index = ++ovl_index;
+		  spu_elf_section_data (s)->u.o.ovl_buf = num_buf;
+		  if (s0->vma != s->vma)
+		    {
+		      info->callbacks->einfo (_("%X%P: overlay sections %A "
+						"and %A do not start at the "
+						"same address.\n"),
+					      s0, s);
+		      return FALSE;
+		    }
+		  if (ovl_end < s->vma + s->size)
+		    ovl_end = s->vma + s->size;
+		}
+	    }
+	  else
 	    ovl_end = s->vma + s->size;
 	}
-      else
-	ovl_end = s->vma + s->size;
     }
 
   htab->num_overlays = ovl_index;
   htab->num_buf = num_buf;
   htab->ovl_sec = alloc_sec;
-  htab->ovly_load = elf_link_hash_lookup (&htab->elf, "__ovly_load",
+  ovly_mgr_entry = "__ovly_load";
+  if (htab->params->ovly_flavour == ovly_soft_icache)
+    ovly_mgr_entry = "__icache_br_handler";
+  htab->ovly_load = elf_link_hash_lookup (&htab->elf, ovly_mgr_entry,
 					  FALSE, FALSE, FALSE);
-  htab->ovly_return = elf_link_hash_lookup (&htab->elf, "__ovly_return",
-					    FALSE, FALSE, FALSE);
+  if (htab->params->ovly_flavour != ovly_soft_icache)
+    htab->ovly_return = elf_link_hash_lookup (&htab->elf, "__ovly_return",
+					      FALSE, FALSE, FALSE);
   return ovl_index != 0;
 }
 
-#define BRSL	0x33000000
+/* Non-zero to use bra in overlay stubs rather than br.  */
+#define BRA_STUBS 0
+
+#define BRA	0x30000000
+#define BRASL	0x31000000
 #define BR	0x32000000
+#define BRSL	0x33000000
 #define NOP	0x40200000
 #define LNOP	0x00200000
 #define ILA	0x42000000
@@ -736,7 +853,15 @@ maybe_needs_stubs (asection *input_section)
 enum _stub_type
 {
   no_stub,
-  ovl_stub,
+  call_ovl_stub,
+  br000_ovl_stub,
+  br001_ovl_stub,
+  br010_ovl_stub,
+  br011_ovl_stub,
+  br100_ovl_stub,
+  br101_ovl_stub,
+  br110_ovl_stub,
+  br111_ovl_stub,
   nonovl_stub,
   stub_error
 };
@@ -756,8 +881,9 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
   struct spu_link_hash_table *htab = spu_hash_table (info);
   enum elf_spu_reloc_type r_type;
   unsigned int sym_type;
-  bfd_boolean branch;
+  bfd_boolean branch, hint, call;
   enum _stub_type ret = no_stub;
+  bfd_byte insn[4];
 
   if (sym_sec == NULL
       || sym_sec->output_section == bfd_abs_section_ptr
@@ -775,14 +901,9 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
 	 makes setjmp/longjmp between overlays work.  */
       if (strncmp (h->root.root.string, "setjmp", 6) == 0
 	  && (h->root.root.string[6] == '\0' || h->root.root.string[6] == '@'))
-	ret = ovl_stub;
+	ret = call_ovl_stub;
     }
 
-  /* Usually, symbols in non-overlay sections don't need stubs.  */
-  if (spu_elf_section_data (sym_sec->output_section)->u.o.ovl_index == 0
-      && !htab->params->non_overlay_stubs)
-    return ret;
-
   if (h != NULL)
     sym_type = h->type;
   else
@@ -790,10 +911,10 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
 
   r_type = ELF32_R_TYPE (irela->r_info);
   branch = FALSE;
+  hint = FALSE;
+  call = FALSE;
   if (r_type == R_SPU_REL16 || r_type == R_SPU_ADDR16)
     {
-      bfd_byte insn[4];
-
       if (contents == NULL)
 	{
 	  contents = insn;
@@ -806,10 +927,12 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
       else
 	contents += irela->r_offset;
 
-      if (is_branch (contents) || is_hint (contents))
+      branch = is_branch (contents);
+      hint = is_hint (contents);
+      if (branch || hint)
 	{
-	  branch = TRUE;
-	  if ((contents[0] & 0xfd) == 0x31
+	  call = (contents[0] & 0xfd) == 0x31;
+	  if (call
 	      && sym_type != STT_FUNC
 	      && contents != insn)
 	    {
@@ -840,20 +963,45 @@ needs_ovl_stub (struct elf_link_hash_entry *h,
 	}
     }
 
-  if (sym_type != STT_FUNC
-      && !branch
-      && (sym_sec->flags & SEC_CODE) == 0)
+  if ((!branch && htab->params->ovly_flavour == ovly_soft_icache)
+      || (sym_type != STT_FUNC
+	  && !(branch || hint)
+	  && (sym_sec->flags & SEC_CODE) == 0))
+    return no_stub;
+
+  /* Usually, symbols in non-overlay sections don't need stubs.  */
+  if (spu_elf_section_data (sym_sec->output_section)->u.o.ovl_index == 0
+      && !htab->params->non_overlay_stubs)
     return ret;
 
   /* A reference from some other section to a symbol in an overlay
      section needs a stub.  */
   if (spu_elf_section_data (sym_sec->output_section)->u.o.ovl_index
        != spu_elf_section_data (input_section->output_section)->u.o.ovl_index)
-    ret = ovl_stub;
+    {
+      if (call || sym_type == STT_FUNC)
+	ret = call_ovl_stub;
+      else
+	{
+	  ret = br000_ovl_stub;
+
+	  if (branch)
+	    {
+	      unsigned int lrlive = (contents[1] & 0x70) >> 4;
+	      ret += lrlive;
+	    }
+	}
+    }
 
   /* If this insn isn't a branch then we are possibly taking the
-     address of a function and passing it out somehow.  */
-  return !branch && sym_type == STT_FUNC ? nonovl_stub : ret;
+     address of a function and passing it out somehow.  Soft-icache code
+     always generates inline code to do indirect branches.  */
+  if (!(branch || hint)
+      && sym_type == STT_FUNC
+      && htab->params->ovly_flavour != ovly_soft_icache)
+    ret = nonovl_stub;
+
+  return ret;
 }
 
 static bfd_boolean
@@ -891,6 +1039,12 @@ count_stub (struct spu_link_hash_table *htab,
       head = elf_local_got_ents (ibfd) + ELF32_R_SYM (irela->r_info);
     }
 
+  if (htab->params->ovly_flavour == ovly_soft_icache)
+    {
+      htab->stub_count[ovl] += 1;
+      return TRUE;
+    }
+
   addend = 0;
   if (irela != NULL)
     addend = irela->r_addend;
@@ -963,10 +1117,19 @@ ovl_stub_size (enum _ovly_flavour ovly_flavour)
    ila $78,ovl_number
    lnop
    ila $79,target_address
-   br __ovly_load  */
+   br __ovly_load
+
+   Software icache stubs are:
+
+   .word target_index
+   .word target_ia;
+   .word lrlive_branchlocalstoreaddr;
+   brasl $75,__icache_br_handler
+   .quad xor_pattern
+*/
 
 static bfd_boolean
-build_stub (struct spu_link_hash_table *htab,


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-01-07 23:23 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-01-07 23:23 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  36c59ca86e4ed5765b3fef856ca5269084e0c20e (commit)
       via  26af839fdd5cd7143867acff0012473537ecc667 (commit)
       via  3bdc07d2a6f44070a5ef57b305a2e4c816b0a820 (commit)
       via  0bd695e5a4e79c240a67ea794cb83a7324584a8d (commit)
       via  d8e475b5ea302f7de5665e5bb54112f53d95bc75 (commit)
       via  60a61846f7a1d6129b24be2f9e6b38d3311a47b9 (commit)
       via  64f8419f28ea32be7ea4a8e99de688395995a0dd (commit)
       via  410508e4968402499d97466db958ceca88670e71 (commit)
       via  8b2893e01420fef3503f6245618a2c00675a6bc3 (commit)
       via  52490b0fd88bbeab9705526edae4ba9490b35e58 (commit)
       via  9ace673c7b26ef35fabe462a4d92a01383d7cfa0 (commit)
       via  529823bb9b73f202c72324e975016d3a2fc559ce (commit)
       via  40bd160e942a5a85f46b9e5cdc20e8e7e70b9ffe (commit)
       via  56266baf7d36c96b16217eab3a797a3fd73646c1 (commit)
       via  55a1b5a021b9a566f2dea68563c8b6c772155f20 (commit)
      from  874e2c44163b54be7e44f16797a9b7725908efa6 (commit)

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

- Log -----------------------------------------------------------------
commit 36c59ca86e4ed5765b3fef856ca5269084e0c20e
Merge: 874e2c44163b54be7e44f16797a9b7725908efa6 26af839fdd5cd7143867acff0012473537ecc667
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Thu Jan 8 00:22:27 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                         |    4 +
 bfd/config.bfd                        |    2 +-
 bfd/version.h                         |    2 +-
 gdb/ChangeLog                         |   33 +
 gdb/NEWS                              |    8 +
 gdb/cli/cli-cmds.c                    |    4 +-
 gdb/doc/ChangeLog                     |    6 +
 gdb/doc/gdb.texinfo                   |   30 +
 gdb/gdbserver/ChangeLog               |   10 +
 gdb/gdbserver/gdbreplay.c             |    2 +-
 gdb/gdbserver/linux-low.c             |   37 +-
 gdb/gdbserver/server.c                |    2 +-
 gdb/inflow.c                          |   26 +-
 gdb/linux-nat.c                       |    6 +-
 gdb/main.c                            |   12 +-
 gdb/mi/mi-cmd-env.c                   |    5 +-
 gdb/ser-tcp.c                         |  244 +++++--
 gdb/top.c                             |    3 -
 gdb/ui-file.c                         |    8 +-
 gdb/utils.c                           |   14 +-
 gdb/version.in                        |    2 +-
 opcodes/ChangeLog                     | 1231 ++---------------------------
 opcodes/{ChangeLog => ChangeLog-2008} |    5 -
 opcodes/i386-dis.c                    |  848 +++++++-------------
 opcodes/i386-gen.c                    |    6 +-
 opcodes/i386-init.h                   |    3 +-
 opcodes/i386-opc.h                    |    7 +-
 opcodes/i386-opc.tbl                  |  197 +++---
 opcodes/i386-tbl.h                    | 1423 +++++++++++++--------------------
 sim/m32c/ChangeLog                    |    4 +
 sim/m32c/m32c.opc                     |    4 +-
 sim/m32c/r8c.opc                      |    4 +-
 32 files changed, 1421 insertions(+), 2771 deletions(-)
 copy opcodes/{ChangeLog => ChangeLog-2008} (99%)

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4e2726d..c114076 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
+
+	* config.bfd: Add lm32-*-rtems*.
+
 2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
 
 	* coff-ppc.c: Add 2009 to Copyright.
diff --git a/bfd/config.bfd b/bfd/config.bfd
index 452f25d..e3d2b86 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -728,7 +728,7 @@ case "${targ}" in
     targ_defvec=bfd_elf32_iq2000_vec
     ;;
 
-  lm32-*-elf)
+  lm32-*-elf | lm32-*-rtems*)
     targ_defvec=bfd_elf32_lm32_vec
     targ_selvecs=bfd_elf32_lm32fdpic_vec
     ;;
diff --git a/bfd/version.h b/bfd/version.h
index 26c4d87..65dbb42 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20090105
+#define BFD_VERSION_DATE 20090106
 #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/gdb/ChangeLog b/gdb/ChangeLog
index b959e9a..8c93b4a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,36 @@
+2009-01-06  Jim Blandy  <jimb@red-bean.com>
+
+	Check return values of functions declared with warn_unused_result
+	attribute in GLIBC 2.8.
+	* cli/cli-cmds.c (pwd_command): Check return value from getcwd.
+	* inflow.c (check_syscall): New function.
+	(new_tty): Use check_syscall to check return values from open and dup.
+	* linux-nat.c (linux_nat_info_proc_cmd): Check return value from fgets.
+	* main.c (captured_main): Call cwd after setting up gdb_stderr;
+	check for errors from getcwd.
+	* mi/mi-cmd-env.c (mi_cmd_env_pwd): Check return value from getcwd.
+	* ui-file.c (stdio_file_write): Ignore return value from fwrite.
+	(stdio_file_fputs): Same.
+	* utils.c (internal_vproblem): abort if last-ditch error message
+	write fails.
+
+	* top.c (gdb_init): Don't set the current directory here; that's
+	already been done in captured_main.
+
+2009-01-06  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* ser-tcp.c: Adjust includes.
+	(tcp_set_cmdlist, tcp_show_cmdlist): Declare.
+	(tcp_auto_retry, tcp_retry_limit): Declare.
+	(TIMEOUT): Remove, in favor of tcp_retry_limit.
+	(POLL_INTERVAL): Increase to 5, in favor of backoff logic.
+	(wait_for_connect): New function.
+	(net_open): Use it.  Add auto-retry logic.
+	(set_tcp_cmd, show_tcp_cmd): New functions.
+	(_initialize_ser_tcp): Initialize new "set/show tcp auto-retry"
+	and "set/show tcp connect-timeout" commands.
+	* NEWS: Document new commands.
+
 2009-01-05  Tom Tromey  <tromey@redhat.com>
 
 	* python/python-internal.h (Py_ssize_t): Define as int.
diff --git a/gdb/NEWS b/gdb/NEWS
index 415a4be..4532f9e 100644
--- a/gdb/NEWS
+++ b/gdb/NEWS
@@ -169,6 +169,14 @@ set target-async
   with GDB while the target is running.  "show target-async" displays the
   current state of asynchronous execution of the target.
 
+set tcp auto-retry (on|off)
+show tcp auto-retry
+set tcp connect-timeout
+show tcp connect-timeout
+  These commands allow GDB to retry failed TCP connections to a remote stub
+  with a specified timeout period; this is useful if the stub is launched
+  in parallel with GDB but may not be ready to accept connections immediately.
+
 macro define
 macro list
 macro undef
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c
index de35e1a..b391e30 100644
--- a/gdb/cli/cli-cmds.c
+++ b/gdb/cli/cli-cmds.c
@@ -320,7 +320,9 @@ pwd_command (char *args, int from_tty)
 {
   if (args)
     error (_("The \"pwd\" command does not take an argument: %s"), args);
-  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+  if (! getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)))
+    error (_("Error finding name of working directory: %s"),
+           safe_strerror (errno));
 
   if (strcmp (gdb_dirbuf, current_directory) != 0)
     printf_unfiltered (_("Working directory %s\n (canonically %s).\n"),
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b79252c..dfe9526 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,9 @@
+2009-01-06  Sandra Loosemore  <sandra@codesourcery.com>
+
+	* gdb.texinfo (Remote Configuration): Document new
+	"set/show tcp auto-retry" and "set/show tcp connect-timeout"
+	commands.
+
 2008-12-28  Pedro Alves  <pedro@codesourcery.com>
 
 	* gdbint.texinfo (gdbarch_cannot_fetch_register): Don't mention
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 6ef124c..f6b7a1c 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -14206,6 +14206,36 @@ Select the file used for @code{run} with @code{target
 extended-remote}.  This should be set to a filename valid on the
 target system.  If it is not set, the target will use a default
 filename (e.g.@: the last program run).
+
+@kindex set tcp
+@kindex show tcp
+@item set tcp auto-retry on
+@cindex auto-retry, for remote TCP target
+Enable auto-retry for remote TCP connections.  This is useful if the remote
+debugging agent is launched in parallel with @value{GDBN}; there is a race
+condition because the agent may not become ready to accept the connection
+before @value{GDBN} attempts to connect.  When auto-retry is
+enabled, if the initial attempt to connect fails, @value{GDBN} reattempts
+to establish the connection using the timeout specified by 
+@code{set tcp connect-timeout}.
+
+@item set tcp auto-retry off
+Do not auto-retry failed TCP connections.
+
+@item show tcp auto-retry
+Show the current auto-retry setting.
+
+@item set tcp connect-timeout @var{seconds}
+@cindex connection timeout, for remote TCP target
+@cindex timeout, for remote target connection
+Set the timeout for establishing a TCP connection to the remote target to
+@var{seconds}.  The timeout affects both polling to retry failed connections 
+(enabled by @code{set tcp auto-retry on}) and waiting for connections
+that are merely slow to complete, and represents an approximate cumulative
+value.
+
+@item show tcp connect-timeout
+Show the current connection timeout setting.
 @end table
 
 @cindex remote packets, enabling and disabling
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index 7c4d073..b745986 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,3 +1,13 @@
+2009-01-06  Joel Brobecker  <brobecker@adacore.com>
+
+	* gdbreplay.c (gdbreplay_version): Update copyright year.
+	* server.c (gdbserver_version): Likewise.
+
+2009-01-05  Doug Evans  <dje@google.com>
+
+	* linux-low.c (linux_attach_lwp): Add some comments/fixmes.
+	(handle_extended_wait): Improve comment.
+
 2008-12-13  Doug Evans  <dje@google.com>
 
 	* utils.c (xmalloc,xcalloc,xstrdup): New fns.
diff --git a/gdb/gdbserver/gdbreplay.c b/gdb/gdbserver/gdbreplay.c
index 9bb9e0d..aec45a5 100644
--- a/gdb/gdbserver/gdbreplay.c
+++ b/gdb/gdbserver/gdbreplay.c
@@ -395,7 +395,7 @@ static void
 gdbreplay_version (void)
 {
   printf ("GNU gdbreplay %s%s\n"
-	  "Copyright (C) 2008 Free Software Foundation, Inc.\n"
+	  "Copyright (C) 2009 Free Software Foundation, Inc.\n"
 	  "gdbreplay is free software, covered by the GNU General Public License.\n"
 	  "This gdbreplay was configured as \"%s\"\n",
 	  PKGVERSION, version, host_name);
diff --git a/gdb/gdbserver/linux-low.c b/gdb/gdbserver/linux-low.c
index c8b07eb..3fa06ec 100644
--- a/gdb/gdbserver/linux-low.c
+++ b/gdb/gdbserver/linux-low.c
@@ -180,7 +180,7 @@ handle_extended_wait (struct process_info *event_child, int wstat)
 
       /* Normally we will get the pending SIGSTOP.  But in some cases
 	 we might get another signal delivered to the group first.
-         If we do, be sure not to lose it.  */
+	 If we do get another signal, be sure not to lose it.  */
       if (WSTOPSIG (status) == SIGSTOP)
 	{
 	  if (stopping_threads)
@@ -326,6 +326,8 @@ linux_attach_lwp (unsigned long pid)
 	       strerror (errno), errno);
     }
 
+  /* FIXME: This intermittently fails.
+     We need to wait for SIGSTOP first.  */
   ptrace (PTRACE_SETOPTIONS, pid, 0, PTRACE_O_TRACECLONE);
 
   new_process = (struct process_info *) add_process (pid);
@@ -333,15 +335,36 @@ linux_attach_lwp (unsigned long pid)
   new_thread_notify (thread_id_to_gdb_id (new_process->lwpid));
 
   /* The next time we wait for this LWP we'll see a SIGSTOP as PTRACE_ATTACH
-     brings it to a halt.  We should ignore that SIGSTOP and resume the process
-     (unless this is the first process, in which case the flag will be cleared
-     in linux_attach).
+     brings it to a halt.
+
+     There are several cases to consider here:
+
+     1) gdbserver has already attached to the process and is being notified
+        of a new thread that is being created.
+        In this case we should ignore that SIGSTOP and resume the process.
+        This is handled below by setting stop_expected = 1.
+
+     2) This is the first thread (the process thread), and we're attaching
+        to it via attach_inferior.
+        In this case we want the process thread to stop.
+        This is handled by having linux_attach clear stop_expected after
+        we return.
+        ??? If the process already has several threads we leave the other
+        threads running.
+
+     3) GDB is connecting to gdbserver and is requesting an enumeration of all
+        existing threads.
+        In this case we want the thread to stop.
+        FIXME: This case is currently not properly handled.
+        We should wait for the SIGSTOP but don't.  Things work apparently
+        because enough time passes between when we ptrace (ATTACH) and when
+        gdb makes the next ptrace call on the thread.
 
      On the other hand, if we are currently trying to stop all threads, we
      should treat the new thread as if we had sent it a SIGSTOP.  This works
-     because we are guaranteed that add_process added us to the end of the
-     list, and so the new thread has not yet reached wait_for_sigstop (but
-     will).  */
+     because we are guaranteed that the add_process call above added us to the
+     end of the list, and so the new thread has not yet reached
+     wait_for_sigstop (but will).  */
   if (! stopping_threads)
     new_process->stop_expected = 1;
 }
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index 6e13657..f2e9b05 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -1255,7 +1255,7 @@ static void
 gdbserver_version (void)
 {
   printf ("GNU gdbserver %s%s\n"
-	  "Copyright (C) 2007 Free Software Foundation, Inc.\n"
+	  "Copyright (C) 2009 Free Software Foundation, Inc.\n"
 	  "gdbserver is free software, covered by the GNU General Public License.\n"
 	  "This gdbserver was configured as \"%s\"\n",
 	  PKGVERSION, version, host_name);
diff --git a/gdb/inflow.c b/gdb/inflow.c
index a7cb25f..972b52e 100644
--- a/gdb/inflow.c
+++ b/gdb/inflow.c
@@ -523,6 +523,20 @@ new_tty_prefork (const char *ttyname)
   inferior_thisrun_terminal = ttyname;
 }
 
+
+/* If RESULT, assumed to be the return value from a system call, is
+   negative, print the error message indicated by errno and exit.
+   MSG should identify the operation that failed.  */
+static void
+check_syscall (const char *msg, int result)
+{
+  if (result < 0)
+    {
+      print_sys_errmsg (msg, errno);
+      _exit (1);
+    }
+}
+
 void
 new_tty (void)
 {
@@ -549,27 +563,23 @@ new_tty (void)
 
   /* Now open the specified new terminal.  */
   tty = open (inferior_thisrun_terminal, O_RDWR | O_NOCTTY);
-  if (tty == -1)
-    {
-      print_sys_errmsg (inferior_thisrun_terminal, errno);
-      _exit (1);
-    }
+  check_syscall (inferior_thisrun_terminal, tty);
 
   /* Avoid use of dup2; doesn't exist on all systems.  */
   if (tty != 0)
     {
       close (0);
-      dup (tty);
+      check_syscall ("dup'ing tty into fd 0", dup (tty));
     }
   if (tty != 1)
     {
       close (1);
-      dup (tty);
+      check_syscall ("dup'ing tty into fd 1", dup (tty));
     }
   if (tty != 2)
     {
       close (2);
-      dup (tty);
+      check_syscall ("dup'ing tty into fd 2", dup (tty));
     }
 
 #ifdef TIOCSCTTY
diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c
index dfa7ef2..9a7e39c 100644
--- a/gdb/linux-nat.c
+++ b/gdb/linux-nat.c
@@ -3684,8 +3684,10 @@ linux_nat_info_proc_cmd (char *args, int from_tty)
       if ((procfile = fopen (fname1, "r")) != NULL)
 	{
 	  struct cleanup *cleanup = make_cleanup_fclose (procfile);
-	  fgets (buffer, sizeof (buffer), procfile);
-	  printf_filtered ("cmdline = '%s'\n", buffer);
+          if (fgets (buffer, sizeof (buffer), procfile))
+            printf_filtered ("cmdline = '%s'\n", buffer);
+          else
+            warning (_("unable to read '%s'"), fname1);
 	  do_cleanups (cleanup);
 	}
       else
diff --git a/gdb/main.c b/gdb/main.c
index ccd5e46..0eb9596 100644
--- a/gdb/main.c
+++ b/gdb/main.c
@@ -188,9 +188,6 @@ captured_main (void *data)
   line[0] = '\0';		/* Terminate saved (now empty) cmd line */
   instream = stdin;
 
-  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
-  current_directory = gdb_dirbuf;
-
   gdb_stdout = stdio_fileopen (stdout);
   gdb_stderr = stdio_fileopen (stderr);
   gdb_stdlog = gdb_stderr;	/* for moment */
@@ -199,6 +196,15 @@ captured_main (void *data)
   gdb_stdtargerr = gdb_stderr;	/* for moment */
   gdb_stdtargin = gdb_stdin;	/* for moment */
 
+  if (! getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)))
+    /* Don't use *_filtered or warning() (which relies on
+       current_target) until after initialize_all_files(). */
+    fprintf_unfiltered (gdb_stderr,
+                        _("%s: warning: error finding working directory: %s\n"),
+                        argv[0], safe_strerror (errno));
+    
+  current_directory = gdb_dirbuf;
+
   /* Set the sysroot path.  */
 #ifdef TARGET_SYSTEM_ROOT_RELOCATABLE
   gdb_sysroot = make_relative_prefix (argv[0], BINDIR, TARGET_SYSTEM_ROOT);
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c
index b40fac4..cbc9bdb 100644
--- a/gdb/mi/mi-cmd-env.c
+++ b/gdb/mi/mi-cmd-env.c
@@ -79,7 +79,10 @@ mi_cmd_env_pwd (char *command, char **argv, int argc)
      
   /* Otherwise the mi level is 2 or higher.  */
 
-  getcwd (gdb_dirbuf, sizeof (gdb_dirbuf));
+  if (! getcwd (gdb_dirbuf, sizeof (gdb_dirbuf)))
+    error (_("mi_cmd_env_pwd: error finding name of working directory: %s"),
+           safe_strerror (errno));
+    
   ui_out_field_string (uiout, "cwd", gdb_dirbuf);
 }
 
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index e3cf970..7792133 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -22,6 +22,9 @@
 #include "serial.h"
 #include "ser-base.h"
 #include "ser-tcp.h"
+#include "gdbcmd.h"
+#include "cli/cli-decode.h"
+#include "cli/cli-setshow.h"
 
 #include <sys/types.h>
 
@@ -49,6 +52,7 @@
 
 #include <signal.h>
 #include "gdb_string.h"
+#include "gdb_select.h"
 
 #ifndef HAVE_SOCKLEN_T
 typedef int socklen_t;
@@ -56,10 +60,93 @@ typedef int socklen_t;
 
 void _initialize_ser_tcp (void);
 
-/* seconds to wait for connect */
-#define TIMEOUT 15
+/* For "set tcp" and "show tcp".  */
+
+static struct cmd_list_element *tcp_set_cmdlist;
+static struct cmd_list_element *tcp_show_cmdlist;
+
+/* Whether to auto-retry refused connections.  */
+
+static int tcp_auto_retry = 1;
+
+/* Timeout period for connections, in seconds.  */
+
+static int tcp_retry_limit = 15;
+
 /* how many times per second to poll deprecated_ui_loop_hook */
-#define POLL_INTERVAL 2
+
+#define POLL_INTERVAL 5
+
+/* Helper function to wait a while.  If SCB is non-null, wait on its
+   file descriptor.  Otherwise just wait on a timeout, updating *POLLS.
+   Returns -1 on timeout or interrupt, otherwise the value of select.  */
+
+static int
+wait_for_connect (struct serial *scb, int *polls)
+{
+  struct timeval t;
+  int n;
+
+  /* While we wait for the connect to complete, 
+     poll the UI so it can update or the user can 
+     interrupt.  */
+  if (deprecated_ui_loop_hook && deprecated_ui_loop_hook (0))
+    {
+      errno = EINTR;
+      return -1;
+    }
+
+  /* Check for timeout.  */
+  if (*polls > tcp_retry_limit * POLL_INTERVAL)
+    {
+      errno = ETIMEDOUT;
+      return -1;
+    }
+
+  /* Back off to polling once per second after the first POLL_INTERVAL
+     polls.  */
+  if (*polls < POLL_INTERVAL)
+    {
+      t.tv_sec = 0;
+      t.tv_usec = 1000000 / POLL_INTERVAL;
+    }
+  else
+    {
+      t.tv_sec = 1;
+      t.tv_usec = 0;
+    }
+
+  if (scb)
+    {
+      fd_set rset, wset, eset;
+      FD_ZERO (&rset);
+      FD_SET (scb->fd, &rset);
+      wset = rset;
+      eset = rset;
+	  
+      /* POSIX systems return connection success or failure by signalling
+	 wset.  Windows systems return success in wset and failure in
+	 eset.
+     
+	 We must call select here, rather than gdb_select, because
+	 the serial structure has not yet been initialized - the
+	 MinGW select wrapper will not know that this FD refers
+	 to a socket.  */
+      n = select (scb->fd + 1, &rset, &wset, &eset, &t);
+    }
+  else
+    /* Use gdb_select here, since we have no file descriptors, and on
+       Windows, plain select doesn't work in that case.  */


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2009-01-06 16:46 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2009-01-06 16:46 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  874e2c44163b54be7e44f16797a9b7725908efa6 (commit)
       via  1a00a723098867f4667214ed1a22e2409b347430 (commit)
       via  88f1dd9c85bc39ec239e934981a0c23416c87f5e (commit)
       via  66b81b741e8dcedacd8e9c7d9b84b4832db4371b (commit)
       via  fa9f573f5f4e66b94da0fdf57b531758f64ff30f (commit)
       via  6d5fb61b435f84ecb2b6e21fec81d74351702c36 (commit)
       via  22d2de81dd286b494be9eec849ad2d6781cce05d (commit)
       via  cff629a21ace01442337edf1732569826b79c26b (commit)
       via  9b2942bdea1168f8f8f756e3a2540863f77e6545 (commit)
       via  e45ef9f5fbca215885ee4615db8220f78053a6e6 (commit)
       via  c238946de245fde384143eb53c8283898d9820a1 (commit)
       via  c8008a3a9333bf163dd17118a2b1744cbccd65ba (commit)
       via  32bb8e98c77f5debb5d985fd6db3f9b98319bf91 (commit)
       via  00c60af8fca395ecc099faaf71d83b35b2b75afa (commit)
       via  abe1d9cae06af094df3f5621ee3898e043a1235d (commit)
       via  3b96de4bb56886779fd347c90a64403f07e23c8e (commit)
       via  407389768fcdd1021a2f08b9527ff019acb31511 (commit)
       via  536ecd4bf38dad5bcc80dba01306464ff4de5662 (commit)
       via  f524bd049d36cc3c804b9d41d29c5a274fddf3ee (commit)
       via  e8bc0781045ad12dfe9e4dceddbc3c74b9734766 (commit)
       via  4cf49b0ee45f02b14bc3580fc8365de26e5fd987 (commit)
       via  b930c6c689d1faaefc9ea23b62b3122252ffa6d2 (commit)
       via  74d75581a61c1f96fe0646660eda0f2ef3a65433 (commit)
       via  bb09a377b930d0386f37f9534878e304e6435470 (commit)
       via  70375f2d1a13b1bc3d6f6ccd6501bae16f3abbbe (commit)
       via  c5d46f224b4ddbf4bcb1c06b4e9d1ba098ca7003 (commit)
       via  30b1eb0907cf4bcfe6bbc5bf057ea2368a3020f7 (commit)
       via  74611eb661a5381398bb480564b653012068010c (commit)
       via  52276f9305bdc08a6590d7a7dbd62fa025aceb0b (commit)
       via  7db3c1577e425bcc9178f83aca6a605b1bb7d678 (commit)
       via  a521d292d13ae4d2cb34306f8a37559a2f12ce49 (commit)
       via  f65acd4cd8254bfdcd3c65c3887a5b545b87e137 (commit)
       via  3d91cd60cbe0b81dfe51a1ad6afe635fd4e96a0d (commit)
       via  9854366264dce0ea8a6635043a731e4259c75196 (commit)
       via  b77f28ce0969b74e80bf00fc364b57a4bd2f43fa (commit)
       via  8877c09eea2fef8be9ec8fd2b8ef8e238a4eeaab (commit)
       via  10174d3f99d4d5ffd2fe549da8e9ad2bc75b2613 (commit)
       via  45c9ce080da075aa6022a1851b144af1459697b1 (commit)
       via  79f800938cebcc8e5488c2d618dc2ce9f677c956 (commit)
       via  1f1c171507f2a83ac903a3c7b42c06180f241ef1 (commit)
       via  c7f3603f86495aefac736379048f9722a72da9c3 (commit)
       via  43580021e43cbab71709ac8054e24f785335aac7 (commit)
       via  3d44604e97364cdac4e81da662a10719fea448b9 (commit)
       via  65e6adb2fcd1969fe4f6ae17f4e93a252226d996 (commit)
       via  c95b427acde5a54d8eb45be5fd023b03698889db (commit)
       via  09ccd0369ae37ec954af66a5184f281639e9b119 (commit)
       via  d9bb996bf4fee472c21b16d6421022d1613a50c4 (commit)
       via  79aafa5adb8c466e868dad9e223a43fe837f7dd6 (commit)
       via  abda068e1a6915867f7d2bb6b6d96e1b634b835b (commit)
       via  57213b888e71a2730d1fea61a09856747b4e57c5 (commit)
       via  8b5eb522197e768b2fa5d3504e69ad8dcbe959c0 (commit)
       via  0623a2ddf1573a447f2d3ac598ee70b302b0be57 (commit)
       via  ba73f95ffd2aa093c698fa1859951ff4b64e0658 (commit)
       via  9cea6537a7f5354dfbaf1cb8b59a78f9aa6aba67 (commit)
       via  82c1b7421987796ce18cd8c7a8acb396a352c114 (commit)
       via  9407cf89df392ce9123d2272819f176d95d4950b (commit)
       via  ac3d7cdd9d9c32b5503b9e93efbfacba2aa669da (commit)
       via  027a0a007cabf6cb23b35c53f5cbc172904d84ba (commit)
      from  f4603aa50b6cd6f4ad07a9980eb3d722e055b327 (commit)

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

- Log -----------------------------------------------------------------
commit 874e2c44163b54be7e44f16797a9b7725908efa6
Merge: f4603aa50b6cd6f4ad07a9980eb3d722e055b327 1a00a723098867f4667214ed1a22e2409b347430
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Tue Jan 6 17:33:12 2009 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                                      | 3387 +------
 bfd/ChangeLog-2008                                 | 3386 ++++++
 bfd/coff-ppc.c                                     |    8 +-
 bfd/coff-z80.c                                     |    2 +-
 bfd/elf32-cris.c                                   |   26 +-
 bfd/elflink.c                                      |  116 +-
 bfd/version.h                                      |    2 +-
 gdb/ChangeLog                                      |11565 +-------------------
 gdb/ChangeLog-2008                                 |11610 ++++++++++++++++++++
 gdb/MAINTAINERS                                    |    2 +-
 gdb/Makefile.in                                    |    2 +-
 gdb/acinclude.m4                                   |    3 +-
 gdb/ada-exp.y                                      |    2 +-
 gdb/ada-lang.h                                     |    2 +-
 gdb/ada-lex.l                                      |    2 +-
 gdb/ada-tasks.c                                    |    4 +-
 gdb/ada-typeprint.c                                |    2 +-
 gdb/ada-valprint.c                                 |    2 +-
 gdb/addrmap.c                                      |    2 +-
 gdb/addrmap.h                                      |    4 +-
 gdb/aix-thread.c                                   |    3 +-
 gdb/alpha-linux-nat.c                              |    2 +-
 gdb/alpha-linux-tdep.c                             |    2 +-
 gdb/alpha-mdebug-tdep.c                            |    2 +-
 gdb/alpha-nat.c                                    |    4 +-
 gdb/alpha-osf1-tdep.c                              |    2 +-
 gdb/alpha-tdep.c                                   |    2 +-
 gdb/alpha-tdep.h                                   |    2 +-
 gdb/alphabsd-nat.c                                 |    2 +-
 gdb/alphabsd-tdep.c                                |    2 +-
 gdb/alphabsd-tdep.h                                |    2 +-
 gdb/alphafbsd-tdep.c                               |    2 +-
 gdb/alphanbsd-tdep.c                               |    2 +-
 gdb/alphaobsd-tdep.c                               |    2 +-
 gdb/amd64-linux-nat.c                              |    2 +-
 gdb/amd64-linux-tdep.c                             |    2 +-
 gdb/amd64-linux-tdep.h                             |    2 +-
 gdb/amd64-nat.c                                    |    2 +-
 gdb/amd64-nat.h                                    |    2 +-
 gdb/amd64-sol2-tdep.c                              |    2 +-
 gdb/amd64-tdep.c                                   |    2 +-
 gdb/amd64-tdep.h                                   |    3 +-
 gdb/amd64bsd-nat.c                                 |    2 +-
 gdb/amd64fbsd-nat.c                                |    2 +-
 gdb/amd64fbsd-tdep.c                               |    3 +-
 gdb/amd64nbsd-nat.c                                |    2 +-
 gdb/amd64nbsd-tdep.c                               |    2 +-
 gdb/amd64obsd-nat.c                                |    2 +-
 gdb/amd64obsd-tdep.c                               |    3 +-
 gdb/annotate.c                                     |    2 +-
 gdb/annotate.h                                     |    2 +-
 gdb/arch-utils.c                                   |    2 +-
 gdb/arch-utils.h                                   |    2 +-
 gdb/arm-linux-nat.c                                |    2 +-
 gdb/arm-linux-tdep.c                               |    4 +-
 gdb/arm-linux-tdep.h                               |    2 +-
 gdb/arm-tdep.c                                     |    2 +-
 gdb/arm-tdep.h                                     |    2 +-
 gdb/arm-wince-tdep.c                               |    2 +-
 gdb/armbsd-tdep.c                                  |    2 +-
 gdb/armnbsd-nat.c                                  |    2 +-
 gdb/armnbsd-tdep.c                                 |    2 +-
 gdb/armobsd-tdep.c                                 |    2 +-
 gdb/auxv.c                                         |    3 +-
 gdb/auxv.h                                         |    3 +-
 gdb/avr-tdep.c                                     |    2 +-
 gdb/ax-gdb.c                                       |    2 +-
 gdb/ax-gdb.h                                       |    3 +-
 gdb/ax-general.c                                   |    3 +-
 gdb/ax.h                                           |    3 +-
 gdb/bcache.c                                       |    2 +-
 gdb/bcache.h                                       |    2 +-
 gdb/bfd-target.c                                   |    2 +-
 gdb/bfd-target.h                                   |    2 +-
 gdb/block.c                                        |    2 +-
 gdb/block.h                                        |    2 +-
 gdb/blockframe.c                                   |    2 +-
 gdb/breakpoint.c                                   |   26 +-
 gdb/breakpoint.h                                   |    2 +-
 gdb/bsd-kvm.c                                      |    2 +-
 gdb/bsd-kvm.h                                      |    2 +-
 gdb/bsd-uthread.c                                  |    2 +-
 gdb/bsd-uthread.h                                  |    2 +-
 gdb/buildsym.c                                     |    2 +-
 gdb/buildsym.h                                     |    2 +-
 gdb/c-exp.y                                        |    2 +-
 gdb/c-lang.c                                       |    2 +-
 gdb/c-lang.h                                       |    2 +-
 gdb/c-typeprint.c                                  |    2 +-
 gdb/c-valprint.c                                   |    2 +-
 gdb/call-cmds.h                                    |    3 +-
 gdb/charset.c                                      |    2 +-
 gdb/charset.h                                      |    2 +-
 gdb/cli-out.c                                      |    2 +-
 gdb/cli-out.h                                      |    2 +-
 gdb/cli/cli-cmds.c                                 |    2 +-
 gdb/cli/cli-cmds.h                                 |    2 +-
 gdb/cli/cli-decode.c                               |    2 +-
 gdb/cli/cli-decode.h                               |    4 +-
 gdb/cli/cli-dump.c                                 |    2 +-
 gdb/cli/cli-dump.h                                 |    2 +-
 gdb/cli/cli-interp.c                               |    2 +-
 gdb/cli/cli-logging.c                              |    2 +-
 gdb/cli/cli-script.c                               |    4 +-
 gdb/cli/cli-script.h                               |    2 +-
 gdb/cli/cli-setshow.c                              |    2 +-
 gdb/cli/cli-setshow.h                              |    2 +-
 gdb/coff-pe-read.c                                 |    2 +-
 gdb/coff-pe-read.h                                 |    2 +-
 gdb/coffread.c                                     |    2 +-
 gdb/command.h                                      |    2 +-
 gdb/complaints.c                                   |    2 +-
 gdb/complaints.h                                   |    2 +-
 gdb/completer.c                                    |    2 +-
 gdb/completer.h                                    |    2 +-
 gdb/config/alpha/nm-osf3.h                         |    2 +-
 gdb/config/djgpp/djconfig.sh                       |    2 +-
 gdb/config/djgpp/fnchange.lst                      |    1 +
 gdb/config/i386/nm-cygwin.h                        |    2 +-
 gdb/config/i386/nm-fbsd.h                          |    2 +-
 gdb/config/i386/nm-go32.h                          |    2 +-
 gdb/config/i386/nm-i386.h                          |    2 +-
 gdb/config/i386/nm-i386gnu.h                       |    3 +-
 gdb/config/i386/nm-i386sol2.h                      |    2 +-
 gdb/config/i386/nm-linux.h                         |    3 +-
 gdb/config/i386/nm-linux64.h                       |    2 +-
 gdb/config/mips/nm-irix5.h                         |    2 +-
 gdb/config/nm-linux.h                              |    2 +-
 gdb/config/nm-nto.h                                |    2 +-
 gdb/config/rs6000/nm-rs6000.h                      |    2 +-
 gdb/config/sparc/nm-sol2.h                         |    2 +-
 gdb/copyright.sh                                   |    2 +-
 gdb/core-regset.c                                  |    4 +-
 gdb/corefile.c                                     |   31 +-
 gdb/corelow.c                                      |    2 +-
 gdb/cp-abi.c                                       |    2 +-
 gdb/cp-abi.h                                       |    3 +-
 gdb/cp-name-parser.y                               |    3 +-
 gdb/cp-namespace.c                                 |    2 +-
 gdb/cp-support.c                                   |    2 +-
 gdb/cp-support.h                                   |    2 +-
 gdb/cp-valprint.c                                  |    2 +-
 gdb/cris-tdep.c                                    |    2 +-
 gdb/darwin-nat-info.c                              |    2 +-
 gdb/darwin-nat.c                                   |    2 +-
 gdb/darwin-nat.h                                   |    2 +-
 gdb/dbug-rom.c                                     |    2 +-
 gdb/dcache.c                                       |    2 +-
 gdb/dcache.h                                       |    2 +-
 gdb/dec-thread.c                                   |    2 +-
 gdb/defs.h                                         |    2 +-
 gdb/demangle.c                                     |    2 +-
 gdb/dfp.c                                          |    2 +-
 gdb/dfp.h                                          |    2 +-
 gdb/dictionary.c                                   |    2 +-
 gdb/dictionary.h                                   |    2 +-
 gdb/dink32-rom.c                                   |    2 +-
 gdb/disasm.c                                       |    2 +-
 gdb/disasm.h                                       |    2 +-
 gdb/doc/ChangeLog                                  |   10 +
 gdb/doc/Makefile.in                                |    2 +-
 gdb/doc/gdbint.texinfo                             |   39 +-
 gdb/doublest.c                                     |    2 +-
 gdb/doublest.h                                     |    2 +-
 gdb/dsrec.c                                        |    4 +-
 gdb/dummy-frame.c                                  |    2 +-
 gdb/dummy-frame.h                                  |    2 +-
 gdb/dwarf2-frame.c                                 |    3 +-
 gdb/dwarf2-frame.h                                 |    3 +-
 gdb/dwarf2expr.c                                   |    2 +-
 gdb/dwarf2expr.h                                   |    2 +-
 gdb/dwarf2loc.c                                    |    2 +-
 gdb/dwarf2loc.h                                    |    2 +-
 gdb/dwarf2read.c                                   |    3 +-
 gdb/elfread.c                                      |    2 +-
 gdb/environ.c                                      |    2 +-
 gdb/environ.h                                      |    2 +-
 gdb/eval.c                                         |    4 +-
 gdb/event-loop.c                                   |    2 +-
 gdb/event-loop.h                                   |    2 +-
 gdb/event-top.c                                    |    2 +-
 gdb/event-top.h                                    |    3 +-
 gdb/exceptions.c                                   |    4 +-
 gdb/exceptions.h                                   |    7 +-
 gdb/exec.c                                         |    2 +-
 gdb/exec.h                                         |    2 +-
 gdb/expprint.c                                     |    2 +-
 gdb/expression.h                                   |    2 +-
 gdb/f-exp.y                                        |    3 +-
 gdb/f-lang.c                                       |    2 +-
 gdb/f-lang.h                                       |    2 +-
 gdb/f-typeprint.c                                  |    2 +-
 gdb/f-valprint.c                                   |    2 +-
 gdb/fbsd-nat.c                                     |    3 +-
 gdb/fbsd-nat.h                                     |    2 +-
 gdb/features/Makefile                              |    2 +-
 gdb/features/arm-core.xml                          |    2 +-
 gdb/features/arm-fpa.xml                           |    2 +-
 gdb/features/arm-with-iwmmxt.xml                   |    2 +-
 gdb/features/feature_to_c.sh                       |    2 +-
 gdb/features/gdb-target.dtd                        |    2 +-
 gdb/features/library-list.dtd                      |    2 +-
 gdb/features/mips-cp0.xml                          |    2 +-
 gdb/features/mips-cpu.xml                          |    2 +-
 gdb/features/mips-fpu.xml                          |    2 +-
 gdb/features/mips-linux.xml                        |    2 +-
 gdb/features/mips64-cp0.xml                        |    2 +-
 gdb/features/mips64-cpu.xml                        |    2 +-
 gdb/features/mips64-fpu.xml                        |    2 +-
 gdb/features/mips64-linux.xml                      |    2 +-
 gdb/features/osdata.dtd                            |    2 +-
 gdb/features/rs6000/power-altivec.xml              |    2 +-
 gdb/features/rs6000/power-core.xml                 |    2 +-
 gdb/features/rs6000/power-fpu-isa205.xml           |    2 +-
 gdb/features/rs6000/power-fpu.xml                  |    2 +-
 gdb/features/rs6000/power-linux.xml                |    2 +-
 gdb/features/rs6000/power-oea.xml                  |    2 +-
 gdb/features/rs6000/power-spe.xml                  |    2 +-
 gdb/features/rs6000/power-vsx.xml                  |    2 +-
 gdb/features/rs6000/power64-core.xml               |    2 +-
 gdb/features/rs6000/power64-linux.xml              |    2 +-
 gdb/features/rs6000/powerpc-32.xml                 |    2 +-
 gdb/features/rs6000/powerpc-32l.xml                |    2 +-
 gdb/features/rs6000/powerpc-403.xml                |    2 +-
 gdb/features/rs6000/powerpc-403gc.xml              |    2 +-
 gdb/features/rs6000/powerpc-505.xml                |    2 +-
 gdb/features/rs6000/powerpc-601.xml                |    2 +-
 gdb/features/rs6000/powerpc-602.xml                |    2 +-
 gdb/features/rs6000/powerpc-603.xml                |    2 +-
 gdb/features/rs6000/powerpc-604.xml                |    2 +-
 gdb/features/rs6000/powerpc-64.xml                 |    2 +-
 gdb/features/rs6000/powerpc-64l.xml                |    2 +-
 gdb/features/rs6000/powerpc-7400.xml               |    2 +-
 gdb/features/rs6000/powerpc-750.xml                |    2 +-
 gdb/features/rs6000/powerpc-860.xml                |    2 +-
 gdb/features/rs6000/powerpc-altivec32.xml          |    2 +-
 gdb/features/rs6000/powerpc-altivec32l.xml         |    2 +-
 gdb/features/rs6000/powerpc-altivec64.xml          |    2 +-
 gdb/features/rs6000/powerpc-altivec64l.xml         |    2 +-
 gdb/features/rs6000/powerpc-e500.xml               |    2 +-
 gdb/features/rs6000/powerpc-e500l.xml              |    2 +-
 gdb/features/rs6000/powerpc-isa205-32l.xml         |    2 +-
 gdb/features/rs6000/powerpc-isa205-64l.xml         |    2 +-
 gdb/features/rs6000/powerpc-isa205-altivec32l.xml  |    2 +-
 gdb/features/rs6000/powerpc-isa205-altivec64l.xml  |    2 +-
 gdb/features/rs6000/powerpc-isa205-vsx32l.xml      |    2 +-
 gdb/features/rs6000/powerpc-isa205-vsx64l.xml      |    2 +-
 gdb/features/rs6000/powerpc-vsx32.xml              |    2 +-
 gdb/features/rs6000/powerpc-vsx32l.xml             |    2 +-
 gdb/features/rs6000/powerpc-vsx64.xml              |    2 +-
 gdb/features/rs6000/powerpc-vsx64l.xml             |    2 +-
 gdb/features/rs6000/rs6000.xml                     |    2 +-
 gdb/features/xinclude.dtd                          |    2 +-
 gdb/features/xscale-iwmmxt.xml                     |    2 +-
 gdb/findcmd.c                                      |    2 +-
 gdb/findvar.c                                      |    2 +-
 gdb/fork-child.c                                   |    2 +-
 gdb/frame-base.c                                   |    2 +-
 gdb/frame-base.h                                   |    2 +-
 gdb/frame-unwind.c                                 |    2 +-
 gdb/frame-unwind.h                                 |    2 +-
 gdb/frame.c                                        |    2 +-
 gdb/frame.h                                        |    2 +-
 gdb/frv-linux-tdep.c                               |    2 +-
 gdb/frv-tdep.c                                     |    2 +-
 gdb/frv-tdep.h                                     |    2 +-
 gdb/gcore.c                                        |    2 +-
 gdb/gdb-stabs.h                                    |    2 +-
 gdb/gdb.c                                          |    2 +-
 gdb/gdb.h                                          |    2 +-
 gdb/gdb_assert.h                                   |    2 +-
 gdb/gdb_buildall.sh                                |    2 +-
 gdb/gdb_curses.h                                   |    2 +-
 gdb/gdb_dirent.h                                   |    2 +-
 gdb/gdb_expat.h                                    |    2 +-
 gdb/gdb_gcore.sh                                   |    2 +-
 gdb/gdb_locale.h                                   |    2 +-
 gdb/gdb_mbuild.sh                                  |    2 +-
 gdb/gdb_obstack.h                                  |    2 +-
 gdb/gdb_proc_service.h                             |    2 +-
 gdb/gdb_ptrace.h                                   |    2 +-
 gdb/gdb_regex.h                                    |    3 +-
 gdb/gdb_select.h                                   |    2 +-
 gdb/gdb_stat.h                                     |    2 +-
 gdb/gdb_string.h                                   |    2 +-
 gdb/gdb_thread_db.h                                |    2 +-
 gdb/gdb_vfork.h                                    |    2 +-
 gdb/gdb_wait.h                                     |    2 +-
 gdb/gdbarch.sh                                     |    2 +-
 gdb/gdbcmd.h                                       |    2 +-
 gdb/gdbcore.h                                      |    2 +-
 gdb/gdbserver/Makefile.in                          |    2 +-
 gdb/gdbserver/gdb_proc_service.h                   |    2 +-
 gdb/gdbserver/gdbreplay.c                          |    4 +-
 gdb/gdbserver/hostio-errno.c                       |    2 +-
 gdb/gdbserver/hostio.c                             |    2 +-
 gdb/gdbserver/i387-fp.c                            |    2 +-
 gdb/gdbserver/i387-fp.h                            |    3 +-
 gdb/gdbserver/inferiors.c                          |    2 +-
 gdb/gdbserver/linux-arm-low.c                      |    2 +-
 gdb/gdbserver/linux-cris-low.c                     |    2 +-
 gdb/gdbserver/linux-crisv32-low.c                  |    2 +-
 gdb/gdbserver/linux-i386-low.c                     |    2 +-
 gdb/gdbserver/linux-ia64-low.c                     |    2 +-
 gdb/gdbserver/linux-low.c                          |    2 +-
 gdb/gdbserver/linux-low.h                          |    3 +-
 gdb/gdbserver/linux-m32r-low.c                     |    2 +-
 gdb/gdbserver/linux-m68k-low.c                     |    2 +-
 gdb/gdbserver/linux-mips-low.c                     |    2 +-
 gdb/gdbserver/linux-ppc-low.c                      |    4 +-
 gdb/gdbserver/linux-s390-low.c                     |    2 +-
 gdb/gdbserver/linux-sh-low.c                       |    2 +-
 gdb/gdbserver/linux-sparc-low.c                    |    2 +-
 gdb/gdbserver/linux-x86-64-low.c                   |    2 +-
 gdb/gdbserver/linux-xtensa-low.c                   |    2 +-
 gdb/gdbserver/mem-break.c                          |    3 +-
 gdb/gdbserver/mem-break.h                          |    2 +-
 gdb/gdbserver/proc-service.c                       |    2 +-
 gdb/gdbserver/regcache.c                           |    2 +-
 gdb/gdbserver/regcache.h                           |    2 +-
 gdb/gdbserver/remote-utils.c                       |    2 +-
 gdb/gdbserver/server.c                             |    2 +-
 gdb/gdbserver/server.h                             |    2 +-
 gdb/gdbserver/spu-low.c                            |    2 +-
 gdb/gdbserver/target.c                             |    3 +-
 gdb/gdbserver/target.h                             |    2 +-
 gdb/gdbserver/thread-db.c                          |    2 +-
 gdb/gdbserver/utils.c                              |    2 +-
 gdb/gdbserver/win32-arm-low.c                      |    2 +-
 gdb/gdbserver/win32-i386-low.c                     |    2 +-
 gdb/gdbserver/win32-low.c                          |    2 +-
 gdb/gdbserver/win32-low.h                          |    2 +-
 gdb/gdbserver/wincecompat.c                        |    2 +-
 gdb/gdbserver/wincecompat.h                        |    2 +-
 gdb/gdbserver/xtensa-xtregs.c                      |    2 +-
 gdb/gdbthread.h                                    |    2 +-
 gdb/gdbtypes.c                                     |    2 +-
 gdb/gdbtypes.h                                     |    2 +-
 gdb/glibc-tdep.c                                   |    2 +-
 gdb/glibc-tdep.h                                   |    2 +-
 gdb/gnu-nat.c                                      |    2 +-
 gdb/gnu-nat.h                                      |    2 +-
 gdb/gnu-v2-abi.c                                   |    2 +-
 gdb/gnu-v2-abi.h                                   |    2 +-
 gdb/gnu-v3-abi.c                                   |    2 +-
 gdb/gnulib/Makefile.am                             |    2 +-
 gdb/gnulib/Makefile.in                             |    4 +-
 gdb/gnulib/dummy.c                                 |    2 +-
 gdb/gnulib/m4/extensions.m4                        |    2 +-
 gdb/gnulib/m4/gnulib-cache.m4                      |    2 +-
 gdb/gnulib/m4/gnulib-common.m4                     |    2 +-
 gdb/gnulib/m4/gnulib-comp.m4                       |    2 +-
 gdb/gnulib/m4/gnulib-tool.m4                       |    2 +-
 gdb/gnulib/m4/include_next.m4                      |    2 +-
 gdb/gnulib/m4/longlong.m4                          |    2 +-
 gdb/gnulib/m4/memchr.m4                            |    2 +-
 gdb/gnulib/m4/memcmp.m4                            |    2 +-
 gdb/gnulib/m4/memmem.m4                            |    3 +-
 gdb/gnulib/m4/onceonly_2_57.m4                     |    2 +-
 gdb/gnulib/m4/stdint.m4                            |    2 +-
 gdb/gnulib/m4/string_h.m4                          |    2 +-
 gdb/gnulib/m4/wchar.m4                             |    2 +-
 gdb/gnulib/memchr.c                                |    4 +-
 gdb/gnulib/memcmp.c                                |    4 +-
 gdb/gnulib/memmem.c                                |    6 +-
 gdb/gnulib/stdint.in.h                             |    4 +-
 gdb/gnulib/str-two-way.h                           |    4 +-
 gdb/gnulib/string.in.h                             |    4 +-
 gdb/gnulib/wchar.in.h                              |    4 +-
 gdb/go32-nat.c                                     |    2 +-
 gdb/gregset.h                                      |    2 +-
 gdb/h8300-tdep.c                                   |    3 +-
 gdb/hppa-hpux-nat.c                                |    2 +-
 gdb/hppa-hpux-tdep.c                               |    2 +-
 gdb/hppa-linux-nat.c                               |    3 +-
 gdb/hppa-linux-offsets.h                           |    2 +-
 gdb/hppa-linux-tdep.c                              |    2 +-
 gdb/hppa-tdep.c                                    |    2 +-
 gdb/hppa-tdep.h                                    |    2 +-
 gdb/hppabsd-nat.c                                  |    2 +-
 gdb/hppabsd-tdep.c                                 |    3 +-
 gdb/hppanbsd-nat.c                                 |    2 +-
 gdb/hppanbsd-tdep.c                                |    2 +-
 gdb/hppaobsd-tdep.c                                |    2 +-
 gdb/hpux-thread.c                                  |    2 +-
 gdb/i386-cygwin-tdep.c                             |    2 +-
 gdb/i386-cygwin-tdep.h                             |    2 +-
 gdb/i386-darwin-nat.c                              |    2 +-
 gdb/i386-darwin-tdep.c                             |    2 +-
 gdb/i386-darwin-tdep.h                             |    2 +-
 gdb/i386-dicos-tdep.c                              |    2 +-
 gdb/i386-linux-nat.c                               |    4 +-
 gdb/i386-linux-tdep.c                              |    2 +-
 gdb/i386-linux-tdep.h                              |    2 +-
 gdb/i386-nat.c                                     |    3 +-
 gdb/i386-nto-tdep.c                                |    2 +-
 gdb/i386-sol2-nat.c                                |    2 +-
 gdb/i386-sol2-tdep.c                               |    2 +-
 gdb/i386-tdep.c                                    |    2 +-
 gdb/i386-tdep.h                                    |    2 +-
 gdb/i386bsd-nat.c                                  |    2 +-
 gdb/i386bsd-nat.h                                  |    2 +-
 gdb/i386bsd-tdep.c                                 |    2 +-
 gdb/i386fbsd-nat.c                                 |    2 +-
 gdb/i386fbsd-tdep.c                                |    3 +-
 gdb/i386gnu-nat.c                                  |    2 +-
 gdb/i386gnu-tdep.c                                 |    2 +-
 gdb/i386nbsd-nat.c                                 |    2 +-
 gdb/i386nbsd-tdep.c                                |    2 +-
 gdb/i386obsd-nat.c                                 |    2 +-
 gdb/i386obsd-tdep.c                                |    2 +-
 gdb/i386v4-nat.c                                   |    2 +-
 gdb/i387-tdep.c                                    |    2 +-
 gdb/i387-tdep.h                                    |    2 +-
 gdb/ia64-linux-nat.c                               |    4 +-
 gdb/ia64-linux-tdep.c                              |    3 +-
 gdb/ia64-tdep.c                                    |    4 +-
 gdb/ia64-tdep.h                                    |    2 +-
 gdb/inf-child.c                                    |    2 +-
 gdb/inf-child.h                                    |    2 +-
 gdb/inf-loop.c                                     |    2 +-
 gdb/inf-loop.h                                     |    2 +-
 gdb/inf-ptrace.c                                   |    6 +-
 gdb/inf-ptrace.h                                   |    2 +-
 gdb/inf-ttrace.c                                   |    3 +-
 gdb/inf-ttrace.h                                   |    2 +-
 gdb/infcall.c                                      |    2 +-
 gdb/infcall.h                                      |    2 +-
 gdb/infcmd.c                                       |    2 +-
 gdb/inferior.c                                     |    2 +-
 gdb/inferior.h                                     |    2 +-
 gdb/inflow.c                                       |    4 +-
 gdb/inflow.h                                       |    2 +-
 gdb/infrun.c                                       |   30 +-
 gdb/interps.c                                      |    3 +-
 gdb/interps.h                                      |    3 +-
 gdb/iq2000-tdep.c                                  |    3 +-
 gdb/irix5-nat.c                                    |    2 +-
 gdb/jv-exp.y                                       |    2 +-
 gdb/jv-lang.c                                      |    2 +-
 gdb/jv-lang.h                                      |    2 +-
 gdb/jv-typeprint.c                                 |    2 +-
 gdb/jv-valprint.c                                  |    2 +-
 gdb/language.c                                     |    2 +-
 gdb/language.h                                     |    2 +-
 gdb/libunwind-frame.c                              |    3 +-
 gdb/libunwind-frame.h                              |    2 +-
 gdb/linespec.c                                     |    4 +-
 gdb/linespec.h                                     |    2 +-
 gdb/linux-fork.c                                   |   36 +-
 gdb/linux-fork.h                                   |    3 +-
 gdb/linux-nat.c                                    |   30 +-
 gdb/linux-nat.h                                    |    2 +-
 gdb/linux-thread-db.c                              |   13 +-
 gdb/m2-exp.y                                       |    2 +-
 gdb/m2-lang.c                                      |    2 +-
 gdb/m2-lang.h                                      |    2 +-
 gdb/m2-typeprint.c                                 |    3 +-
 gdb/m2-valprint.c                                  |    2 +-
 gdb/m32c-tdep.c                                    |    2 +-
 gdb/m32r-linux-nat.c                               |    3 +-
 gdb/m32r-linux-tdep.c                              |    2 +-
 gdb/m32r-rom.c                                     |    4 +-
 gdb/m32r-tdep.c                                    |    2 +-
 gdb/m32r-tdep.h                                    |    2 +-
 gdb/m68hc11-tdep.c                                 |    2 +-
 gdb/m68k-tdep.c                                    |    3 +-
 gdb/m68k-tdep.h                                    |    2 +-
 gdb/m68kbsd-nat.c                                  |    2 +-
 gdb/m68kbsd-tdep.c                                 |    2 +-
 gdb/m68klinux-nat.c                                |    2 +-
 gdb/m68klinux-tdep.c                               |    2 +-
 gdb/m88k-tdep.c                                    |    2 +-
 gdb/m88k-tdep.h                                    |    2 +-
 gdb/m88kbsd-nat.c                                  |    2 +-
 gdb/machoread.c                                    |    2 +-
 gdb/macrocmd.c                                     |    2 +-
 gdb/macroexp.c                                     |    2 +-
 gdb/macroexp.h                                     |    2 +-
 gdb/macroscope.c                                   |    2 +-
 gdb/macroscope.h                                   |    2 +-
 gdb/macrotab.c                                     |    2 +-
 gdb/macrotab.h                                     |    2 +-
 gdb/main.c                                         |    4 +-
 gdb/main.h                                         |    2 +-
 gdb/maint.c                                        |    2 +-
 gdb/mdebugread.c                                   |    2 +-
 gdb/mdebugread.h                                   |    2 +-
 gdb/mem-break.c                                    |    2 +-
 gdb/memattr.c                                      |    2 +-
 gdb/memattr.h                                      |    2 +-
 gdb/memory-map.c                                   |    2 +-
 gdb/memory-map.h                                   |    2 +-
 gdb/mep-tdep.c                                     |    2 +-
 gdb/mi/gdb-mi.el                                   |    3 +-
 gdb/mi/mi-cmd-break.c                              |    3 +-
 gdb/mi/mi-cmd-disas.c                              |    3 +-
 gdb/mi/mi-cmd-env.c                                |    3 +-
 gdb/mi/mi-cmd-file.c                               |    3 +-
 gdb/mi/mi-cmd-stack.c                              |    2 +-
 gdb/mi/mi-cmd-target.c                             |    2 +-
 gdb/mi/mi-cmd-var.c                                |    2 +-
 gdb/mi/mi-cmds.c                                   |    3 +-
 gdb/mi/mi-cmds.h                                   |    2 +-
 gdb/mi/mi-common.c                                 |    2 +-
 gdb/mi/mi-common.h                                 |    2 +-
 gdb/mi/mi-console.c                                |    3 +-
 gdb/mi/mi-console.h                                |    2 +-
 gdb/mi/mi-getopt.c                                 |    2 +-
 gdb/mi/mi-getopt.h                                 |    2 +-
 gdb/mi/mi-interp.c                                 |    2 +-
 gdb/mi/mi-main.c                                   |    2 +-
 gdb/mi/mi-main.h                                   |    2 +-
 gdb/mi/mi-out.c                                    |    2 +-
 gdb/mi/mi-out.h                                    |    2 +-
 gdb/mi/mi-parse.c                                  |    3 +-
 gdb/mi/mi-parse.h                                  |    2 +-
 gdb/mi/mi-symbol-cmds.c                            |    2 +-
 gdb/mingw-hdep.c                                   |    2 +-
 gdb/minsyms.c                                      |    2 +-
 gdb/mips-irix-tdep.c                               |    2 +-
 gdb/mips-linux-nat.c                               |    2 +-
 gdb/mips-linux-tdep.c                              |    2 +-
 gdb/mips-linux-tdep.h                              |    2 +-
 gdb/mips-tdep.c                                    |    2 +-
 gdb/mips-tdep.h                                    |    2 +-
 gdb/mips64obsd-nat.c                               |    2 +-
 gdb/mips64obsd-tdep.c                              |    2 +-
 gdb/mipsnbsd-nat.c                                 |    2 +-
 gdb/mipsnbsd-tdep.c                                |    2 +-
 gdb/mipsnbsd-tdep.h                                |    2 +-
 gdb/mipsread.c                                     |    2 +-
 gdb/mn10300-linux-tdep.c                           |    2 +-
 gdb/mn10300-tdep.c                                 |    2 +-
 gdb/mn10300-tdep.h                                 |    2 +-
 gdb/monitor.c                                      |    2 +-
 gdb/monitor.h                                      |    2 +-
 gdb/mt-tdep.c                                      |    2 +-
 gdb/nbsd-nat.c                                     |    2 +-
 gdb/nbsd-nat.h                                     |    2 +-
 gdb/nbsd-tdep.c                                    |    2 +-
 gdb/nbsd-tdep.h                                    |    2 +-
 gdb/nto-procfs.c                                   |    2 +-
 gdb/nto-tdep.c                                     |    2 +-
 gdb/nto-tdep.h                                     |    2 +-
 gdb/objc-exp.y                                     |    4 +-
 gdb/objc-lang.c                                    |    2 +-
 gdb/objc-lang.h                                    |    2 +-
 gdb/objfiles.c                                     |    2 +-
 gdb/objfiles.h                                     |    2 +-
 gdb/obsd-tdep.c                                    |    2 +-
 gdb/obsd-tdep.h                                    |    2 +-
 gdb/observer.c                                     |    2 +-
 gdb/observer.sh                                    |    2 +-
 gdb/osabi.c                                        |    2 +-
 gdb/osabi.h                                        |    3 +-
 gdb/osdata.c                                       |    2 +-
 gdb/osdata.h                                       |    2 +-
 gdb/p-exp.y                                        |    2 +-
 gdb/p-lang.c                                       |    2 +-
 gdb/p-lang.h                                       |    3 +-
 gdb/p-typeprint.c                                  |    2 +-
 gdb/p-valprint.c                                   |    2 +-
 gdb/parse.c                                        |    2 +-
 gdb/parser-defs.h                                  |    2 +-
 gdb/posix-hdep.c                                   |    2 +-
 gdb/ppc-linux-nat.c                                |    2 +-
 gdb/ppc-linux-tdep.c                               |    2 +-
 gdb/ppc-linux-tdep.h                               |    2 +-
 gdb/ppc-sysv-tdep.c                                |    2 +-
 gdb/ppc-tdep.h                                     |    2 +-
 gdb/ppcbug-rom.c                                   |    2 +-
 gdb/ppcnbsd-nat.c                                  |    2 +-
 gdb/ppcnbsd-tdep.c                                 |    2 +-
 gdb/ppcnbsd-tdep.h                                 |    2 +-
 gdb/ppcobsd-nat.c                                  |    3 +-
 gdb/ppcobsd-tdep.c                                 |    3 +-
 gdb/ppcobsd-tdep.h                                 |    2 +-
 gdb/printcmd.c                                     |    2 +-
 gdb/proc-api.c                                     |    2 +-
 gdb/proc-events.c                                  |    3 +-
 gdb/proc-flags.c                                   |    2 +-
 gdb/proc-service.c                                 |    3 +-
 gdb/proc-utils.h                                   |    2 +-
 gdb/proc-why.c                                     |    3 +-
 gdb/procfs.c                                       |    2 +-
 gdb/prologue-value.c                               |    2 +-
 gdb/prologue-value.h                               |    2 +-
 gdb/python/python-internal.h                       |    9 +-
 gdb/python/python-utils.c                          |    2 +-
 gdb/python/python-value.c                          |    2 +-
 gdb/python/python.c                                |    2 +-
 gdb/python/python.h                                |    2 +-
 gdb/regcache.c                                     |    2 +-
 gdb/regcache.h                                     |    2 +-
 gdb/regformats/regdat.sh                           |    2 +-
 gdb/regformats/regdef.h                            |    2 +-
 gdb/reggroups.c                                    |    2 +-
 gdb/reggroups.h                                    |    2 +-
 gdb/regset.c                                       |    2 +-
 gdb/regset.h                                       |    2 +-
 gdb/remote-fileio.c                                |    3 +-
 gdb/remote-fileio.h                                |    2 +-
 gdb/remote-m32r-sdi.c                              |    2 +-
 gdb/remote-mips.c                                  |    2 +-
 gdb/remote-sim.c                                   |    2 +-
 gdb/remote.c                                       |    2 +-
 gdb/remote.h                                       |    2 +-
 gdb/reply_mig_hack.awk                             |    3 +-
 gdb/reverse.c                                      |    2 +-
 gdb/rs6000-aix-tdep.c                              |    2 +-
 gdb/rs6000-nat.c                                   |    2 +-
 gdb/rs6000-tdep.c                                  |    2 +-
 gdb/rs6000-tdep.h                                  |    2 +-
 gdb/s390-tdep.c                                    |    2 +-
 gdb/s390-tdep.h                                    |    2 +-
 gdb/scm-exp.c                                      |    2 +-
 gdb/scm-lang.c                                     |    2 +-
 gdb/scm-lang.h                                     |    2 +-
 gdb/scm-tags.h                                     |    2 +-
 gdb/scm-valprint.c                                 |    2 +-
 gdb/score-tdep.c                                   |    2 +-
 gdb/score-tdep.h                                   |    2 +-
 gdb/sentinel-frame.c                               |    2 +-
 gdb/sentinel-frame.h                               |    2 +-
 gdb/ser-base.c                                     |    2 +-
 gdb/ser-base.h                                     |    2 +-
 gdb/ser-go32.c                                     |    2 +-
 gdb/ser-mingw.c                                    |    2 +-
 gdb/ser-pipe.c                                     |    3 +-
 gdb/ser-tcp.c                                      |    2 +-
 gdb/ser-tcp.h                                      |    2 +-
 gdb/ser-unix.c                                     |    2 +-
 gdb/ser-unix.h                                     |    3 +-
 gdb/serial.c                                       |    2 +-
 gdb/serial.h                                       |    2 +-
 gdb/sh-linux-tdep.c                                |    2 +-
 gdb/sh-tdep.c                                      |    2 +-
 gdb/sh-tdep.h                                      |    2 +-
 gdb/sh64-tdep.c                                    |    2 +-
 gdb/shnbsd-nat.c                                   |    2 +-
 gdb/shnbsd-tdep.c                                  |    3 +-
 gdb/shnbsd-tdep.h                                  |    2 +-
 gdb/signals/signals.c                              |    3 +-
 gdb/sim-regno.h                                    |    2 +-
 gdb/sol-thread.c                                   |    2 +-
 gdb/sol2-tdep.c                                    |    2 +-
 gdb/sol2-tdep.h                                    |    2 +-
 gdb/solib-frv.c                                    |    2 +-
 gdb/solib-irix.c                                   |    2 +-
 gdb/solib-irix.h                                   |    2 +-
 gdb/solib-null.c                                   |    2 +-
 gdb/solib-osf.c                                    |    4 +-
 gdb/solib-pa64.c                                   |    2 +-
 gdb/solib-pa64.h                                   |    2 +-
 gdb/solib-som.c                                    |    2 +-
 gdb/solib-som.h                                    |    2 +-
 gdb/solib-sunos.c                                  |    2 +-
 gdb/solib-svr4.c                                   |    3 +-
 gdb/solib-svr4.h                                   |    3 +-
 gdb/solib-target.c                                 |    2 +-
 gdb/solib-target.h                                 |    2 +-
 gdb/solib.c                                        |    2 +-
 gdb/solib.h                                        |    2 +-
 gdb/solist.h                                       |    2 +-
 gdb/somread.c                                      |    2 +-
 gdb/source.c                                       |    4 +-
 gdb/source.h                                       |    2 +-
 gdb/sparc-linux-nat.c                              |    2 +-
 gdb/sparc-linux-tdep.c                             |    3 +-
 gdb/sparc-nat.c                                    |    3 +-
 gdb/sparc-nat.h                                    |    2 +-
 gdb/sparc-sol2-nat.c                               |    2 +-
 gdb/sparc-sol2-tdep.c                              |    3 +-
 gdb/sparc-tdep.c                                   |    2 +-
 gdb/sparc-tdep.h                                   |    3 +-
 gdb/sparc64-linux-nat.c                            |    3 +-
 gdb/sparc64-linux-tdep.c                           |    3 +-
 gdb/sparc64-nat.c                                  |    2 +-
 gdb/sparc64-sol2-tdep.c                            |    3 +-
 gdb/sparc64-tdep.c                                 |    2 +-
 gdb/sparc64-tdep.h                                 |    3 +-
 gdb/sparc64fbsd-nat.c                              |    3 +-
 gdb/sparc64fbsd-tdep.c                             |    3 +-
 gdb/sparc64nbsd-nat.c                              |    3 +-
 gdb/sparc64nbsd-tdep.c                             |    2 +-
 gdb/sparc64obsd-tdep.c                             |    3 +-
 gdb/sparcnbsd-nat.c                                |    3 +-
 gdb/sparcnbsd-tdep.c                               |    2 +-
 gdb/sparcobsd-tdep.c                               |    3 +-
 gdb/spu-linux-nat.c                                |    2 +-
 gdb/spu-tdep.c                                     |    2 +-
 gdb/spu-tdep.h                                     |    2 +-
 gdb/srec.h                                         |    3 +-
 gdb/stabsread.c                                    |    2 +-
 gdb/stabsread.h                                    |    2 +-
 gdb/stack.c                                        |    4 +-
 gdb/stack.h                                        |    2 +-
 gdb/std-regs.c                                     |    2 +-
 gdb/symfile-mem.c                                  |    2 +-
 gdb/symfile.c                                      |    2 +-
 gdb/symfile.h                                      |    3 +-
 gdb/symmisc.c                                      |    2 +-
 gdb/symtab.c                                       |    2 +-
 gdb/symtab.h                                       |    2 +-
 gdb/target-descriptions.c                          |    2 +-
 gdb/target-descriptions.h                          |    2 +-
 gdb/target-memory.c                                |    2 +-
 gdb/target.c                                       |    2 +-
 gdb/target.h                                       |    2 +-
 gdb/terminal.h                                     |    2 +-
 gdb/testsuite/ChangeLog                            |   23 +
 gdb/testsuite/Makefile.in                          |    2 +-
 gdb/testsuite/config/cfdbug.exp                    |    2 +-
 gdb/testsuite/config/d10v.exp                      |    2 +-
 gdb/testsuite/config/default.exp                   |    2 +-
 gdb/testsuite/config/dve.exp                       |    2 +-
 gdb/testsuite/config/gdbserver.exp                 |    2 +-
 gdb/testsuite/config/i960.exp                      |    2 +-
 gdb/testsuite/config/m32r.exp                      |    2 +-
 gdb/testsuite/config/mips-idt.exp                  |    2 +-
 gdb/testsuite/config/mips.exp                      |    2 +-
 gdb/testsuite/config/mn10300-eval.exp              |    2 +-
 gdb/testsuite/config/monitor.exp                   |    2 +-
 gdb/testsuite/config/proelf.exp                    |    2 +-
 gdb/testsuite/config/rom68k.exp                    |    2 +-
 gdb/testsuite/config/sh.exp                        |    2 +-
 gdb/testsuite/config/sid.exp                       |    2 +-
 gdb/testsuite/config/sim.exp                       |    2 +-
 gdb/testsuite/config/slite.exp                     |    3 +-
 gdb/testsuite/config/unix.exp                      |    2 +-
 gdb/testsuite/config/vr4300.exp                    |    2 +-
 gdb/testsuite/config/vr5000.exp                    |    2 +-
 gdb/testsuite/config/vx.exp                        |    2 +-
 gdb/testsuite/config/vxworks.exp                   |    2 +-
 gdb/testsuite/config/vxworks29k.exp                |    2 +-
 gdb/testsuite/gdb.ada/array_bounds.exp             |    2 +-
 gdb/testsuite/gdb.ada/array_bounds/bar.adb         |    2 +-
 gdb/testsuite/gdb.ada/array_return.exp             |    2 +-
 gdb/testsuite/gdb.ada/array_return/p.adb           |    2 +-
 gdb/testsuite/gdb.ada/array_return/pck.adb         |    2 +-
 gdb/testsuite/gdb.ada/array_return/pck.ads         |    2 +-
 gdb/testsuite/gdb.ada/array_subscript_addr.exp     |    2 +-
 gdb/testsuite/gdb.ada/array_subscript_addr/p.adb   |    2 +-
 gdb/testsuite/gdb.ada/arrayidx.exp                 |    2 +-
 gdb/testsuite/gdb.ada/arrayidx/p.adb               |    2 +-
 gdb/testsuite/gdb.ada/arrayparam.exp               |    2 +-
 gdb/testsuite/gdb.ada/arrayparam/foo.adb           |    2 +-
 gdb/testsuite/gdb.ada/arrayparam/pck.adb           |    2 +-
 gdb/testsuite/gdb.ada/arrayparam/pck.ads           |    2 +-
 gdb/testsuite/gdb.ada/arrayptr.exp                 |    2 +-
 gdb/testsuite/gdb.ada/arrayptr/foo.adb             |    2 +-
 gdb/testsuite/gdb.ada/arrayptr/pck.adb             |    2 +-
 gdb/testsuite/gdb.ada/arrayptr/pck.ads             |    2 +-
 gdb/testsuite/gdb.ada/assign_1.exp                 |    2 +-
 gdb/testsuite/gdb.ada/atomic_enum.exp              |    2 +-
 gdb/testsuite/gdb.ada/atomic_enum/foo.adb          |    2 +-
 gdb/testsuite/gdb.ada/atomic_enum/pck.adb          |    2 +-
 gdb/testsuite/gdb.ada/atomic_enum/pck.ads          |    2 +-
 gdb/testsuite/gdb.ada/boolean_expr.exp             |    2 +-
 gdb/testsuite/gdb.ada/catch_ex.exp                 |    2 +-
 gdb/testsuite/gdb.ada/catch_ex/foo.adb             |    2 +-
 gdb/testsuite/gdb.ada/char_param.exp               |    2 +-
 gdb/testsuite/gdb.ada/char_param/foo.adb           |    2 +-
 gdb/testsuite/gdb.ada/char_param/pck.adb           |    2 +-
 gdb/testsuite/gdb.ada/char_param/pck.ads           |    2 +-
 gdb/testsuite/gdb.ada/complete.exp                 |    2 +-
 gdb/testsuite/gdb.ada/exec_changed.exp             |    2 +-
 gdb/testsuite/gdb.ada/exec_changed/first.adb       |    2 +-
 gdb/testsuite/gdb.ada/exec_changed/second.adb      |    2 +-
 gdb/testsuite/gdb.ada/exprs.exp                    |    2 +-
 gdb/testsuite/gdb.ada/exprs/p.adb                  |    2 +-
 gdb/testsuite/gdb.ada/fixed_cmp.exp                |    2 +-
 gdb/testsuite/gdb.ada/fixed_cmp/fixed.adb          |    2 +-
 gdb/testsuite/gdb.ada/fixed_cmp/pck.adb            |    2 +-
 gdb/testsuite/gdb.ada/fixed_cmp/pck.ads            |    2 +-
 gdb/testsuite/gdb.ada/fixed_points.exp             |    2 +-
 .../gdb.ada/fixed_points/fixed_points.adb          |    2 +-
 gdb/testsuite/gdb.ada/formatted_ref.exp            |    2 +-
 gdb/testsuite/gdb.ada/formatted_ref/defs.adb       |    2 +-
 gdb/testsuite/gdb.ada/formatted_ref/defs.ads       |    2 +-
 .../gdb.ada/formatted_ref/formatted_ref.adb        |    2 +-
 gdb/testsuite/gdb.ada/frame_args.exp               |    2 +-
 gdb/testsuite/gdb.ada/frame_args/foo.adb           |    2 +-
 gdb/testsuite/gdb.ada/frame_args/pck.adb           |    2 +-
 gdb/testsuite/gdb.ada/frame_args/pck.ads           |    2 +-
 gdb/testsuite/gdb.ada/fun_addr.exp                 |    2 +-
 gdb/testsuite/gdb.ada/fun_addr/foo.adb             |    2 +-
 gdb/testsuite/gdb.ada/fun_in_declare.exp           |    2 +-
 gdb/testsuite/gdb.ada/fun_in_declare/foo.adb       |    2 +-
 gdb/testsuite/gdb.ada/fun_in_declare/pck.adb       |    2 +-
 gdb/testsuite/gdb.ada/fun_in_declare/pck.ads       |    2 +-
 gdb/testsuite/gdb.ada/funcall_param.exp            |    2 +-
 gdb/testsuite/gdb.ada/funcall_param/foo.adb        |    2 +-
 gdb/testsuite/gdb.ada/funcall_param/pck.adb        |    2 +-
 gdb/testsuite/gdb.ada/funcall_param/pck.ads        |    2 +-
 gdb/testsuite/gdb.ada/gnat_ada.gpr                 |    2 +-
 gdb/testsuite/gdb.ada/homonym.exp                  |    2 +-
 gdb/testsuite/gdb.ada/homonym/homonym.adb          |    2 +-
 gdb/testsuite/gdb.ada/homonym/homonym.ads          |    2 +-
 gdb/testsuite/gdb.ada/homonym/homonym_main.adb     |    2 +-
 gdb/testsuite/gdb.ada/int_deref.exp                |    2 +-
 gdb/testsuite/gdb.ada/int_deref/foo.adb            |    2 +-
 gdb/testsuite/gdb.ada/int_deref/pck.ads            |    2 +-
 gdb/testsuite/gdb.ada/interface.exp                |    2 +-
 gdb/testsuite/gdb.ada/interface/foo.adb            |    2 +-
 gdb/testsuite/gdb.ada/interface/types.adb          |    2 +-
 gdb/testsuite/gdb.ada/interface/types.ads          |    2 +-
 gdb/testsuite/gdb.ada/lang_switch.exp              |    2 +-
 gdb/testsuite/gdb.ada/lang_switch/foo.c            |    2 +-
 gdb/testsuite/gdb.ada/lang_switch/lang_switch.adb  |    2 +-
 gdb/testsuite/gdb.ada/nested.exp                   |    2 +-
 gdb/testsuite/gdb.ada/nested/hello.adb             |    2 +-
 gdb/testsuite/gdb.ada/null_array.exp               |    2 +-
 gdb/testsuite/gdb.ada/null_array/foo.adb           |    2 +-
 gdb/testsuite/gdb.ada/null_array/pck.adb           |    2 +-
 gdb/testsuite/gdb.ada/null_array/pck.ads           |    2 +-
 gdb/testsuite/gdb.ada/null_record.exp              |    2 +-
 gdb/testsuite/gdb.ada/null_record/bar.adb          |    2 +-
 gdb/testsuite/gdb.ada/null_record/bar.ads          |    2 +-
 gdb/testsuite/gdb.ada/null_record/null_record.adb  |    2 +-
 gdb/testsuite/gdb.ada/packed_array.exp             |    2 +-
 gdb/testsuite/gdb.ada/packed_array/pa.adb          |    2 +-
 gdb/testsuite/gdb.ada/packed_tagged.exp            |    2 +-
 gdb/testsuite/gdb.ada/packed_tagged/comp_bug.adb   |    2 +-
 gdb/testsuite/gdb.ada/print_chars.exp              |    2 +-
 gdb/testsuite/gdb.ada/print_chars/pck.adb          |    2 +-
 gdb/testsuite/gdb.ada/print_chars/pck.ads          |    2 +-
 gdb/testsuite/gdb.ada/print_pc.exp                 |    2 +-
 gdb/testsuite/gdb.ada/ptype_field.exp              |    2 +-
 gdb/testsuite/gdb.ada/ptype_field/foo.adb          |    2 +-
 gdb/testsuite/gdb.ada/ptype_field/pck.adb          |    2 +-
 gdb/testsuite/gdb.ada/ptype_field/pck.ads          |    2 +-
 gdb/testsuite/gdb.ada/ref_param.exp                |    2 +-
 gdb/testsuite/gdb.ada/ref_param/foo.adb            |    2 +-
 gdb/testsuite/gdb.ada/ref_param/pck.adb            |    2 +-
 gdb/testsuite/gdb.ada/ref_param/pck.ads            |    2 +-
 gdb/testsuite/gdb.ada/ref_tick_size.exp            |    2 +-
 gdb/testsuite/gdb.ada/start.exp                    |    2 +-
 gdb/testsuite/gdb.ada/start/dummy.adb              |    2 +-
 gdb/testsuite/gdb.ada/str_ref_cmp.exp              |    2 +-
 gdb/testsuite/gdb.ada/str_ref_cmp/foo.adb          |    2 +-
 gdb/testsuite/gdb.ada/str_ref_cmp/pck.ads          |    2 +-
 gdb/testsuite/gdb.ada/sym_print_name.exp           |    2 +-
 gdb/testsuite/gdb.ada/sym_print_name/foo.adb       |    2 +-
 gdb/testsuite/gdb.ada/sym_print_name/pck.adb       |    2 +-
 gdb/testsuite/gdb.ada/sym_print_name/pck.ads       |    2 +-
 gdb/testsuite/gdb.ada/taft_type.exp                |    2 +-
 gdb/testsuite/gdb.ada/taft_type/p.adb              |    2 +-
 gdb/testsuite/gdb.ada/taft_type/pck.adb            |    2 +-
 gdb/testsuite/gdb.ada/taft_type/pck.ads            |    2 +-
 gdb/testsuite/gdb.ada/tagged.exp                   |    2 +-
 gdb/testsuite/gdb.ada/tagged/foo.adb               |    2 +-
 gdb/testsuite/gdb.ada/tagged/pck.adb               |    2 +-
 gdb/testsuite/gdb.ada/tagged/pck.ads               |    2 +-
 gdb/testsuite/gdb.ada/type_coercion.exp            |    2 +-
 gdb/testsuite/gdb.ada/type_coercion/assign.adb     |    2 +-
 gdb/testsuite/gdb.ada/type_coercion/ident.adb      |    2 +-
 gdb/testsuite/gdb.ada/watch_arg.exp                |    2 +-
 gdb/testsuite/gdb.ada/watch_arg/watch.adb          |    2 +-
 gdb/testsuite/gdb.arch/alpha-step.c                |    2 +-
 gdb/testsuite/gdb.arch/alpha-step.exp              |    2 +-
 gdb/testsuite/gdb.arch/altivec-abi.exp             |    3 +-
 gdb/testsuite/gdb.arch/altivec-regs.exp            |    3 +-
 gdb/testsuite/gdb.arch/e500-abi.exp                |    2 +-
 gdb/testsuite/gdb.arch/e500-prologue.c             |    2 +-
 gdb/testsuite/gdb.arch/e500-prologue.exp           |    2 +-
 gdb/testsuite/gdb.arch/e500-regs.exp               |    2 +-
 gdb/testsuite/gdb.arch/gdb1291.exp                 |    2 +-
 gdb/testsuite/gdb.arch/gdb1431.exp                 |    2 +-
 gdb/testsuite/gdb.arch/gdb1558.c                   |    2 +-
 gdb/testsuite/gdb.arch/gdb1558.exp                 |    2 +-
 gdb/testsuite/gdb.arch/i386-bp_permanent.exp       |    2 +-
 gdb/testsuite/gdb.arch/i386-cpuid.h                |    2 +-
 gdb/testsuite/gdb.arch/i386-gnu-cfi-asm.S          |    2 +-
 gdb/testsuite/gdb.arch/i386-gnu-cfi.exp            |    2 +-
 gdb/testsuite/gdb.arch/i386-prologue.c             |    3 +-
 gdb/testsuite/gdb.arch/i386-prologue.exp           |    3 +-
 gdb/testsuite/gdb.arch/i386-signal.c               |    2 +-
 gdb/testsuite/gdb.arch/i386-signal.exp             |    2 +-
 gdb/testsuite/gdb.arch/i386-size-overlap.c         |    2 +-
 gdb/testsuite/gdb.arch/i386-size-overlap.exp       |    2 +-
 gdb/testsuite/gdb.arch/i386-size.c                 |    2 +-
 gdb/testsuite/gdb.arch/i386-size.exp               |    2 +-
 gdb/testsuite/gdb.arch/i386-sse.c                  |    2 +-
 gdb/testsuite/gdb.arch/i386-sse.exp                |    2 +-
 gdb/testsuite/gdb.arch/i386-unwind.c               |    2 +-
 gdb/testsuite/gdb.arch/i386-unwind.exp             |    2 +-
 gdb/testsuite/gdb.arch/iwmmxt-regs.c               |    2 +-
 gdb/testsuite/gdb.arch/iwmmxt-regs.exp             |    2 +-
 gdb/testsuite/gdb.arch/pa-nullify.exp              |    2 +-
 gdb/testsuite/gdb.arch/powerpc-aix-prologue.c      |    2 +-
 gdb/testsuite/gdb.arch/powerpc-aix-prologue.exp    |    2 +-
 gdb/testsuite/gdb.arch/powerpc-d128-regs.c         |    2 +-
 gdb/testsuite/gdb.arch/powerpc-d128-regs.exp       |    3 +-
 gdb/testsuite/gdb.arch/powerpc-prologue.c          |    2 +-
 gdb/testsuite/gdb.arch/powerpc-prologue.exp        |    2 +-
 gdb/testsuite/gdb.arch/ppc-dfp.c                   |    2 +-
 gdb/testsuite/gdb.arch/ppc-dfp.exp                 |    2 +-
 gdb/testsuite/gdb.arch/ppc-fp.c                    |    2 +-
 gdb/testsuite/gdb.arch/ppc-fp.exp                  |    2 +-
 gdb/testsuite/gdb.arch/ppc64-atomic-inst.c         |    2 +-
 gdb/testsuite/gdb.arch/ppc64-atomic-inst.exp       |    2 +-
 gdb/testsuite/gdb.arch/spu-info.c                  |    2 +-
 gdb/testsuite/gdb.arch/spu-info.exp                |    2 +-
 gdb/testsuite/gdb.arch/thumb-prologue.c            |    2 +-
 gdb/testsuite/gdb.arch/thumb-prologue.exp          |    2 +-
 gdb/testsuite/gdb.arch/vsx-regs.exp                |    2 +-
 gdb/testsuite/gdb.asm/asm-source.exp               |    2 +-
 gdb/testsuite/gdb.base/a2-run.exp                  |    2 +-
 gdb/testsuite/gdb.base/advance.exp                 |    2 +-
 gdb/testsuite/gdb.base/all-bin.exp                 |    2 +-
 gdb/testsuite/gdb.base/annota1.exp                 |    2 +-
 gdb/testsuite/gdb.base/annota3.exp                 |    3 +-
 gdb/testsuite/gdb.base/args.exp                    |    2 +-
 gdb/testsuite/gdb.base/arithmet.exp                |    2 +-
 gdb/testsuite/gdb.base/arrayidx.c                  |    2 +-
 gdb/testsuite/gdb.base/arrayidx.exp                |    2 +-
 gdb/testsuite/gdb.base/assign.exp                  |    2 +-
 gdb/testsuite/gdb.base/async.exp                   |    2 +-
 gdb/testsuite/gdb.base/attach.exp                  |    2 +-
 gdb/testsuite/gdb.base/auxv.c                      |    2 +-
 gdb/testsuite/gdb.base/auxv.exp                    |    2 +-
 gdb/testsuite/gdb.base/bang.exp                    |    2 +-
 gdb/testsuite/gdb.base/bfp-test.c                  |    2 +-
 gdb/testsuite/gdb.base/bfp-test.exp                |    2 +-
 gdb/testsuite/gdb.base/bigcore.c                   |    2 +-
 gdb/testsuite/gdb.base/bigcore.exp                 |    2 +-
 gdb/testsuite/gdb.base/bitfields.exp               |    3 +-
 gdb/testsuite/gdb.base/bitfields2.exp              |    2 +-
 gdb/testsuite/gdb.base/bitops.exp                  |    2 +-
 gdb/testsuite/gdb.base/break-always.c              |    2 +-
 gdb/testsuite/gdb.base/break-always.exp            |    2 +-
 gdb/testsuite/gdb.base/break.c                     |    2 +-
 gdb/testsuite/gdb.base/break.exp                   |    2 +-
 gdb/testsuite/gdb.base/break1.c                    |    2 +-
 gdb/testsuite/gdb.base/breakpoint-shadow.c         |    2 +-
 gdb/testsuite/gdb.base/breakpoint-shadow.exp       |    2 +-
 gdb/testsuite/gdb.base/call-ar-st.exp              |    2 +-
 gdb/testsuite/gdb.base/call-rt-st.exp              |    2 +-
 gdb/testsuite/gdb.base/call-sc.c                   |    2 +-
 gdb/testsuite/gdb.base/call-sc.exp                 |    2 +-
 gdb/testsuite/gdb.base/call-strs.exp               |    2 +-
 gdb/testsuite/gdb.base/callexit.c                  |    2 +-
 gdb/testsuite/gdb.base/callexit.exp                |    2 +-
 gdb/testsuite/gdb.base/callfuncs.c                 |    2 +-
 gdb/testsuite/gdb.base/callfuncs.exp               |    2 +-
 gdb/testsuite/gdb.base/charset.c                   |    2 +-
 gdb/testsuite/gdb.base/charset.exp                 |    2 +-
 gdb/testsuite/gdb.base/checkpoint.c                |    2 +-
 gdb/testsuite/gdb.base/checkpoint.exp              |    2 +-
 gdb/testsuite/gdb.base/chng-syms.exp               |    2 +-
 gdb/testsuite/gdb.base/code-expr.exp               |    2 +-
 gdb/testsuite/gdb.base/commands.exp                |    3 +-
 gdb/testsuite/gdb.base/completion.exp              |    2 +-
 gdb/testsuite/gdb.base/complex.c                   |    2 +-
 gdb/testsuite/gdb.base/complex.exp                 |    2 +-
 gdb/testsuite/gdb.base/cond-expr.exp               |    2 +-
 gdb/testsuite/gdb.base/condbreak.exp               |    2 +-
 gdb/testsuite/gdb.base/consecutive.exp             |    2 +-
 gdb/testsuite/gdb.base/constvars.exp               |    2 +-
 gdb/testsuite/gdb.base/corefile.exp                |    4 +-
 gdb/testsuite/gdb.base/coremaker.c                 |    2 +-
 gdb/testsuite/gdb.base/coremaker2.c                |    2 +-
 gdb/testsuite/gdb.base/cursal.c                    |    2 +-
 gdb/testsuite/gdb.base/cursal.exp                  |    2 +-
 gdb/testsuite/gdb.base/cvexpr.c                    |    2 +-
 gdb/testsuite/gdb.base/cvexpr.exp                  |    2 +-
 gdb/testsuite/gdb.base/dbx.exp                     |    2 +-
 gdb/testsuite/gdb.base/default.exp                 |    2 +-
 gdb/testsuite/gdb.base/define.exp                  |    2 +-
 gdb/testsuite/gdb.base/del.c                       |    2 +-
 gdb/testsuite/gdb.base/del.exp                     |    2 +-
 gdb/testsuite/gdb.base/detach.exp                  |    2 +-
 gdb/testsuite/gdb.base/dfp-exprs.exp               |    2 +-
 gdb/testsuite/gdb.base/dfp-test.c                  |    2 +-
 gdb/testsuite/gdb.base/dfp-test.exp                |    2 +-
 gdb/testsuite/gdb.base/display.exp                 |    2 +-
 gdb/testsuite/gdb.base/dump.exp                    |    2 +-
 gdb/testsuite/gdb.base/echo.exp                    |    2 +-
 gdb/testsuite/gdb.base/ena-dis-br.exp              |    2 +-
 gdb/testsuite/gdb.base/ending-run.exp              |    2 +-
 gdb/testsuite/gdb.base/environ.exp                 |    3 +-
 gdb/testsuite/gdb.base/eval-skip.exp               |    2 +-
 gdb/testsuite/gdb.base/expand-psymtabs.c           |    2 +-
 gdb/testsuite/gdb.base/expand-psymtabs.exp         |    2 +-
 gdb/testsuite/gdb.base/exprs.exp                   |    2 +-
 gdb/testsuite/gdb.base/fileio.exp                  |    3 +-
 gdb/testsuite/gdb.base/find.c                      |    2 +-
 gdb/testsuite/gdb.base/find.exp                    |    2 +-
 gdb/testsuite/gdb.base/finish.exp                  |    2 +-
 gdb/testsuite/gdb.base/fixsection.c                |    2 +-
 gdb/testsuite/gdb.base/fixsection.exp              |    2 +-
 gdb/testsuite/gdb.base/float.exp                   |    2 +-
 gdb/testsuite/gdb.base/foll-exec.exp               |    2 +-
 gdb/testsuite/gdb.base/foll-fork.exp               |    2 +-
 gdb/testsuite/gdb.base/foll-vfork.exp              |    2 +-
 gdb/testsuite/gdb.base/frame-args.c                |    2 +-
 gdb/testsuite/gdb.base/frame-args.exp              |    2 +-
 gdb/testsuite/gdb.base/freebpcmd.c                 |    2 +-
 gdb/testsuite/gdb.base/freebpcmd.exp               |    2 +-
 gdb/testsuite/gdb.base/fullname.c                  |    2 +-
 gdb/testsuite/gdb.base/fullname.exp                |    3 +-
 gdb/testsuite/gdb.base/funcargs.exp                |    2 +-
 gdb/testsuite/gdb.base/gcore-buffer-overflow.c     |    2 +-
 gdb/testsuite/gdb.base/gcore-buffer-overflow.exp   |    2 +-
 gdb/testsuite/gdb.base/gcore.c                     |    2 +-
 gdb/testsuite/gdb.base/gcore.exp                   |    2 +-
 gdb/testsuite/gdb.base/gdb1056.exp                 |    2 +-
 gdb/testsuite/gdb.base/gdb1090.c                   |    2 +-
 gdb/testsuite/gdb.base/gdb1090.exp                 |    2 +-
 gdb/testsuite/gdb.base/gdb1250.c                   |    2 +-
 gdb/testsuite/gdb.base/gdb1250.exp                 |    2 +-
 gdb/testsuite/gdb.base/gdb1555.exp                 |    2 +-
 gdb/testsuite/gdb.base/gdb1821.exp                 |    2 +-
 gdb/testsuite/gdb.base/gdbvars.exp                 |    2 +-
 gdb/testsuite/gdb.base/hashline1.exp               |    2 +-
 gdb/testsuite/gdb.base/hashline2.exp               |    2 +-
 gdb/testsuite/gdb.base/hashline3.exp               |    2 +-
 gdb/testsuite/gdb.base/help.exp                    |    3 +-
 gdb/testsuite/gdb.base/hook-stop-continue.c        |    2 +-
 gdb/testsuite/gdb.base/hook-stop-continue.exp      |    2 +-
 gdb/testsuite/gdb.base/huge.exp                    |    2 +-
 gdb/testsuite/gdb.base/ifelse.exp                  |    2 +-
 gdb/testsuite/gdb.base/included.c                  |    2 +-
 gdb/testsuite/gdb.base/included.exp                |    2 +-
 gdb/testsuite/gdb.base/included.h                  |    2 +-
 gdb/testsuite/gdb.base/infnan.c                    |    2 +-
 gdb/testsuite/gdb.base/infnan.exp                  |    2 +-
 gdb/testsuite/gdb.base/info-proc.exp               |    2 +-
 gdb/testsuite/gdb.base/info-target.exp             |    2 +-
 gdb/testsuite/gdb.base/interp.exp                  |    2 +-
 gdb/testsuite/gdb.base/interrupt.exp               |    2 +-
 gdb/testsuite/gdb.base/jump.exp                    |    2 +-
 gdb/testsuite/gdb.base/langs.exp                   |    2 +-
 gdb/testsuite/gdb.base/lineinc.exp                 |    2 +-
 gdb/testsuite/gdb.base/list.exp                    |    4 +-
 gdb/testsuite/gdb.base/logical.exp                 |    2 +-
 gdb/testsuite/gdb.base/long_long.exp               |    2 +-
 gdb/testsuite/gdb.base/longjmp.c                   |    2 +-
 gdb/testsuite/gdb.base/longjmp.exp                 |    2 +-
 gdb/testsuite/gdb.base/macscp.exp                  |    2 +-
 gdb/testsuite/gdb.base/maint.exp                   |    2 +-
 gdb/testsuite/gdb.base/mips_pro.exp                |    2 +-
 gdb/testsuite/gdb.base/miscexprs.exp               |    2 +-
 gdb/testsuite/gdb.base/multi-forks.c               |    2 +-
 gdb/testsuite/gdb.base/multi-forks.exp             |    2 +-
 gdb/testsuite/gdb.base/nodebug.exp                 |    3 +-
 gdb/testsuite/gdb.base/nofield.c                   |    2 +-
 gdb/testsuite/gdb.base/nofield.exp                 |    2 +-
 gdb/testsuite/gdb.base/opaque.exp                  |    2 +-
 gdb/testsuite/gdb.base/overlays.exp                |    2 +-
 gdb/testsuite/gdb.base/page.exp                    |    2 +-
 gdb/testsuite/gdb.base/pc-fp.exp                   |    2 +-
 gdb/testsuite/gdb.base/pending.c                   |    2 +-
 gdb/testsuite/gdb.base/pending.exp                 |    3 +-
 gdb/testsuite/gdb.base/pendshr.c                   |    2 +-
 gdb/testsuite/gdb.base/pointers.exp                |    2 +-
 gdb/testsuite/gdb.base/prelink-lib.c               |    2 +-
 gdb/testsuite/gdb.base/prelink.c                   |    2 +-
 gdb/testsuite/gdb.base/prelink.exp                 |    2 +-
 gdb/testsuite/gdb.base/printcmds.exp               |    2 +-
 gdb/testsuite/gdb.base/prologue.c                  |    2 +-
 gdb/testsuite/gdb.base/prologue.exp                |    2 +-
 gdb/testsuite/gdb.base/psymtab.exp                 |    2 +-
 gdb/testsuite/gdb.base/ptr-typedef.c               |    2 +-
 gdb/testsuite/gdb.base/ptr-typedef.exp             |    2 +-
 gdb/testsuite/gdb.base/ptype.exp                   |    2 +-
 gdb/testsuite/gdb.base/radix.exp                   |   30 +-
 gdb/testsuite/gdb.base/randomize.c                 |    2 +-
 gdb/testsuite/gdb.base/randomize.exp               |    2 +-
 gdb/testsuite/gdb.base/readline.exp                |    2 +-
 gdb/testsuite/gdb.base/recurse.exp                 |    2 +-
 gdb/testsuite/gdb.base/regs.exp                    |    2 +-
 gdb/testsuite/gdb.base/relational.exp              |    2 +-
 gdb/testsuite/gdb.base/relativedebug.c             |    2 +-
 gdb/testsuite/gdb.base/relativedebug.exp           |    2 +-
 gdb/testsuite/gdb.base/relocate.c                  |    3 +-
 gdb/testsuite/gdb.base/relocate.exp                |    2 +-
 gdb/testsuite/gdb.base/remote.exp                  |    2 +-
 gdb/testsuite/gdb.base/remotetimeout.exp           |    2 +-
 gdb/testsuite/gdb.base/reread.exp                  |    2 +-
 gdb/testsuite/gdb.base/restore.exp                 |    2 +-
 gdb/testsuite/gdb.base/return.exp                  |    3 +-
 gdb/testsuite/gdb.base/return2.exp                 |    2 +-
 gdb/testsuite/gdb.base/savedregs.c                 |    2 +-
 gdb/testsuite/gdb.base/savedregs.exp               |    2 +-
 gdb/testsuite/gdb.base/scope.exp                   |    2 +-
 gdb/testsuite/gdb.base/sect-cmd.exp                |    3 +-
 gdb/testsuite/gdb.base/sep-proc.c                  |    2 +-
 gdb/testsuite/gdb.base/sep.c                       |    2 +-
 gdb/testsuite/gdb.base/sep.exp                     |    2 +-
 gdb/testsuite/gdb.base/sepdebug.c                  |    2 +-
 gdb/testsuite/gdb.base/sepdebug.exp                |    2 +-
 gdb/testsuite/gdb.base/sepsymtab.c                 |    2 +-
 gdb/testsuite/gdb.base/sepsymtab.exp               |    2 +-
 gdb/testsuite/gdb.base/set-lang-auto.exp           |    2 +-
 gdb/testsuite/gdb.base/setshow.exp                 |    2 +-
 gdb/testsuite/gdb.base/setvar.exp                  |    2 +-
 gdb/testsuite/gdb.base/shlib-call.exp              |    2 +-
 gdb/testsuite/gdb.base/shreloc.exp                 |    2 +-
 gdb/testsuite/gdb.base/sigall.exp                  |    2 +-
 gdb/testsuite/gdb.base/sigaltstack.c               |    2 +-
 gdb/testsuite/gdb.base/sigaltstack.exp             |    2 +-
 gdb/testsuite/gdb.base/sigbpt.c                    |    2 +-
 gdb/testsuite/gdb.base/sigbpt.exp                  |    2 +-
 gdb/testsuite/gdb.base/sigchld.c                   |    2 +-
 gdb/testsuite/gdb.base/sigchld.exp                 |    2 +-
 gdb/testsuite/gdb.base/siginfo-addr.c              |    2 +-
 gdb/testsuite/gdb.base/siginfo-addr.exp            |    2 +-
 gdb/testsuite/gdb.base/siginfo.c                   |    2 +-
 gdb/testsuite/gdb.base/siginfo.exp                 |    2 +-
 gdb/testsuite/gdb.base/signals.exp                 |    4 +-
 gdb/testsuite/gdb.base/signull.c                   |    3 +-
 gdb/testsuite/gdb.base/signull.exp                 |    2 +-
 gdb/testsuite/gdb.base/sigrepeat.c                 |    2 +-
 gdb/testsuite/gdb.base/sigrepeat.exp               |    2 +-
 gdb/testsuite/gdb.base/sigstep.c                   |    2 +-
 gdb/testsuite/gdb.base/sigstep.exp                 |    2 +-
 gdb/testsuite/gdb.base/sizeof.exp                  |    2 +-
 gdb/testsuite/gdb.base/so-disc-shr.c               |    2 +-
 gdb/testsuite/gdb.base/so-impl-ld.exp              |    2 +-
 gdb/testsuite/gdb.base/so-indr-cl.exp              |    2 +-
 gdb/testsuite/gdb.base/solib-disc.c                |    2 +-
 gdb/testsuite/gdb.base/solib-disc.exp              |    2 +-
 gdb/testsuite/gdb.base/solib-symbol-lib.c          |    2 +-
 gdb/testsuite/gdb.base/solib-symbol-main.c         |    2 +-
 gdb/testsuite/gdb.base/solib-symbol.exp            |    2 +-
 gdb/testsuite/gdb.base/solib-weak.c                |    2 +-
 gdb/testsuite/gdb.base/solib-weak.exp              |    2 +-
 gdb/testsuite/gdb.base/solib.exp                   |    3 +-
 gdb/testsuite/gdb.base/source-error.gdb            |    2 +-
 gdb/testsuite/gdb.base/source.exp                  |    2 +-
 gdb/testsuite/gdb.base/stack-checking.c            |    2 +-
 gdb/testsuite/gdb.base/stack-checking.exp          |    2 +-
 gdb/testsuite/gdb.base/start.c                     |    2 +-
 gdb/testsuite/gdb.base/start.exp                   |    2 +-
 gdb/testsuite/gdb.base/step-break.c                |    2 +-
 gdb/testsuite/gdb.base/step-break.exp              |    2 +-
 gdb/testsuite/gdb.base/step-bt.c                   |    2 +-
 gdb/testsuite/gdb.base/step-bt.exp                 |    2 +-
 gdb/testsuite/gdb.base/step-line.exp               |    2 +-
 gdb/testsuite/gdb.base/step-test.exp               |    2 +-
 gdb/testsuite/gdb.base/store.exp                   |    2 +-
 gdb/testsuite/gdb.base/structs.c                   |    2 +-
 gdb/testsuite/gdb.base/structs.exp                 |    2 +-
 gdb/testsuite/gdb.base/structs2.exp                |    2 +-
 gdb/testsuite/gdb.base/structs3.c                  |    3 +-
 gdb/testsuite/gdb.base/structs3.exp                |    2 +-
 gdb/testsuite/gdb.base/subst.exp                   |    2 +-
 gdb/testsuite/gdb.base/term.exp                    |    4 +-
 gdb/testsuite/gdb.base/trace-commands.exp          |    2 +-
 gdb/testsuite/gdb.base/twice.exp                   |    2 +-
 gdb/testsuite/gdb.base/type-opaque.exp             |    2 +-
 gdb/testsuite/gdb.base/unload.c                    |    2 +-
 gdb/testsuite/gdb.base/unload.exp                  |    3 +-
 gdb/testsuite/gdb.base/unloadshr.c                 |    2 +-
 gdb/testsuite/gdb.base/until.exp                   |    2 +-
 gdb/testsuite/gdb.base/value-double-free.c         |    2 +-
 gdb/testsuite/gdb.base/value-double-free.exp       |    2 +-
 gdb/testsuite/gdb.base/varargs.exp                 |    3 +-
 gdb/testsuite/gdb.base/volatile.exp                |    2 +-
 gdb/testsuite/gdb.base/watch_thread_num.c          |    2 +-
 gdb/testsuite/gdb.base/watch_thread_num.exp        |    2 +-
 gdb/testsuite/gdb.base/watchpoint-hw.c             |    2 +-
 gdb/testsuite/gdb.base/watchpoint-hw.exp           |    2 +-
 gdb/testsuite/gdb.base/watchpoint-solib-shr.c      |    2 +-
 gdb/testsuite/gdb.base/watchpoint-solib.c          |    2 +-
 gdb/testsuite/gdb.base/watchpoint-solib.exp        |    2 +-
 gdb/testsuite/gdb.base/watchpoint.exp              |   14 +-
 gdb/testsuite/gdb.base/weaklib1.c                  |    2 +-
 gdb/testsuite/gdb.base/weaklib2.c                  |    2 +-
 gdb/testsuite/gdb.base/whatis-exp.exp              |    2 +-
 gdb/testsuite/gdb.base/whatis.c                    |    2 +-
 gdb/testsuite/gdb.base/whatis.exp                  |    2 +-
 gdb/testsuite/gdb.cp/ambiguous.exp                 |    3 +-
 gdb/testsuite/gdb.cp/annota2.exp                   |    2 +-
 gdb/testsuite/gdb.cp/annota3.exp                   |    2 +-
 gdb/testsuite/gdb.cp/anon-union.exp                |    3 +-
 gdb/testsuite/gdb.cp/arg-reference.cc              |    2 +-
 gdb/testsuite/gdb.cp/arg-reference.exp             |    2 +-
 gdb/testsuite/gdb.cp/bool.cc                       |    2 +-
 gdb/testsuite/gdb.cp/bool.exp                      |    2 +-
 gdb/testsuite/gdb.cp/breakpoint.cc                 |    2 +-
 gdb/testsuite/gdb.cp/breakpoint.exp                |    2 +-
 gdb/testsuite/gdb.cp/bs15503.cc                    |    2 +-
 gdb/testsuite/gdb.cp/bs15503.exp                   |    2 +-
 gdb/testsuite/gdb.cp/call-c-1.c                    |    2 +-
 gdb/testsuite/gdb.cp/call-c.cc                     |    2 +-
 gdb/testsuite/gdb.cp/call-c.exp                    |    2 +-
 gdb/testsuite/gdb.cp/casts.exp                     |    2 +-
 gdb/testsuite/gdb.cp/class2.cc                     |    2 +-
 gdb/testsuite/gdb.cp/class2.exp                    |    2 +-
 gdb/testsuite/gdb.cp/classes.cc                    |    2 +-
 gdb/testsuite/gdb.cp/classes.exp                   |    2 +-
 gdb/testsuite/gdb.cp/cp-relocate.cc                |    2 +-
 gdb/testsuite/gdb.cp/cp-relocate.exp               |    2 +-
 gdb/testsuite/gdb.cp/cplusfuncs.exp                |    2 +-
 gdb/testsuite/gdb.cp/ctti.exp                      |    2 +-
 gdb/testsuite/gdb.cp/cttiadd.cc                    |    2 +-
 gdb/testsuite/gdb.cp/cttiadd1.cc                   |    2 +-
 gdb/testsuite/gdb.cp/cttiadd2.cc                   |    2 +-
 gdb/testsuite/gdb.cp/cttiadd3.cc                   |    2 +-
 gdb/testsuite/gdb.cp/demangle.exp                  |    2 +-
 gdb/testsuite/gdb.cp/derivation.exp                |    2 +-
 gdb/testsuite/gdb.cp/exception.cc                  |    2 +-
 gdb/testsuite/gdb.cp/exception.exp                 |    3 +-
 gdb/testsuite/gdb.cp/formatted-ref.cc              |    2 +-
 gdb/testsuite/gdb.cp/formatted-ref.exp             |    2 +-
 gdb/testsuite/gdb.cp/gdb1355.exp                   |    2 +-
 gdb/testsuite/gdb.cp/gdb2384-base.cc               |    2 +-
 gdb/testsuite/gdb.cp/gdb2384-base.h                |    2 +-
 gdb/testsuite/gdb.cp/gdb2384.cc                    |    2 +-
 gdb/testsuite/gdb.cp/gdb2384.exp                   |    2 +-
 gdb/testsuite/gdb.cp/hang.exp                      |    2 +-
 gdb/testsuite/gdb.cp/inherit.exp                   |    2 +-
 gdb/testsuite/gdb.cp/local.exp                     |    2 +-
 gdb/testsuite/gdb.cp/m-data.exp                    |    2 +-
 gdb/testsuite/gdb.cp/m-static.exp                  |    2 +-
 gdb/testsuite/gdb.cp/mb-ctor.exp                   |    2 +-
 gdb/testsuite/gdb.cp/mb-inline.exp                 |    2 +-
 gdb/testsuite/gdb.cp/mb-inline.h                   |    2 +-
 gdb/testsuite/gdb.cp/mb-inline1.cc                 |    2 +-
 gdb/testsuite/gdb.cp/mb-inline2.cc                 |    2 +-
 gdb/testsuite/gdb.cp/mb-templates.exp              |    2 +-
 gdb/testsuite/gdb.cp/member-ptr.cc                 |    3 +-
 gdb/testsuite/gdb.cp/member-ptr.exp                |    2 +-
 gdb/testsuite/gdb.cp/method.exp                    |    2 +-
 gdb/testsuite/gdb.cp/method2.exp                   |    2 +-
 gdb/testsuite/gdb.cp/misc.cc                       |    4 +-
 gdb/testsuite/gdb.cp/misc.exp                      |    2 +-
 gdb/testsuite/gdb.cp/namespace.exp                 |    2 +-
 gdb/testsuite/gdb.cp/namespace1.cc                 |    2 +-
 gdb/testsuite/gdb.cp/overload.exp                  |    2 +-
 gdb/testsuite/gdb.cp/ovldbreak.exp                 |    2 +-
 gdb/testsuite/gdb.cp/pass-by-ref.cc                |    2 +-
 gdb/testsuite/gdb.cp/pass-by-ref.exp               |    2 +-
 gdb/testsuite/gdb.cp/pr-1023.exp                   |    2 +-
 gdb/testsuite/gdb.cp/pr-1210.exp                   |    2 +-
 gdb/testsuite/gdb.cp/pr-574.cc                     |    2 +-
 gdb/testsuite/gdb.cp/pr-574.exp                    |    2 +-
 gdb/testsuite/gdb.cp/printmethod.cc                |    2 +-
 gdb/testsuite/gdb.cp/printmethod.exp               |    3 +-
 gdb/testsuite/gdb.cp/psmang.exp                    |    2 +-
 gdb/testsuite/gdb.cp/punctuator.exp                |    2 +-
 gdb/testsuite/gdb.cp/ref-params.cc                 |    2 +-
 gdb/testsuite/gdb.cp/ref-params.exp                |    2 +-
 gdb/testsuite/gdb.cp/ref-types.cc                  |    2 +-
 gdb/testsuite/gdb.cp/ref-types.exp                 |    3 +-
 gdb/testsuite/gdb.cp/rtti.exp                      |    2 +-
 gdb/testsuite/gdb.cp/rtti.h                        |    2 +-
 gdb/testsuite/gdb.cp/rtti1.cc                      |    2 +-
 gdb/testsuite/gdb.cp/rtti2.cc                      |    2 +-
 gdb/testsuite/gdb.cp/templates.exp                 |    2 +-
 gdb/testsuite/gdb.cp/try_catch.exp                 |    2 +-
 gdb/testsuite/gdb.cp/userdef.cc                    |    2 +-
 gdb/testsuite/gdb.cp/userdef.exp                   |    2 +-
 gdb/testsuite/gdb.cp/virtfunc.exp                  |    2 +-
 gdb/testsuite/gdb.disasm/am33.exp                  |    2 +-
 gdb/testsuite/gdb.disasm/h8300s.exp                |    2 +-
 gdb/testsuite/gdb.disasm/hppa.exp                  |    2 +-
 gdb/testsuite/gdb.disasm/mn10300.exp               |    2 +-
 gdb/testsuite/gdb.disasm/sh3.exp                   |    2 +-
 gdb/testsuite/gdb.disasm/t01_mov.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t02_mova.exp              |    2 +-
 gdb/testsuite/gdb.disasm/t03_add.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t04_sub.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t05_cmp.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t06_ari2.exp              |    2 +-
 gdb/testsuite/gdb.disasm/t07_ari3.exp              |    2 +-
 gdb/testsuite/gdb.disasm/t08_or.exp                |    2 +-
 gdb/testsuite/gdb.disasm/t09_xor.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t10_and.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t11_logs.exp              |    2 +-
 gdb/testsuite/gdb.disasm/t12_bit.exp               |    2 +-
 gdb/testsuite/gdb.disasm/t13_otr.exp               |    2 +-
 gdb/testsuite/gdb.dwarf2/Makefile.in               |    4 +-
 gdb/testsuite/gdb.dwarf2/dup-psym.S                |    2 +-
 gdb/testsuite/gdb.dwarf2/dup-psym.exp              |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-basic.S               |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-basic.exp             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-compressed.S          |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-compressed.exp        |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-cu-size.S             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-cu-size.exp           |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-intercu.S             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-intercu.exp           |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-intermix.S            |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-intermix.exp          |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-noloc.S               |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-noloc.exp             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-producer.S            |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-producer.exp          |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-ranges.S              |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-ranges.exp            |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-ranges2.S             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-ranges3.S             |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-ref-missing-frame.exp |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-strp.S                |    2 +-
 gdb/testsuite/gdb.dwarf2/dw2-strp.exp              |    2 +-
 gdb/testsuite/gdb.dwarf2/mac-fileno.S              |    2 +-
 gdb/testsuite/gdb.dwarf2/mac-fileno.exp            |    2 +-
 gdb/testsuite/gdb.dwarf2/main.c                    |    2 +-
 gdb/testsuite/gdb.fortran/Makefile.in              |    4 +-
 gdb/testsuite/gdb.fortran/array-element.exp        |    2 +-
 gdb/testsuite/gdb.fortran/complex.exp              |    2 +-
 gdb/testsuite/gdb.fortran/derived-type.exp         |    2 +-
 gdb/testsuite/gdb.fortran/exprs.exp                |    3 +-
 gdb/testsuite/gdb.fortran/subarray.exp             |    2 +-
 gdb/testsuite/gdb.fortran/types.exp                |    3 +-
 gdb/testsuite/gdb.gdb/complaints.exp               |    2 +-
 gdb/testsuite/gdb.gdb/observer.exp                 |    2 +-
 gdb/testsuite/gdb.gdb/selftest.exp                 |    2 +-
 gdb/testsuite/gdb.gdb/xfullpath.exp                |    2 +-
 gdb/testsuite/gdb.hp/gdb.aCC/exception.exp         |    2 +-
 gdb/testsuite/gdb.hp/gdb.aCC/optimize.exp          |    2 +-
 gdb/testsuite/gdb.hp/gdb.aCC/watch-cmd.exp         |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/callfwmall.exp    |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/dollar.exp        |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/hwwatchbus.exp    |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/pxdb.exp          |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/reg-pa64.exp      |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/sized-enum.exp    |    2 +-
 gdb/testsuite/gdb.hp/gdb.base-hp/so-thresh.exp     |    2 +-
 gdb/testsuite/gdb.hp/gdb.compat/xdb1.exp           |    3 +-
 gdb/testsuite/gdb.hp/gdb.compat/xdb2.exp           |    3 +-
 gdb/testsuite/gdb.hp/gdb.compat/xdb3.exp           |    2 +-
 gdb/testsuite/gdb.hp/gdb.defects/solib-d.exp       |    2 +-
 gdb/testsuite/gdb.java/jmain.exp                   |    2 +-
 gdb/testsuite/gdb.java/jmisc.exp                   |    2 +-
 gdb/testsuite/gdb.java/jprint.exp                  |    2 +-
 gdb/testsuite/gdb.java/jv-exp.exp                  |    2 +-
 gdb/testsuite/gdb.java/jv-print.exp                |    2 +-
 gdb/testsuite/gdb.mi/basics.c                      |    2 +-
 gdb/testsuite/gdb.mi/gdb2549.exp                   |    2 +-
 gdb/testsuite/gdb.mi/gdb669.exp                    |    2 +-
 gdb/testsuite/gdb.mi/gdb680.exp                    |    2 +-
 gdb/testsuite/gdb.mi/gdb701.exp                    |    2 +-
 gdb/testsuite/gdb.mi/gdb792.exp                    |    2 +-
 gdb/testsuite/gdb.mi/mi-async.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-basics.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi-break.exp                  |    3 +-
 gdb/testsuite/gdb.mi/mi-cli.exp                    |    3 +-
 gdb/testsuite/gdb.mi/mi-console.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi-disassemble.exp            |    2 +-
 gdb/testsuite/gdb.mi/mi-eval.exp                   |    2 +-
 gdb/testsuite/gdb.mi/mi-file-transfer.exp          |    2 +-
 gdb/testsuite/gdb.mi/mi-file.exp                   |    2 +-
 gdb/testsuite/gdb.mi/mi-hack-cli.exp               |    2 +-
 gdb/testsuite/gdb.mi/mi-nonstop.exp                |    3 +-
 gdb/testsuite/gdb.mi/mi-nsintrall.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-nsmoribund.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi-pending.c                  |    2 +-
 gdb/testsuite/gdb.mi/mi-pending.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi-pendshr.c                  |    2 +-
 gdb/testsuite/gdb.mi/mi-pthreads.exp               |    3 +-
 gdb/testsuite/gdb.mi/mi-read-memory.exp            |    3 +-
 gdb/testsuite/gdb.mi/mi-regs.exp                   |    3 +-
 gdb/testsuite/gdb.mi/mi-return.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi-simplerun.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-stack.c                    |    3 +-
 gdb/testsuite/gdb.mi/mi-stack.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-stepi.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi-syn-frame.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-until.exp                  |    3 +-
 gdb/testsuite/gdb.mi/mi-var-block.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-var-child-f.exp            |    2 +-
 gdb/testsuite/gdb.mi/mi-var-child.c                |    2 +-
 gdb/testsuite/gdb.mi/mi-var-child.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi-var-cmd.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi-var-cp.cc                  |    2 +-
 gdb/testsuite/gdb.mi/mi-var-cp.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi-var-display.exp            |    2 +-
 gdb/testsuite/gdb.mi/mi-var-invalidate.exp         |    2 +-
 gdb/testsuite/gdb.mi/mi-watch.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-basics.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi2-break.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-cli.exp                   |    3 +-
 gdb/testsuite/gdb.mi/mi2-console.exp               |    2 +-
 gdb/testsuite/gdb.mi/mi2-disassemble.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi2-eval.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-file.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-hack-cli.exp              |    2 +-
 gdb/testsuite/gdb.mi/mi2-pthreads.exp              |    3 +-
 gdb/testsuite/gdb.mi/mi2-read-memory.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi2-regs.exp                  |    2 +-
 gdb/testsuite/gdb.mi/mi2-return.exp                |    2 +-
 gdb/testsuite/gdb.mi/mi2-simplerun.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-stack.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-stepi.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-syn-frame.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-until.exp                 |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-block.exp             |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-cmd.exp               |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-display.exp           |    2 +-
 gdb/testsuite/gdb.mi/mi2-watch.exp                 |    2 +-
 gdb/testsuite/gdb.mi/non-stop.c                    |    3 +-
 gdb/testsuite/gdb.mi/nsintrall.c                   |    2 +-
 gdb/testsuite/gdb.mi/nsmoribund.c                  |    2 +-
 gdb/testsuite/gdb.mi/pthreads.c                    |    3 +-
 gdb/testsuite/gdb.mi/var-cmd.c                     |    2 +-
 gdb/testsuite/gdb.modula2/Makefile.in              |    2 +-
 gdb/testsuite/gdb.modula2/unbounded-array.exp      |    2 +-
 gdb/testsuite/gdb.modula2/unbounded1.c             |    2 +-
 gdb/testsuite/gdb.objc/basicclass.exp              |    2 +-
 gdb/testsuite/gdb.objc/nondebug.exp                |    2 +-
 gdb/testsuite/gdb.objc/objcdecode.exp              |    2 +-
 gdb/testsuite/gdb.opt/clobbered-registers-O2.c     |    2 +-
 gdb/testsuite/gdb.opt/clobbered-registers-O2.exp   |    2 +-
 gdb/testsuite/gdb.pascal/floats.exp                |    2 +-
 gdb/testsuite/gdb.pascal/floats.pas                |    2 +-
 gdb/testsuite/gdb.pascal/hello.exp                 |    2 +-
 gdb/testsuite/gdb.pascal/integers.exp              |    2 +-
 gdb/testsuite/gdb.pascal/integers.pas              |    2 +-
 gdb/testsuite/gdb.pascal/types.exp                 |    3 +-
 gdb/testsuite/gdb.python/python-value.c            |    2 +-
 gdb/testsuite/gdb.python/python-value.exp          |    2 +-
 gdb/testsuite/gdb.python/python.exp                |    2 +-
 gdb/testsuite/gdb.server/ext-attach.c              |    2 +-
 gdb/testsuite/gdb.server/ext-attach.exp            |    2 +-
 gdb/testsuite/gdb.server/ext-run.exp               |    2 +-
 gdb/testsuite/gdb.server/file-transfer.exp         |    2 +-
 gdb/testsuite/gdb.server/server-mon.exp            |    2 +-
 gdb/testsuite/gdb.server/server-run.exp            |    2 +-
 gdb/testsuite/gdb.server/server.c                  |    2 +-
 gdb/testsuite/gdb.stabs/exclfwd.exp                |    2 +-
 gdb/testsuite/gdb.stabs/exclfwd.h                  |    2 +-
 gdb/testsuite/gdb.stabs/exclfwd1.c                 |    2 +-
 gdb/testsuite/gdb.stabs/exclfwd2.c                 |    2 +-
 gdb/testsuite/gdb.stabs/weird.exp                  |    2 +-
 gdb/testsuite/gdb.threads/attach-into-signal.c     |    2 +-
 gdb/testsuite/gdb.threads/attach-into-signal.exp   |    9 +-
 gdb/testsuite/gdb.threads/attach-stopped.c         |    2 +-
 gdb/testsuite/gdb.threads/attach-stopped.exp       |    9 +-
 gdb/testsuite/gdb.threads/attachstop-mt.c          |    2 +-
 gdb/testsuite/gdb.threads/attachstop-mt.exp        |    6 +-
 gdb/testsuite/gdb.threads/bp_in_thread.c           |    2 +-
 gdb/testsuite/gdb.threads/bp_in_thread.exp         |    2 +-
 gdb/testsuite/gdb.threads/execl.c                  |    2 +-
 gdb/testsuite/gdb.threads/execl.exp                |    2 +-
 gdb/testsuite/gdb.threads/execl1.c                 |    2 +-
 gdb/testsuite/gdb.threads/fork-child-threads.c     |    2 +-
 gdb/testsuite/gdb.threads/fork-child-threads.exp   |    2 +-
 gdb/testsuite/gdb.threads/gcore-thread.exp         |    2 +-
 gdb/testsuite/gdb.threads/killed.c                 |    2 +-
 gdb/testsuite/gdb.threads/killed.exp               |    2 +-
 gdb/testsuite/gdb.threads/linux-dp.exp             |    2 +-
 gdb/testsuite/gdb.threads/manythreads.c            |    2 +-
 gdb/testsuite/gdb.threads/manythreads.exp          |    2 +-
 gdb/testsuite/gdb.threads/multi-create.c           |    2 +-
 gdb/testsuite/gdb.threads/multi-create.exp         |    2 +-
 gdb/testsuite/gdb.threads/print-threads.exp        |    2 +-
 gdb/testsuite/gdb.threads/pthread_cond_wait.c      |    2 +-
 gdb/testsuite/gdb.threads/pthread_cond_wait.exp    |    2 +-
 gdb/testsuite/gdb.threads/pthreads.c               |    3 +-
 gdb/testsuite/gdb.threads/pthreads.exp             |    4 +-
 gdb/testsuite/gdb.threads/schedlock.c              |    2 +-
 gdb/testsuite/gdb.threads/schedlock.exp            |    2 +-
 gdb/testsuite/gdb.threads/sigthread.exp            |    2 +-
 gdb/testsuite/gdb.threads/staticthreads.c          |    2 +-
 gdb/testsuite/gdb.threads/staticthreads.exp        |    2 +-
 gdb/testsuite/gdb.threads/step.exp                 |    2 +-
 gdb/testsuite/gdb.threads/step2.exp                |    2 +-
 gdb/testsuite/gdb.threads/switch-threads.c         |    2 +-
 gdb/testsuite/gdb.threads/switch-threads.exp       |    2 +-
 gdb/testsuite/gdb.threads/thread-specific.c        |    2 +-
 gdb/testsuite/gdb.threads/thread-specific.exp      |    2 +-
 gdb/testsuite/gdb.threads/thread_check.c           |    2 +-
 gdb/testsuite/gdb.threads/thread_check.exp         |    2 +-
 gdb/testsuite/gdb.threads/thread_events.c          |    2 +-
 gdb/testsuite/gdb.threads/thread_events.exp        |    2 +-
 gdb/testsuite/gdb.threads/threadapply.c            |    2 +-
 gdb/testsuite/gdb.threads/threadapply.exp          |    2 +-
 gdb/testsuite/gdb.threads/tls-nodebug.exp          |    2 +-
 gdb/testsuite/gdb.threads/tls-shared.exp           |    2 +-
 gdb/testsuite/gdb.threads/tls.exp                  |    2 +-
 gdb/testsuite/gdb.threads/tls2.c                   |    2 +-
 gdb/testsuite/gdb.threads/watchthreads.c           |    2 +-
 gdb/testsuite/gdb.threads/watchthreads.exp         |    2 +-
 gdb/testsuite/gdb.trace/actions.exp                |    2 +-
 gdb/testsuite/gdb.trace/backtrace.exp              |    2 +-
 gdb/testsuite/gdb.trace/circ.exp                   |    2 +-
 gdb/testsuite/gdb.trace/collection.exp             |    2 +-
 gdb/testsuite/gdb.trace/deltrace.exp               |    2 +-
 gdb/testsuite/gdb.trace/infotrace.exp              |    2 +-
 gdb/testsuite/gdb.trace/limits.exp                 |    2 +-
 gdb/testsuite/gdb.trace/packetlen.exp              |    2 +-
 gdb/testsuite/gdb.trace/passc-dyn.exp              |    2 +-
 gdb/testsuite/gdb.trace/passcount.exp              |    2 +-
 gdb/testsuite/gdb.trace/report.exp                 |    2 +-
 gdb/testsuite/gdb.trace/save-trace.exp             |    2 +-
 gdb/testsuite/gdb.trace/tfind.exp                  |    3 +-
 gdb/testsuite/gdb.trace/tracecmd.exp               |    2 +-
 gdb/testsuite/gdb.trace/while-dyn.exp              |    2 +-
 gdb/testsuite/gdb.trace/while-stepping.exp         |    2 +-
 gdb/testsuite/gdb.xml/tdesc-arch.exp               |    2 +-
 gdb/testsuite/gdb.xml/tdesc-errors.exp             |    2 +-
 gdb/testsuite/gdb.xml/tdesc-regs.exp               |    2 +-
 gdb/testsuite/gdb.xml/tdesc-xinclude.exp           |    2 +-
 gdb/testsuite/lib/ada.exp                          |    2 +-
 gdb/testsuite/lib/compiler.c                       |    2 +-
 gdb/testsuite/lib/compiler.cc                      |    3 +-
 gdb/testsuite/lib/cp-support.exp                   |    2 +-
 gdb/testsuite/lib/gdb.exp                          |    2 +-
 gdb/testsuite/lib/gdbserver-support.exp            |    2 +-
 gdb/testsuite/lib/java.exp                         |    2 +-
 gdb/testsuite/lib/mi-support.exp                   |    2 +-
 gdb/testsuite/lib/pascal.exp                       |    2 +-
 gdb/testsuite/lib/set_unbuffered_mode.c            |    2 +-
 gdb/testsuite/lib/trace-support.exp                |    2 +-
 gdb/thread.c                                       |    3 +-
 gdb/top.c                                          |    4 +-
 gdb/top.h                                          |    2 +-
 gdb/tracepoint.c                                   |    2 +-
 gdb/tracepoint.h                                   |    2 +-
 gdb/trad-frame.c                                   |    2 +-
 gdb/trad-frame.h                                   |    2 +-
 gdb/tramp-frame.c                                  |    2 +-
 gdb/tramp-frame.h                                  |    2 +-
 gdb/tui/tui-command.c                              |    4 +-
 gdb/tui/tui-command.h                              |    2 +-
 gdb/tui/tui-data.c                                 |    4 +-
 gdb/tui/tui-data.h                                 |    2 +-
 gdb/tui/tui-disasm.c                               |    2 +-
 gdb/tui/tui-disasm.h                               |    2 +-
 gdb/tui/tui-file.c                                 |    3 +-
 gdb/tui/tui-file.h                                 |    2 +-
 gdb/tui/tui-hooks.c                                |    2 +-
 gdb/tui/tui-hooks.h                                |    2 +-
 gdb/tui/tui-interp.c                               |    2 +-
 gdb/tui/tui-io.c                                   |    2 +-
 gdb/tui/tui-io.h                                   |    2 +-
 gdb/tui/tui-layout.c                               |    2 +-
 gdb/tui/tui-layout.h                               |    2 +-
 gdb/tui/tui-main.c                                 |    2 +-
 gdb/tui/tui-out.c                                  |    2 +-
 gdb/tui/tui-regs.c                                 |    2 +-
 gdb/tui/tui-regs.h                                 |    2 +-
 gdb/tui/tui-source.c                               |    2 +-
 gdb/tui/tui-source.h                               |    2 +-
 gdb/tui/tui-stack.c                                |    4 +-
 gdb/tui/tui-stack.h                                |    2 +-
 gdb/tui/tui-win.c                                  |    4 +-
 gdb/tui/tui-win.h                                  |    2 +-
 gdb/tui/tui-windata.c                              |    2 +-
 gdb/tui/tui-windata.h                              |    2 +-
 gdb/tui/tui-wingeneral.c                           |    2 +-
 gdb/tui/tui-wingeneral.h                           |    2 +-
 gdb/tui/tui-winsource.c                            |    4 +-
 gdb/tui/tui-winsource.h                            |    2 +-
 gdb/tui/tui.c                                      |    2 +-
 gdb/tui/tui.h                                      |    2 +-
 gdb/typeprint.c                                    |    2 +-
 gdb/typeprint.h                                    |    2 +-
 gdb/ui-file.c                                      |    2 +-
 gdb/ui-file.h                                      |    2 +-
 gdb/ui-out.c                                       |    2 +-
 gdb/ui-out.h                                       |    2 +-
 gdb/user-regs.c                                    |    3 +-
 gdb/user-regs.h                                    |    2 +-
 gdb/utils.c                                        |    4 +-
 gdb/v850-tdep.c                                    |    2 +-
 gdb/valarith.c                                     |    2 +-
 gdb/valops.c                                       |    4 +-
 gdb/valprint.c                                     |   36 +-
 gdb/valprint.h                                     |    2 +-
 gdb/value.c                                        |    4 +-
 gdb/value.h                                        |    2 +-
 gdb/varobj.c                                       |    4 +-
 gdb/varobj.h                                       |    2 +-
 gdb/vax-nat.c                                      |    2 +-
 gdb/vax-tdep.c                                     |    2 +-
 gdb/vax-tdep.h                                     |    3 +-
 gdb/vaxbsd-nat.c                                   |    2 +-
 gdb/vaxnbsd-tdep.c                                 |    2 +-
 gdb/vaxobsd-tdep.c                                 |    2 +-
 gdb/vec.c                                          |    3 +-
 gdb/vec.h                                          |    3 +-
 gdb/version.h                                      |    2 +-
 gdb/version.in                                     |    2 +-
 gdb/win32-nat.c                                    |    2 +-
 gdb/win32-termcap.c                                |    2 +-
 gdb/wrapper.c                                      |    3 +-
 gdb/wrapper.h                                      |    3 +-
 gdb/xcoffread.c                                    |    2 +-
 gdb/xcoffsolib.c                                   |    2 +-
 gdb/xcoffsolib.h                                   |    2 +-
 gdb/xml-support.c                                  |    2 +-
 gdb/xml-support.h                                  |    2 +-
 gdb/xml-tdesc.c                                    |    2 +-
 gdb/xml-tdesc.h                                    |    2 +-
 gdb/xstormy16-tdep.c                               |    2 +-
 gdb/xtensa-config.c                                |    3 +-
 gdb/xtensa-linux-nat.c                             |    2 +-
 gdb/xtensa-linux-tdep.c                            |    2 +-
 gdb/xtensa-tdep.c                                  |    3 +-
 gdb/xtensa-tdep.h                                  |    3 +-
 gdb/xtensa-xtregs.c                                |    2 +-
 opcodes/ChangeLog                                  |    9 +
 opcodes/or32-opc.c                                 |   30 +-
 opcodes/s390-opc.txt                               |    1 +
 sim/ChangeLog                                      |   78 +
 sim/cris/Makefile.in                               |    1 -
 sim/cris/cris-tmpl.c                               |    9 +
 sim/cris/crisv10f.c                                |    1 +
 sim/cris/crisv32f.c                                |    1 +
 sim/cris/semcrisv32f-switch.c                      |   30 +-
 sim/cris/sim-if.c                                  |  506 +-
 sim/cris/sim-main.h                                |    3 +
 sim/cris/traps.c                                   |  294 +-
 sim/testsuite/ChangeLog                            |   27 +
 sim/testsuite/sim/cris/asm/badarch1.ms             |    5 +
 sim/testsuite/sim/cris/asm/opterr1.ms              |    2 +-
 sim/testsuite/sim/cris/asm/opterr2.ms              |    2 +-
 sim/testsuite/sim/cris/asm/pid1.ms                 |   45 +
 sim/testsuite/sim/cris/c/access1.c                 |   16 +
 sim/testsuite/sim/cris/c/badldso1.c                |    7 +
 sim/testsuite/sim/cris/c/badldso2.c                |    8 +
 sim/testsuite/sim/cris/c/badldso3.c                |    9 +
 sim/testsuite/sim/cris/c/c.exp                     |   34 +
 sim/testsuite/sim/cris/c/exitg1.c                  |   20 +
 sim/testsuite/sim/cris/c/exitg2.c                  |    7 +
 sim/testsuite/sim/cris/c/helloaout.c               |   10 +
 sim/testsuite/sim/cris/c/hellodyn.c                |    5 +
 sim/testsuite/sim/cris/c/hellodyn2.c               |    5 +
 sim/testsuite/sim/cris/c/mmap1.c                   |    6 +-
 sim/testsuite/sim/cris/c/mmap4.c                   |    5 +
 sim/testsuite/sim/cris/c/settls1.c                 |   49 +
 sim/testsuite/sim/cris/c/uname1.c                  |   21 +
 sim/testsuite/sim/cris/c/writev1.c                 |   25 +
 sim/testsuite/sim/cris/c/writev2.c                 |   28 +
 1631 files changed, 18326 insertions(+), 16821 deletions(-)
 create mode 100644 bfd/ChangeLog-2008
 create mode 100644 gdb/ChangeLog-2008
 create mode 100644 sim/testsuite/sim/cris/asm/badarch1.ms
 create mode 100644 sim/testsuite/sim/cris/asm/pid1.ms
 create mode 100644 sim/testsuite/sim/cris/c/access1.c
 create mode 100644 sim/testsuite/sim/cris/c/badldso1.c
 create mode 100644 sim/testsuite/sim/cris/c/badldso2.c
 create mode 100644 sim/testsuite/sim/cris/c/badldso3.c
 create mode 100644 sim/testsuite/sim/cris/c/exitg1.c
 create mode 100644 sim/testsuite/sim/cris/c/exitg2.c
 create mode 100644 sim/testsuite/sim/cris/c/helloaout.c
 create mode 100644 sim/testsuite/sim/cris/c/hellodyn.c
 create mode 100644 sim/testsuite/sim/cris/c/hellodyn2.c
 create mode 100644 sim/testsuite/sim/cris/c/mmap4.c
 create mode 100644 sim/testsuite/sim/cris/c/settls1.c
 create mode 100644 sim/testsuite/sim/cris/c/uname1.c
 create mode 100644 sim/testsuite/sim/cris/c/writev1.c
 create mode 100644 sim/testsuite/sim/cris/c/writev2.c

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b989a72..4e2726d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3377 +1,36 @@
-2008-12-23  Jon Beniston <jon@beniston.com>
+2009-01-03  H.J. Lu  <hongjiu.lu@intel.com>
 
-	* Makefile.am: Add LM32 object files and dependencies.
-	* Makefile.in: Regenerate.
-	* archures.c: Add LM32 architechiture info.
-	* targets.c: Likewise.
-	* reloc.c: Likewise.
-	* bfd-in2.h: Regenerate.
-	* config.bfd: Add LM32 targets.
-	* configure.in: Likewise.
-	* configure: Regenerate.
-	* cpu-lm32.c: New file.
-	* elf32-lm32.c: New file.
+	* coff-ppc.c: Add 2009 to Copyright.
+	* elf32-cris.c: Likewise.
+	* elflink.c: Likewise.
 
-2008-12-23  H.J. Lu  <hongjiu.lu@intel.com>
+2009-01-03  Hans-Peter Nilsson  <hp@axis.com>
 
-	PR ld/7036
-	* elfxx-ia64.c (elfNN_ia64_relax_section): Assume linker will
-	always insert 32byte between the .plt and .text sections after
-	the the first relaxation pass.
+	* elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
+	gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
 
-2008-12-23  Nick Clifton  <nickc@redhat.com>
+2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
 
-	PR 7093
-	* elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF
-	object files.
+	PR ld/9679
+	* elflink.c (elf_merge_st_other): New.
+	(_bfd_elf_merge_symbol): Use it on skipped weak definitions and
+	hide them if needed.
+	(elf_link_add_object_symbols): Updated.
 
-2008-12-23  Tristan Gingold  <gingold@adacore.com>
+2009-01-02  H.J. Lu  <hongjiu.lu@intel.com>
 
-	* mach-o.c (bfd_mach_o_make_bfd_section): Use the standard ELF name
-	.eh_frame for __TEXT.__eh_frame so that it is recognized by gdb.
-	Use shorter sections name for well known sections.
-	(bfd_mach_o_scan_read_dylinker): Only put dylinker name in the
-	section content.
-	(bfd_mach_o_scan_read_segment): Use shorter sections name for
-	well known segments.
-	(bfd_mach_o_scan_read_command): Ignore some new commands.
-	(bfd_mach_o_openr_next_archived_file): Use more descriptive names
-	for members filename.
-	(bfd_mach_o_fat_extract): New function to easily extract members
-	of a fat binary.
-	* mach-o.h (bfd_mach_o_load_command_type): Add new constants.
-	(bfd_mach_o_dylinker_command): Fix comment and reindent.
-	(bfd_mach_o_fat_extract): New prototype.
+	PR ld/9676
+	* elflink.c (elf_link_add_object_symbols): Update def_dynamic,
+	ref_dynamic and dynamic_def fields when setting def_regular
+	to 1.
 
-2008-12-23  Johan Olmutz Nielsen  <jnielsen@ddci.com>
+2009-01-02  Curtis Mackie  <curtmackevo@gmail.com>
 
-	* coffcode.h (coff_write_object_contents): Always initialise
-	section.s_page.
+	PR 9682
+	* coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
+	literal.
 
-2008-12-23  Andreas Schwab  <schwab@suse.de>
-
-	* elf32-m68k.c (elf_m68k_discard_copies): Use SYMBOL_CALLS_LOCAL.
-	(elf_m68k_relocate_section): Use SYMBOL_CALLS_LOCAL and
-	SYMBOL_REFERENCES_LOCAL.
-	(elf_m68k_relocate_section): Likewise.
-
-2008-12-23  Nick Clifton  <nickc@redhat.com>
-
-	* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs
-	field.
-	(_bfd_elf_make_ifunc_reloc_section): Remove prototype.
-	* elf.c (swap_out_syms): Remove STT_IFUNC support.
-	(elf_find_function): Likewise.
-	* elf32-arm.c (arm_elf_find_function): Likewise.
-	(elf32_arm_adjust_dynamic_symbol): Likewise.
-	(elf32_arm_swap_symbol_in): Likewise.
-	(elf32_arm_is_function_type): Likewise.
-	* elf32-i386.c (is_indirect_symbol): Delete.
-	(elf_i386_check_relocs): Remove STT_IFUNC support.
-	(allocate_dynrelocs): Likewise.
-	(elf_i386_relocate_section): Likewise.
-	* elf64-x86-64.c (is_indirect_symbol): Delete.
-	(elf64_x86_64_check_relocs): Remove STT_IFUNC support.
-	(allocate_dynrelocs): Likewise.
-	(elf64_x86_64_relocate_section): Likewise.
-	* elfcode.h (elf_slurp_symbol_table): Likewise.
-	* elflink.c (_bfd_elf_adjust_symbol): Likewise.
-	(get_ifunc_reloc_section_name): Delete.
-	(_bfd_elf_make_ifunc_reloc_section): Delete.
-	* syms.c (BSF_INDIRECT_FUNCTION): Delete.
-	(bfd_print_symbol_vandf): Remove STT_IFUNC support.
-	(bfd_decode_symclass): Likewise.
-	* bfd-in2.h: Regenerate.
-
-2008-12-20  Hans-Peter Nilsson  <hp@axis.com>
-
-	* elf32-cris.c 	(cris_elf_howto_table): Add entry for R_CRIS_32_IE.
-	(cris_reloc_map): Similarly.
-	(cris_elf_relocate_section, cris_elf_gc_sweep_hook)
-	(cris_elf_check_relocs): Handle R_CRIS_32_IE.
-	* reloc.c (bfd_reloc_code_type): Add entry for R_CRIS_32_IE.
-	* bfd-in2.h, libbfd.h: Regenerate.
-
-2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
-
-	* configure: Regenerate.
-
-2008-12-17  Hans-Peter Nilsson  <hp@axis.com>
-
-	* elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
-	action for symbols other than bfd_link_hash_indirect.
-	(cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
-	gate h != NULL for h->def_regular test.
-
-2008-12-15  Hans-Peter Nilsson  <hp@axis.com>
-
-	* elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
-	(elf_backend_copy_indirect_symbol): Define to above.
-
-	* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
-	r_type.  Fix formatting.
-	(cris_elf_relocate_section) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
-	<R_CRIS_32_PCREL>: Also break early if the symbol doesn't get
-	emitted as a dynamic one.
-	(cris_elf_check_relocs) <R_CRIS_7, R_CRIS_16, R_CRIS_32>: Fork
-	from PCREL relocs code and simplify; don't fall through.
-	<R_CRIS_8_PCREL, R_CRIS_16_PCREL, R_CRIS_32_PCREL>: Simplify for
-	pcrel only.  For non-local or overridable symbols in a DSO, always
-	keep count of relocs, not just when -Bsymbolic.  Don't emit
-	message nor mark as TEXTREL here.
-	(elf_cris_discard_excess_dso_dynamics): Emit warning and mark as
-	TEXTREL here, if there are nondiscarded pcrel relocs.
-
-	* elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
-	using ibfd, not abfd.
-
-2008-12-11  Alan Modra  <amodra@bigpond.net.au>
-
-	PR 7041
-	* elf64-ppc.c (func_desc_adjust): Correct logic making fake function
-	descriptors.  Similarly correct making function descriptors dynamic.
-
-2008-12-10  Alan Modra  <amodra@bigpond.net.au>
-
-	* elf32-spu.h (struct spu_elf_params): Add num_regions.
-	* elf32-spu.c (spu_elf_auto_overlay): Handle multiple overlay regions.
-
-2008-12-10  Alan Modra  <amodra@bigpond.net.au>
-
-	* elf32-spu.g (struct spu_elf_params, enum _ovly_flavour): New.
-	(spu_elf_setup): Declare.
-	(spu_elf_create_sections, spu_elf_size_stubs): Update prototype.
-	(spu_elf_build_stubs, spu_elf_check_vma): Likewise.
-	* elf32-spu.c (struct spu_link_hash_table): Add "params". Remove
-	various other fields now in "params".  Adjust code throughout.
-	(struct call_info, struct function_info): Move earlier in file.
-	(struct spu_elf_stack_info): Likewise.
-	(spu_elf_setup): New function.
-	(spu_elf_create_sections): Remove args other than "info".
-	(spu_elf_size_stubs, spu_elf_build_stubs, spu_elf_check_vma): Likewise.
-	(maybe_needs_stubs): Remove "output_bfd" arg.  Adjust all calls.
-	(interesting_section): Similarly with "obfd" arg.
-	(needs_ovl_stub): Adjust output_section test.
-	(allocate_spuear_stubs): Likewise.
-	(OVL_STUB_SIZE): Don't define.
-	(ovl_stub_size): New function, use in place of OVL_STUB_SIZE.
-	(build_stub): Test params->ovly_flavour rather than OVL_STUB_SIZE.
-	(spu_elf_auto_overlay): Remove args other than "info".  Make use
-	of size returned from spu_elf_load_ovl_mgr.
-	(spu_elf_stack_analysis): Remove args other than "info".
-	(spu_elf_relocate_section): Tidy setting of "ea".
-
-2008-12-10  Alan Modra  <amodra@bigpond.net.au>
-
-	* elf32-spu.c (find_function_stack_adjust): Don't limit number
-	of insns scanned.  Correct sp tests.  Handle "fsmbi" and "andbi".
-	(mark_detached_root): New function.
-	(build_call_tree): Call it.
-	(sort_calls): Don't do void* arithmetic.
-	(define_ovtab_symbol): Don't abort on symbols defined in linker scripts.
-	(discover_functions): Consider STT_SECTION symbols too.
-	(collect_lib_sections): Don't cut short call tree traversal
-	when function size is too large.
-
-2008-12-09  Tom Tromey  <tromey@redhat.com>
-
-	* pef.c (bfd_pef_parse_traceback_table): Add parens to placate gcc
-	4.4.
-
-2008-12-09  Tristan Gingold  <gingold@adacore.com>
-
-	* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.
-
-2008-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
-
-	* elf64-s390.c (elf_s390_check_relocs): Initialize
-	htab->elf.dynobj if necessary.
-
-2008-12-03  Nick Clifton  <nickc@redhat.com>
-
-	* syms.c (struct bfd_symbol): Add new flag BSF_INDIRECT_FUNCTION.
-	Remove redundant flag BFD_FORT_COMM_DEFAULT_VALUE.  Renumber flags
-	to remove gaps.
-	(bfd_print_symbol_vandf): Return 'i' for BSF_INDIRECT_FUNCTION.
-	(bfd_decode_symclass): Likewise.
-	* elf.c (swap_out_syms): Translate BSF_INDIRECT_FUNCTION into
-	STT_IFUNC.
-	(elf_find_function): Treat STT_IFUNC in the same way as STT_FUNC.
-	(_bfd_elf_is_function_type): Likewise.
-	* elf32-arm.c (arm_elf_find_function): Likewise.
-	(elf32_arm_adjust_dynamic_symbol): Likewise.
-	(elf32_arm_swap_symbol_in): Likewise.
-	(elf32_arm_additional_program_headers): Likewise.
-	* elf32-i386.c (is_indirect_symbol): New function.
-	(elf_i386_check_relocs): Also generate dynamic relocs for
-	relocations against STT_IFUNC symbols.
-	(allocate_dynrelocs): Likewise.
-	(elf_i386_relocate_section): Likewise.
-	* elf64-x86-64.c (is_indirect_symbol): New function.
-	(elf64_x86_64_check_relocs): Also generate dynamic relocs for
-	relocations against STT_IFUNC symbols.
-	(allocate_dynrelocs): Likewise.
-	(elf64_x86_64_relocate_section): Likewise.
-	* elfcode.h (elf_slurp_symbol_table): Translate STT_IFUNC into
-	BSF_INDIRECT_FUNCTION.
-	* elflink.c (_bfd_elf_adjust_dynamic_reloc_section): Add support
-	for STT_IFUNC symbols.
-	(get_ifunc_reloc_section_name): New function.
-	(_bfd_elf_make_ifunc_reloc_section): New function.
-	* elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs field.
-	* bfd-in2.h: Regenerate.
-
-2008-12-02  Tristan Gingold  <gingold@adacore.com>
-
-	* config.bfd: Add x86_64-*-darwin*
-
-2008-11-28  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
-
-	* hpux-core.c: Don't include sys/file.h.
-
-2008-11-28  Joshua Kinard  <kumba@gentoo.org>
-
-	* aoutx.h (NAME): Add case statements for bfd_mach_mips14000,
-	bfd_mach_mips16000.
-	* archures.c (bfd_architecture): Add .#defines for bfd_mach_mips14000,
-	bfd_mach_mips16000.
-	* bfd-in2.h: Regenerate.
-	* cpu-mips.c: Add enums I_mips14000, I_mips16000.
-	(arch_info_struct): Add refs to R14000, R16000.
-	* elfxx-mips.c (mips_set_isa_flags): Handle bfd_mach_mips14000,
-	bfd_mach_mips16000.
-	(mips_mach_extensions): Map R14000, R16000 to R10000.
-
-2008-11-27   M R Swami Reddy <MR.Swami.Reddy@nsc.com>
-
-	* Add PIC support for CR16 target.
-	* elf32-cr16.c (R_CR16_GOT_REGREL20, R_CR16_GOTC_REGREL20 and
-	R_CR16_GLOB_DAT): New macros
-	(cr16_elf_howto_table): Add entries for for R_CR16_GOT_REGREL20,
-	R_CR16_GOTC_REGREL20 and R_CR16_GLOB_DAT.
-	(cr16_reloc_map): Ditto
-	(_bfd_cr16_elf_create_got_section): New function to create GOT section.
-	(_bfd_cr16_elf_create_dynamic_sections): New function to create dynamic
-	section.
-	(_bfd_cr16_elf_adjust_dynamic_symbol): New function to adjust symbol
-	defined by dynamic object.
-	(_bfd_cr16_elf_size_dynamic_sections): New function to find the size of
-	dynamic sections.
-	(_bfd_cr16_elf_finish_dynamic_symbol): New function to handle dynamic
-	symbols.
-	(_bfd_cr16_elf_finish_dynamic_symbol): New function to handle dynamic
-	sections.
-	(bfd_cr16_elf32_create_embedded_relocs): New function to create
-	embedded relocs in .emreloc section in memory for .data.rel section.
-	(_bfd_cr16_elf_reloc_type_class): New function for classify reloc types.
-	(cr16_elf_check_relocs): New function for checking reloc types in first
-	phase.
-	(cr16_elf_final_link_relocate): Update for handling the new reloc types
-	R_CR16_GOT_REGREL20 and R_CR16_GOTC_REGREL20.
-	(elf32_cr16_relax_section): Update relax implementation.
-	* reloc.c (bfd_reloc_code_type): Add entries for R_CR16_GOT_REGREL20,
-	R_CR16_GOTC_REGREL20 and R_CR16_GLOB_DAT.
-	* bfd-in.h (bfd_boolean bfd_cr16_elf32_create_embedded_relocs): Declared
-	* libbfd.h, bfd-in2.h: Regenerate.
-
-2008-11-26  Alan Modra  <amodra@bigpond.net.au>
-
-	PR 7047
-	* configure.in: Bump version.
-	* configure: Regenerate.
-	* elflink.c (_bfd_elf_link_assign_sym_version): Continue matching
-	against version nodes when a global match is a wildcard.  Similarly
-	continue matching on local wildcard matches, rather than only
-	continuing for "*".  Have any global wildcard match override a
-	local wildcard match.  Correct logic hiding unversioned symbol.
-	(bfd_elf_size_dynamic_sections): Update for changes to struct
-	bfd_elf_version_expr.
-
-2008-11-25  Joel Brobecker  <brobecker@adacore.com>
-
-	* configure.in: Deactivate large-file support on native x86-solaris
-	as well unless the user explicitly requested it.
-	* configure: Regenerate.
-
-2008-11-25  Joseph Myers  <joseph@codesourcery.com>
-
-	* elf32-arm.c (elf32_arm_final_link_relocate): Do not turn
-	branches to undefine weak symbols into branches to the next
-	instruction if creating PLT entries for those symbols.
-
-2008-11-25  Nick Clifton  <nickc@redhat.com>
-
-	* elflink.c (is_reloc_section): New function.  Returns true if the
-	given name matches the name of the reloc-containing section
-	associated with the given section.
-	(get_dynamic_reloc_section_name): New function.  Computes the name
-	of the section that contains the dynamic relocs associated with
-	the given section.
-	(_bfd_elf_get_dynamic_reloc_section): New function.  Returns a
-	pointer to the section containing the dynamic relocs associated
-	with the given section.
-	(_bfd_elf_make_dynamic_reloc_section): New function.  Creates a
-	section to contain the dynamic relocs associated with a given
-	section.
-	* elf-bfd.h: Prototype the new functions.
-	* elf-m10300.c (mn10300_elf_check_relocs): Use new functions.
-	(mn10300_elf_final_link_relocs): Likewise.
-	* elf32-arm.c (reloc_section_p): Delete - replaced by new
-	functions.
-	(elf32_arm_final_link_relocate): Use new functions.
-	(elf32_arm_check_relocs): Likewise.
-	* elf32-cris.c (cris_elf_relocate_section): Likewise.
-	(elf_cris_check_relocs): Likewise.
-	* elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
-	* elf32-i370.c (i370_elf_check_relocs): Likewise.
-	(i370_elf_relocate_section): Likewise.
-	* elf32-i386.c (elf_i386_check_relocs): Likewise.
-	* elf32-m32r.c (m32r_elf_relocate_section): Likewise.
-	(m32r_elf_check_relocs): Likewise.
-	* elf32-m68k.c (elf_m68k_check_relocs): Likewise.
-	* elf32_ppc.c (ppc_elf_check_relocs): Likewise.
-	(ppc_elf_relocate_section): Likewise.
-	* elf32-s390.c (elf_s390_check_relocs): Likewise.
-	* elf32-sh.c (sh_elf_relocate_section): Likewise.
-	(sh_elf_check_relocs): Likewise.
-	* elf32-vax.c (elf_vax_check_relocs): Likewise.
-	(elf_vax_relocate_section): Likewise.
-	* elf64-alpha.c (elf64_alpha_check_relocs): Likewise.
-	* elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
-	* elf64-s390.c (elf_s390_check_relocs): Likewise.
-	* elf64-sh64.c (sh_elf64_relocate_section): Likewise.
-	* elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
-	* elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
-	* elf32-bfin.c (bfin_check_relocs): Remove redundant local
-	variable 'sreloc'.
-	(bfin_relocate_section): Likewise.
-	* elf32-v850.c (v850_elf_check_relocs): Likewise.
-
-2008-11-23  Hans-Peter Nilsson  <hp@axis.com>
-
-	Implement TLS for CRIS.
-	* elf32-cris.c: Include limits.h.
-	(TLSHOWTO16): Redefine in terms of and move contents to...
-	(TLSHOWTO16X): New macro.
-	(TLSHOWTO16S, LGOT_REG_NDX, LGOT_DTP_NDX, LGOT_ALLOC_NELTS_FOR)
-	(elf_cris_hash_entry): New macros.
-	(cris_elf_howto_table): Make R_CRIS_16_DTPREL,
-	R_CRIS_16_GOT_TPREL, R_CRIS_16_TPREL check overflow for signed,
-	not unsigned values.
-	(cris_info_to_howto_rela): Make r_type a enum elf_cris_reloc_type,
-	not unsigned int.
-	(struct elf_cris_link_hash_entry): New members reg_got_refcount,
-	tprel_refcount, and dtp_refcount.
-	(struct elf_cris_link_hash_table): New member dtpmod_refcount.
-	(elf_cris_link_hash_newfunc): Initialize new members.
-	(elf_cris_link_hash_table_create): Similar.
-	(cris_final_link_relocate, elf_cris_reloc_type_class): Use a
-	temporary variable when testing the relocation type.
-	(cris_elf_gc_mark_hook): Ditto.  Add default case where needed.
-	(cris_elf_gc_sweep_hook): Ditto.  Handle reference-counting for
-	the new assembly-generated relocs.  Rewrite refcount handling to
-	set temporary variables to pointers to reloc-specific variables
-	and entry size and common code for the update.
-	(additional_relocation_error_msg_count): New variable.
-	(cris_elf_relocate_section): Use a function-local variable srelgot
-	for the .rela.got section instead of looking it up for every need.
-	Make r_type a enum elf_cris_reloc_type, not int.  Actually set
-	symname for non-local symbols.  Handle new assembly-generated
-	relocs.  For overflow, emit additional messages for the new 16-bit
-	relocs as well as R_CRIS_16_GOTPLT and R_CRIS_16_GOT.
-	(elf_cris_finish_dynamic_symbol): Use elf_cris_finish_dynamic_symbol
-	instead of plain casts.  Check new hash entry member
-	reg_got_refcount when checking whether to emit a GOT entry.
-	(elf_cris_finish_dynamic_sections): Update head comment to warn
-	about emitting relocs here.  Use a temporary variable when testing
-	the relocation type.
-	(elf_cris_discard_excess_program_dynamics)
-	(elf_cris_adjust_gotplt_to_got): Handle reference counting change
-	regarding h->reg_got_refcount.
-	(cris_elf_check_relocs): Rewrite refcount handling to set
-	temporary variables and entry size and common code for the update
-	for local symbols.  Use new macro elf_cris_hash_entry.  Adjust
-	allocation for change in reference counting of GOT entries for
-	local symbols.
-	(elf_cris_size_dynamic_sections): Adjust calculated size of
-	.got.plt and .rela.got if we need a GOT entry for a
-	R_CRIS_DTPMOD relocation.
-	(elf_cris_got_elt_size): New function.
-	(elf_backend_got_elt_size): Define.
-
-2008-11-21  Sterling Augustine  <sterling@tensilica.com>
-
-	* xtensa-isa.c (xtensa_state_is_shared_or): New function.
-
-2008-11-21  Hans-Peter Nilsson  <hp@axis.com>
-
-	* elf-bfd.h (struct elf_backend_data): New member got_elt_size.
-	(_bfd_elf_default_got_elt_size): Declare.
-	* elflink.c (struct alloc_got_off_arg): Replace member got_elt_size
-	by new member info.
-	(elf_gc_allocate_got_offsets): Adjust for calling bed->got_elt_size
-	to get the element size instead of using a gofarg entry.
-	(bfd_elf_gc_common_finalize_got_offsets): Similar.
-	(_bfd_elf_default_got_elt_size): New function.
-	* elfxx-target.h: New macro elf_backend_got_elt_size.
-	(elfNN_bed): Use it.
-
-2008-11-20  Tristan Gingold  <gingold@adacore.com>
-
-	* bfdwin.c: Fix comment.
-
-2008-11-20  Tristan Gingold  <gingold@adacore.com>
-
-	* bfd.c (is32bit): Use architecture information for non-ELF
-	targets.
-
-2008-11-20  Alan Modra  <amodra@bigpond.net.au>
-
-	* elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for
-	TLS_LD even when symbol is used with other TLS reloc types.
-	(ppc_elf_relocate_section): Bypass symbol checks when using tlsld_got.
-	Leave addend zero on LD DTPMOD dynamic reloc.
-
-2008-11-19  Bob Wilson  <bob.wilson@acm.org>
-
-	* xtensa-modules.c (sysregs): Add MMID, VECBASE, EPC5, EPC6, EPC7,
-	EXCSAVE5, EXCSAVE6, EXCSAVE7, EPS5, EPS6, EPS7, CPENABLE,
-	SCOMPARE1, and THREADPTR registers.
-	(NUM_SYSREGS, MAX_USER_REG): Update.
-	(states): Change width of INTERRUPT, WindowBase, WindowStart, and
-	INTENABLE.  Add VECBASE, EPC5, EPC6, EPC7, EXCSAVE5, EXCSAVE6,
-	EXCSAVE7, EPS6, EPS6, EPS7, THREADPTR, CPENABLE, and SCOMPARE1 states.
-	(NUM_STATES): Update.
-	(enum xtensa_state_id): Add entries for new states.
-	(enum xtensa_field_id): Add entries for xt_wbr15_imm and xt_wbr18_imm
-	fields, along with functions to extract and set them.
-	(regfiles): Change number of AR registers to 32.
-	(Operand_ar0_encode, Operand_ar4_encode, Operand_ar8_encode,
-	Operand_ar12_encode, Operand_ars_entry_encode): Update register mask.
-	(operands): Add entries for tp7, xt_wbr15_label, xt_wbr18_label,
-	xt_wbr15_imm, and xt_wbr18_imm operands, along with functions to
-	encode and decode them.
-	(enum xtensa_operand_id): Add entries for new operands.
-	(Iclass_xt_iclass_rfi_stateArgs): Add EPC5, EPC6, EPC7, EPS5, EPS6, and
-	EPC7 states.
-	(Iclass_xt_iclass_rfdo_stateArgs): Replace EPC4 and EPS4 by EPC6 and
-	EPS6, respectively.
-	(iclasses): Add entries for rur_threadptr, wur_threadptr,
-	xt_iclass_wsr_176, xt_iclass_rsr_epc5, xt_iclass_wsr_epc5,
-	xt_iclass_xsr_epc5, xt_iclass_rsr_excsave5, xt_iclass_wsr_excsave5,
-	xt_iclass_xsr_excsave5, xt_iclass_rsr_epc6, xt_iclass_wsr_epc6,
-	xt_iclass_xsr_epc6, xt_iclass_rsr_excsave6, xt_iclass_wsr_excsave6,
-	xt_iclass_xsr_excsave6, xt_iclass_rsr_epc7, xt_iclass_wsr_epc7,
-	xt_iclass_xsr_epc7, xt_iclass_rsr_excsave7, xt_iclass_wsr_excsave7,
-	xt_iclass_xsr_excsave7, xt_iclass_rsr_eps5, xt_iclass_wsr_eps5,
-	xt_iclass_xsr_eps5, xt_iclass_rsr_eps6, xt_iclass_wsr_eps6,
-	xt_iclass_xsr_eps6, xt_iclass_rsr_eps7, xt_iclass_wsr_eps7,
-	xt_iclass_xsr_eps7, xt_iclass_rsr_vecbase, xt_iclass_wsr_vecbase,
-	xt_iclass_xsr_vecbase, xt_iclass_mul16, xt_iclass_wsr_mmid,
-	xt_iclass_icache_lock, xt_iclass_dcache_lock, xt_iclass_rsr_cpenable,
-	xt_iclass_wsr_cpenable, xt_iclass_xsr_cpenable, xt_iclass_clamp,
-	xt_iclass_minmax, xt_iclass_sx, xt_iclass_l32ai, xt_iclass_s32ri,


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2008-12-28 15:46 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2008-12-28 15:46 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  f4603aa50b6cd6f4ad07a9980eb3d722e055b327 (commit)
       via  43f17405181c357d49d5193f0d16665964e6e5b0 (commit)
      from  9a83d7cb53d2c6913e1bf156e60ac46d611ef423 (commit)

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

- Log -----------------------------------------------------------------
commit f4603aa50b6cd6f4ad07a9980eb3d722e055b327
Merge: 9a83d7cb53d2c6913e1bf156e60ac46d611ef423 43f17405181c357d49d5193f0d16665964e6e5b0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Dec 28 16:44:27 2008 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount
    
    Conflicts:
    	gdb/ada-lang.c
    	gdb/gdbtypes.c

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

Summary of changes:
 gdb/ChangeLog       |   25 +++++++++++++++++++++
 gdb/ada-lang.c      |   60 +++++++++++++++++++++++---------------------------
 gdb/ada-typeprint.c |    5 ++-
 gdb/ada-valprint.c  |    2 +-
 gdb/eval.c          |    2 +-
 gdb/gdbtypes.c      |   22 ++++++++++--------
 gdb/gdbtypes.h      |    8 +++---
 gdb/hppa-tdep.c     |    2 +-
 gdb/mdebugread.c    |    4 +-
 gdb/valarith.c      |    2 +-
 10 files changed, 78 insertions(+), 54 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c78678b..c21bf2b 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,28 @@
+2008-12-28  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	Fix TYPE_HIGH_BOUND for TYPE_CODE_RANGE using arbitrary TYPE_NFIELDS in
+	preparation for supporting DW_AT_byte_stride.
+	* ada-lang.c (packed_array_type, ada_index_type): Use TYPE_INDEX_TYPE.
+	(ada_array_bound_from_type): Move `index_type' declaration to the
+	function start.  New variable `retval'.  Return the bounds for
+	TYPE_CODE_RANGE using TYPE_LOW_BOUND and TYPE_HIGH_BOUND.  Abort on
+	invalid index type codes.
+	* ada-typeprint.c (print_range): Set `upper_bound' for TYPE_CODE_RANGE
+	now using TYPE_HIGH_BOUND.
+	* ada-valprint.c (val_print_packed_array_elements): Use `index_type'.
+	* eval.c (evaluate_subexp_standard): Use TYPE_INDEX_TYPE.
+	* gdbtypes.c (create_range_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
+	refer to the number of fields only through TYPE_NFIELDS.
+	(create_array_type): Use TYPE_INDEX_TYPE.
+	(check_typedef): Use TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND.
+	* gdbtypes.h (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED)
+	(TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED): Use TYPE_INDEX_TYPE.
+	(TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): Use
+	TYPE_INDEX_TYPE, TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
+	* hppa-tdep.c (hppa_alignof <TYPE_CODE_ARRAY>): Use TYPE_INDEX_TYPE.
+	* mdebugread.c (parse_type): Use TYPE_LOW_BOUND, TYPE_HIGH_BOUND,
+	* valarith.c (value_bit_index): Use TYPE_INDEX_TYPE.
+
 2008-12-26  Sandra Loosemore  <sandra@codesourcery.com>
 
 	* breakpoint.c (update_watchpoint): Refactor to avoid compiler
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 3070696..1f52009 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -1777,11 +1777,11 @@ packed_array_type (struct type *type, long *elt_bits)
   new_elt_type = packed_array_type (ada_check_typedef (TYPE_TARGET_TYPE (type)),
                                     elt_bits);
   new_type = alloc_type (TYPE_OBJFILE (type), new_elt_type);
-  create_array_type (new_type, new_elt_type, TYPE_FIELD_TYPE (type, 0));
+  create_array_type (new_type, new_elt_type, TYPE_INDEX_TYPE (type));
   TYPE_FIELD_BITSIZE (new_type, 0) = *elt_bits;
   TYPE_NAME (new_type) = ada_type_name (type);
 
-  if (get_discrete_bounds (TYPE_FIELD_TYPE (type, 0),
+  if (get_discrete_bounds (TYPE_INDEX_TYPE (type),
                            &low_bound, &high_bound) < 0)
     low_bound = high_bound = 0;
   if (high_bound < low_bound)
@@ -2468,7 +2468,7 @@ ada_index_type (struct type *type, int n)
 
       for (i = 1; i < n; i += 1)
         type = TYPE_TARGET_TYPE (type);
-      result_type = TYPE_TARGET_TYPE (TYPE_FIELD_TYPE (type, 0));
+      result_type = TYPE_TARGET_TYPE (TYPE_INDEX_TYPE (type));
       /* FIXME: The stabs type r(0,0);bound;bound in an array type
          has a target type of TYPE_CODE_UNDEF.  We compensate here, but
          perhaps stabsread.c would make more sense.  */
@@ -2492,8 +2492,10 @@ static LONGEST
 ada_array_bound_from_type (struct type * arr_type, int n, int which,
                            struct type ** typep)
 {
-  struct type *type;
-  struct type *index_type_desc;
+  struct type *type, *index_type_desc, *index_type;
+  LONGEST retval;
+
+  gdb_assert (which == 0 || which == 1);
 
   if (ada_is_packed_array_type (arr_type))
     arr_type = decode_packed_array_type (arr_type);
@@ -2511,10 +2513,11 @@ ada_array_bound_from_type (struct type * arr_type, int n, int which,
     type = arr_type;
 
   index_type_desc = ada_find_parallel_type (type, "___XA");
-  if (index_type_desc == NULL)
+  if (index_type_desc != NULL)
+    index_type = to_fixed_range_type (TYPE_FIELD_NAME (index_type_desc, n - 1),
+				      NULL, TYPE_OBJFILE (arr_type));
+  else
     {
-      struct type *index_type;
-
       while (n > 1)
         {
           type = TYPE_TARGET_TYPE (type);
@@ -2522,34 +2525,27 @@ ada_array_bound_from_type (struct type * arr_type, int n, int which,
         }
 
       index_type = TYPE_INDEX_TYPE (type);
-      if (typep != NULL)
-        *typep = index_type;
-
-      /* The index type is either a range type or an enumerated type.
-         For the range type, we have some macros that allow us to
-         extract the value of the low and high bounds.  But they
-         do now work for enumerated types.  The expressions used
-         below work for both range and enum types.  */
-      return
-        (LONGEST) (which == 0
-                   ? TYPE_FIELD_BITPOS (index_type, 0)
-                   : TYPE_FIELD_BITPOS (index_type,
-                                        TYPE_NFIELDS (index_type) - 1));
     }
-  else
+
+  switch (TYPE_CODE (index_type))
     {
-      struct type *index_type =
-        to_fixed_range_type (TYPE_FIELD_NAME (index_type_desc, n - 1),
-                             NULL, TYPE_OBJFILE (arr_type));
+    case TYPE_CODE_RANGE:
+      retval = which == 0 ? TYPE_LOW_BOUND (index_type)
+			  : TYPE_HIGH_BOUND (index_type);
+      break;
+    case TYPE_CODE_ENUM:
+      retval = which == 0 ? TYPE_FIELD_BITPOS (index_type, 0)
+			  : TYPE_FIELD_BITPOS (index_type,
+					       TYPE_NFIELDS (index_type) - 1);
+      break;
+    default:
+      internal_error (__FILE__, __LINE__, _("invalid type code of index type"));
+    }
 
-      if (typep != NULL)
-        *typep = index_type;
+  if (typep != NULL)
+    *typep = index_type;
 
-      return
-        (LONGEST) (which == 0
-                   ? TYPE_LOW_BOUND (index_type)
-                   : TYPE_HIGH_BOUND (index_type));
-    }
+  return retval;
 }
 
 /* Given that arr is an array value, returns the lower bound of the
diff --git a/gdb/ada-typeprint.c b/gdb/ada-typeprint.c
index cb4fecd..ad4a73c 100644
--- a/gdb/ada-typeprint.c
+++ b/gdb/ada-typeprint.c
@@ -170,8 +170,9 @@ print_range (struct type *type, struct ui_file *stream)
       /* We extract the range type bounds respectively from the first element
          and the last element of the type->fields array */
       const LONGEST lower_bound = (LONGEST) TYPE_LOW_BOUND (type);
-      const LONGEST upper_bound =
-	(LONGEST) TYPE_FIELD_BITPOS (type, TYPE_NFIELDS (type) - 1);
+      const LONGEST upper_bound = (TYPE_CODE (type) == TYPE_CODE_RANGE
+	? (LONGEST) TYPE_HIGH_BOUND (type)
+	: (LONGEST) TYPE_FIELD_BITPOS (type, TYPE_NFIELDS (type) - 1));
 
       ada_print_scalar (target_type, lower_bound, stream);
       fprintf_filtered (stream, " .. ");
diff --git a/gdb/ada-valprint.c b/gdb/ada-valprint.c
index cc8352f..4dad1fb 100644
--- a/gdb/ada-valprint.c
+++ b/gdb/ada-valprint.c
@@ -162,7 +162,7 @@ val_print_packed_array_elements (struct type *type, const gdb_byte *valaddr,
 
   {
     LONGEST high;
-    if (get_discrete_bounds (TYPE_FIELD_TYPE (type, 0), &low, &high) < 0)
+    if (get_discrete_bounds (index_type, &low, &high) < 0)
       len = 1;
     else
       len = high - low + 1;
diff --git a/gdb/eval.c b/gdb/eval.c
index ccb6b74..cfc42c1 100644
--- a/gdb/eval.c
+++ b/gdb/eval.c
@@ -824,7 +824,7 @@ evaluate_subexp_standard (struct type *expect_type,
       if (expect_type != NULL_TYPE && noside != EVAL_SKIP
 	  && TYPE_CODE (type) == TYPE_CODE_ARRAY)
 	{
-	  struct type *range_type = TYPE_FIELD_TYPE (type, 0);
+	  struct type *range_type = TYPE_INDEX_TYPE (type);
 	  struct type *element_type = TYPE_TARGET_TYPE (type);
 	  struct value *array = allocate_value (expect_type);
 	  int element_size = TYPE_LENGTH (check_typedef (element_type));
diff --git a/gdb/gdbtypes.c b/gdb/gdbtypes.c
index 1d9bc2d..1cfbb77 100644
--- a/gdb/gdbtypes.c
+++ b/gdb/gdbtypes.c
@@ -743,16 +743,18 @@ create_range_type (struct type *result_type, struct type *index_type,
   else
     TYPE_LENGTH (result_type) = TYPE_LENGTH (check_typedef (index_type));
   TYPE_NFIELDS (result_type) = 2;
-  TYPE_FIELDS (result_type) = (struct field *)
-    TYPE_ALLOC (result_type, 2 * sizeof (struct field));
-  memset (TYPE_FIELDS (result_type), 0, 2 * sizeof (struct field));
-  TYPE_FIELD_BITPOS (result_type, 0) = low_bound;
-  TYPE_FIELD_BITPOS (result_type, 1) = high_bound;
+  TYPE_FIELDS (result_type) = TYPE_ALLOC (result_type,
+					  TYPE_NFIELDS (result_type)
+					  * sizeof (struct field));
+  memset (TYPE_FIELDS (result_type), 0,
+	  TYPE_NFIELDS (result_type) * sizeof (struct field));
+  TYPE_LOW_BOUND (result_type) = low_bound;
+  TYPE_HIGH_BOUND (result_type) = high_bound;
 
   if (low_bound >= 0)
     TYPE_UNSIGNED (result_type) = 1;
 
-  return (result_type);
+  return result_type;
 }
 
 /* Set *LOWP and *HIGHP to the lower and upper bounds of discrete type
@@ -870,7 +872,7 @@ create_array_type (struct type *result_type,
     (struct field *) TYPE_ALLOC (result_type, sizeof (struct field));
   memset (TYPE_FIELDS (result_type), 0, sizeof (struct field));
   /* FIXME: type alloc.  */
-  TYPE_FIELD_TYPE (result_type, 0) = range_type;
+  TYPE_INDEX_TYPE (result_type) = range_type;
   TYPE_VPTR_FIELDNO (result_type) = -1;
 
   /* TYPE_FLAG_TARGET_STUB will take care of zero length arrays */
@@ -1561,15 +1563,15 @@ check_typedef (struct type *type)
 	}
       else if (TYPE_CODE (type) == TYPE_CODE_ARRAY
 	       && TYPE_NFIELDS (type) == 1
-	       && (TYPE_CODE (range_type = TYPE_FIELD_TYPE (type, 0))
+	       && (TYPE_CODE (range_type = TYPE_INDEX_TYPE (type))
 		   == TYPE_CODE_RANGE))
 	{
 	  /* Now recompute the length of the array type, based on its
 	     number of elements and the target type's length.
 	     Watch out for Ada null Ada arrays where the high bound
 	     is smaller than the low bound.  */
-	  const int low_bound = TYPE_FIELD_BITPOS (range_type, 0);
-	  const int high_bound = TYPE_FIELD_BITPOS (range_type, 1);
+	  const int low_bound = TYPE_LOW_BOUND (range_type);
+	  const int high_bound = TYPE_HIGH_BOUND (range_type);
 	  int nb_elements;
 	
 	  if (high_bound < low_bound)
diff --git a/gdb/gdbtypes.h b/gdb/gdbtypes.h
index 3894dff..f7fe759 100644
--- a/gdb/gdbtypes.h
+++ b/gdb/gdbtypes.h
@@ -815,15 +815,15 @@ extern void allocate_cplus_struct_type (struct type *);
 /* Moto-specific stuff for FORTRAN arrays */
 
 #define TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED(arraytype) \
-   (TYPE_FIELD_ARTIFICIAL((TYPE_FIELD_TYPE((arraytype),0)),1))
+   (TYPE_FIELD_ARTIFICIAL(TYPE_INDEX_TYPE((arraytype)),1))
 #define TYPE_ARRAY_LOWER_BOUND_IS_UNDEFINED(arraytype) \
-   (TYPE_FIELD_ARTIFICIAL((TYPE_FIELD_TYPE((arraytype),0)),0))
+   (TYPE_FIELD_ARTIFICIAL(TYPE_INDEX_TYPE((arraytype)),0))
 
 #define TYPE_ARRAY_UPPER_BOUND_VALUE(arraytype) \
-   (TYPE_FIELD_BITPOS((TYPE_FIELD_TYPE((arraytype),0)),1))
+   (TYPE_HIGH_BOUND(TYPE_INDEX_TYPE((arraytype))))
 
 #define TYPE_ARRAY_LOWER_BOUND_VALUE(arraytype) \
-   (TYPE_FIELD_BITPOS((TYPE_FIELD_TYPE((arraytype),0)),0))
+   (TYPE_LOW_BOUND(TYPE_INDEX_TYPE((arraytype))))
 
 /* C++ */
 
diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 5b6676e..7785957 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -1313,7 +1313,7 @@ hppa_alignof (struct type *type)
     case TYPE_CODE_FLT:
       return TYPE_LENGTH (type);
     case TYPE_CODE_ARRAY:
-      return hppa_alignof (TYPE_FIELD_TYPE (type, 0));
+      return hppa_alignof (TYPE_INDEX_TYPE (type));
     case TYPE_CODE_STRUCT:
     case TYPE_CODE_UNION:
       max_align = 1;
diff --git a/gdb/mdebugread.c b/gdb/mdebugread.c
index edc6ac0..0135b79 100644
--- a/gdb/mdebugread.c
+++ b/gdb/mdebugread.c
@@ -1644,11 +1644,11 @@ parse_type (int fd, union aux_ext *ax, unsigned int aux_index, int *bs,
 			  TYPE_ALLOC (tp, 2 * sizeof (struct field)));
       TYPE_FIELD_NAME (tp, 0) = obsavestring ("Low", strlen ("Low"),
 					    &current_objfile->objfile_obstack);
-      TYPE_FIELD_BITPOS (tp, 0) = AUX_GET_DNLOW (bigend, ax);
+      TYPE_LOW_BOUND (tp) = AUX_GET_DNLOW (bigend, ax);
       ax++;
       TYPE_FIELD_NAME (tp, 1) = obsavestring ("High", strlen ("High"),
 					    &current_objfile->objfile_obstack);
-      TYPE_FIELD_BITPOS (tp, 1) = AUX_GET_DNHIGH (bigend, ax);
+      TYPE_HIGH_BOUND (tp) = AUX_GET_DNHIGH (bigend, ax);
       ax++;
     }
 
diff --git a/gdb/valarith.c b/gdb/valarith.c
index 59f67d3..b192ff9 100644
--- a/gdb/valarith.c
+++ b/gdb/valarith.c
@@ -1557,7 +1557,7 @@ value_bit_index (struct type *type, const gdb_byte *valaddr, int index)
   LONGEST low_bound, high_bound;
   LONGEST word;
   unsigned rel_index;
-  struct type *range = TYPE_FIELD_TYPE (type, 0);
+  struct type *range = TYPE_INDEX_TYPE (type);
   if (get_discrete_bounds (range, &low_bound, &high_bound) < 0)
     return -2;
   if (index < low_bound || index > high_bound)


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2008-12-28 15:35 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2008-12-28 15:35 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  9a83d7cb53d2c6913e1bf156e60ac46d611ef423 (commit)
       via  4598bfbbd66f2bbd11c1d95e7caf3f7a7a1ed432 (commit)
       via  b242b90839d4e79e53317b746414dddf50e2169f (commit)
       via  563227ba14831f6468d71abf0ca50ed7174e0327 (commit)
       via  e793c2a84c2111d3c7fb51a8f04a76eac8ee3758 (commit)
       via  4941be4d1396562382640da4a2e8dd2ba718b317 (commit)
       via  286970c6bd53c6a5a252282e334d2469aa20dba7 (commit)
       via  49eb3a97ce331c38c1133a965df6cfdbbd4c49c0 (commit)
       via  8217d8b8fedfa6445fbfff732b65bacf017ac0db (commit)
       via  1ea30b1c3e6a1b2a9f038471203e9e043ec9f22a (commit)
       via  0c374d82d1079c91a6d9d8626eee65067e12d69b (commit)
       via  5ec7c2090a73e8a488afd418c7ac25a7f112e773 (commit)
       via  4912758dc497fcc09e2ce3d04d8eb34fc7f903bd (commit)
       via  15d23d26929391714006d3e4e82e66982d4c253f (commit)
       via  0d1845ec33cf76021a56ae85c75337b6b294ade7 (commit)
       via  2baaecceed1201d82a1919a9a6cc2f094b44ed6b (commit)
       via  d0aad6615cd46494a6207650ced04e2f6c8e4df4 (commit)
       via  3adb16ca001caec36ca9a226eb66be4a1676da3e (commit)
       via  91148184de08f58587c3b566ddb3a717914bcd99 (commit)
       via  93cb045b7c85caa6fe372df5ada9dbb3ecbf4bcb (commit)
       via  506746b25e05bb7397ca7739abd332b058a1df92 (commit)
       via  1c34cff5284df4f439e045b457c8114ebe0b0ede (commit)
       via  d8e503dc80e0427b3e5d688984d27587493ebaa6 (commit)
       via  74b8003e546928852c25de825a46353ba35cbd91 (commit)
       via  b82726d591ea1d9d68e8f48d108ab646eebc09d3 (commit)
       via  396dc5343b8a584da7d4a381df9dfffc84a18949 (commit)
       via  d01dd7a822a487c73576e740c491065d9e5d39da (commit)
       via  4f3c18d1d8d13a93071126c0d0017852d3ed6a00 (commit)
       via  75d44a52d91ea5a96b4de336b3918abd8797d827 (commit)
       via  21db5bdb710737d641c0c2fc7fd54feb3cb9cc9f (commit)
      from  d5cfcbafc9b74ab21f215585aab411c6b43f5620 (commit)

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

- Log -----------------------------------------------------------------
commit 9a83d7cb53d2c6913e1bf156e60ac46d611ef423
Merge: d5cfcbafc9b74ab21f215585aab411c6b43f5620 4598bfbbd66f2bbd11c1d95e7caf3f7a7a1ed432
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Sun Dec 28 15:22:30 2008 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 bfd/ChangeLog                       |   97 ++-
 bfd/Makefile.am                     |    9 +
 bfd/Makefile.in                     |    9 +
 bfd/archures.c                      |    4 +
 bfd/bfd-in2.h                       |   20 +-
 bfd/coffcode.h                      |    2 +
 bfd/config.bfd                      |   11 +
 bfd/configure                       |    2 +
 bfd/configure.in                    |    2 +
 bfd/cpu-lm32.c                      |   41 +
 bfd/elf-bfd.h                       |    5 -
 bfd/elf.c                           |    7 +-
 bfd/elf32-arm.c                     |   12 +-
 bfd/elf32-i386.c                    |   51 +-
 bfd/elf32-lm32.c                    | 2909 +++++++++++++++++++++++++++++++++++
 bfd/elf32-m68k.c                    |   32 +-
 bfd/elf64-x86-64.c                  |   53 +-
 bfd/elfcode.h                       |    3 -
 bfd/elflink.c                       |   74 -
 bfd/elfxx-ia64.c                    |   14 +-
 bfd/libbfd.h                        |    9 +
 bfd/mach-o.c                        |  116 ++-
 bfd/mach-o.h                        |   15 +-
 bfd/reloc.c                         |   21 +
 bfd/syms.c                          |   11 +-
 bfd/targets.c                       |    3 +
 bfd/version.h                       |    2 +-
 gdb/ChangeLog                       |   25 +
 gdb/breakpoint.c                    |   16 +-
 gdb/f-valprint.c                    |    4 +-
 gdb/printcmd.c                      |   21 +-
 gdb/python/python-internal.h        |    1 +
 gdb/python/python-value.c           |    4 -
 gdb/stack.c                         |   13 +-
 gdb/testsuite/ChangeLog             |    4 +
 gdb/testsuite/gdb.cp/punctuator.exp |   24 +-
 gdb/value.h                         |    8 +-
 gdb/version.in                      |    2 +-
 include/ChangeLog                   |    4 +
 include/coff/ChangeLog              |    4 +
 include/coff/ti.h                   |    9 +
 include/dis-asm.h                   |    1 +
 include/elf/ChangeLog               |    8 +
 include/elf/common.h                |    1 -
 include/elf/lm32.h                  |   56 +
 opcodes/ChangeLog                   |   45 +
 opcodes/Makefile.am                 |   44 +
 opcodes/Makefile.in                 |   52 +-
 opcodes/cgen-asm.in                 |    2 +-
 opcodes/cgen-dis.in                 |    4 +-
 opcodes/cgen-ibld.in                |    4 +-
 opcodes/configure                   |    1 +
 opcodes/configure.in                |    1 +
 opcodes/disassemble.c               |    6 +
 opcodes/i386-dis.c                  |   20 +-
 opcodes/i386-opc.h                  |    3 +-
 opcodes/i386-opc.tbl                |   28 +-
 opcodes/i386-tbl.h                  |  204 ++-
 opcodes/lm32-asm.c                  |  747 +++++++++
 opcodes/lm32-desc.c                 | 1183 ++++++++++++++
 opcodes/lm32-desc.h                 |  246 +++
 opcodes/{cgen-dis.in => lm32-dis.c} |  128 ++-
 opcodes/lm32-ibld.c                 | 1061 +++++++++++++
 opcodes/lm32-opc.c                  |  876 +++++++++++
 opcodes/lm32-opc.h                  |  105 ++
 opcodes/lm32-opinst.c               |  473 ++++++
 opcodes/po/ga.po                    |  252 ++--
 sim/frv/ChangeLog                   |    5 +
 sim/frv/arch.c                      |   23 +-
 sim/frv/arch.h                      |   23 +-
 sim/frv/cpu.c                       |   23 +-
 sim/frv/cpu.h                       |   23 +-
 sim/frv/cpuall.h                    |   23 +-
 sim/frv/decode.c                    |   23 +-
 sim/frv/decode.h                    |   23 +-
 sim/frv/model.c                     |   23 +-
 sim/frv/sem.c                       |  123 +-
 77 files changed, 8891 insertions(+), 645 deletions(-)
 create mode 100644 bfd/cpu-lm32.c
 create mode 100644 bfd/elf32-lm32.c
 create mode 100644 include/elf/lm32.h
 create mode 100644 opcodes/lm32-asm.c
 create mode 100644 opcodes/lm32-desc.c
 create mode 100644 opcodes/lm32-desc.h
 copy opcodes/{cgen-dis.in => lm32-dis.c} (76%)
 create mode 100644 opcodes/lm32-ibld.c
 create mode 100644 opcodes/lm32-opc.c
 create mode 100644 opcodes/lm32-opc.h
 create mode 100644 opcodes/lm32-opinst.c

First 500 lines of diff:
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 6cd350f..b989a72 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,88 @@
+2008-12-23  Jon Beniston <jon@beniston.com>
+
+	* Makefile.am: Add LM32 object files and dependencies.
+	* Makefile.in: Regenerate.
+	* archures.c: Add LM32 architechiture info.
+	* targets.c: Likewise.
+	* reloc.c: Likewise.
+	* bfd-in2.h: Regenerate.
+	* config.bfd: Add LM32 targets.
+	* configure.in: Likewise.
+	* configure: Regenerate.
+	* cpu-lm32.c: New file.
+	* elf32-lm32.c: New file.
+
+2008-12-23  H.J. Lu  <hongjiu.lu@intel.com>
+
+	PR ld/7036
+	* elfxx-ia64.c (elfNN_ia64_relax_section): Assume linker will
+	always insert 32byte between the .plt and .text sections after
+	the the first relaxation pass.
+
+2008-12-23  Nick Clifton  <nickc@redhat.com>
+
+	PR 7093
+	* elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF
+	object files.
+
+2008-12-23  Tristan Gingold  <gingold@adacore.com>
+
+	* mach-o.c (bfd_mach_o_make_bfd_section): Use the standard ELF name
+	.eh_frame for __TEXT.__eh_frame so that it is recognized by gdb.
+	Use shorter sections name for well known sections.
+	(bfd_mach_o_scan_read_dylinker): Only put dylinker name in the
+	section content.
+	(bfd_mach_o_scan_read_segment): Use shorter sections name for
+	well known segments.
+	(bfd_mach_o_scan_read_command): Ignore some new commands.
+	(bfd_mach_o_openr_next_archived_file): Use more descriptive names
+	for members filename.
+	(bfd_mach_o_fat_extract): New function to easily extract members
+	of a fat binary.
+	* mach-o.h (bfd_mach_o_load_command_type): Add new constants.
+	(bfd_mach_o_dylinker_command): Fix comment and reindent.
+	(bfd_mach_o_fat_extract): New prototype.
+
+2008-12-23  Johan Olmutz Nielsen  <jnielsen@ddci.com>
+
+	* coffcode.h (coff_write_object_contents): Always initialise
+	section.s_page.
+
+2008-12-23  Andreas Schwab  <schwab@suse.de>
+
+	* elf32-m68k.c (elf_m68k_discard_copies): Use SYMBOL_CALLS_LOCAL.
+	(elf_m68k_relocate_section): Use SYMBOL_CALLS_LOCAL and
+	SYMBOL_REFERENCES_LOCAL.
+	(elf_m68k_relocate_section): Likewise.
+
+2008-12-23  Nick Clifton  <nickc@redhat.com>
+
+	* elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs
+	field.
+	(_bfd_elf_make_ifunc_reloc_section): Remove prototype.
+	* elf.c (swap_out_syms): Remove STT_IFUNC support.
+	(elf_find_function): Likewise.
+	* elf32-arm.c (arm_elf_find_function): Likewise.
+	(elf32_arm_adjust_dynamic_symbol): Likewise.
+	(elf32_arm_swap_symbol_in): Likewise.
+	(elf32_arm_is_function_type): Likewise.
+	* elf32-i386.c (is_indirect_symbol): Delete.
+	(elf_i386_check_relocs): Remove STT_IFUNC support.
+	(allocate_dynrelocs): Likewise.
+	(elf_i386_relocate_section): Likewise.
+	* elf64-x86-64.c (is_indirect_symbol): Delete.
+	(elf64_x86_64_check_relocs): Remove STT_IFUNC support.
+	(allocate_dynrelocs): Likewise.
+	(elf64_x86_64_relocate_section): Likewise.
+	* elfcode.h (elf_slurp_symbol_table): Likewise.
+	* elflink.c (_bfd_elf_adjust_symbol): Likewise.
+	(get_ifunc_reloc_section_name): Delete.
+	(_bfd_elf_make_ifunc_reloc_section): Delete.
+	* syms.c (BSF_INDIRECT_FUNCTION): Delete.
+	(bfd_print_symbol_vandf): Remove STT_IFUNC support.
+	(bfd_decode_symclass): Likewise.
+	* bfd-in2.h: Regenerate.
+
 2008-12-20  Hans-Peter Nilsson  <hp@axis.com>
 
 	* elf32-cris.c 	(cris_elf_howto_table): Add entry for R_CRIS_32_IE.
@@ -98,7 +183,7 @@
 	* cpu-avr.c (compatible): Makes avr-6 compatible only with itself.
 
 2008-12-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
-	
+
 	* elf64-s390.c (elf_s390_check_relocs): Initialize
 	htab->elf.dynobj if necessary.
 
@@ -295,7 +380,7 @@
 	relocs.  For overflow, emit additional messages for the new 16-bit
 	relocs as well as R_CRIS_16_GOTPLT and R_CRIS_16_GOT.
 	(elf_cris_finish_dynamic_symbol): Use elf_cris_finish_dynamic_symbol
-	instead of plain casts.  Check new hash entry member 
+	instead of plain casts.  Check new hash entry member
 	reg_got_refcount when checking whether to emit a GOT entry.
 	(elf_cris_finish_dynamic_sections): Update head comment to warn
 	about emitting relocs here.  Use a temporary variable when testing
@@ -348,7 +433,7 @@
 	Leave addend zero on LD DTPMOD dynamic reloc.
 
 2008-11-19  Bob Wilson  <bob.wilson@acm.org>
-	
+
 	* xtensa-modules.c (sysregs): Add MMID, VECBASE, EPC5, EPC6, EPC7,
 	EXCSAVE5, EXCSAVE6, EXCSAVE7, EPS5, EPS6, EPS7, CPENABLE,
 	SCOMPARE1, and THREADPTR registers.
@@ -411,7 +496,7 @@
 	(Slot_inst16b_get_field_fns, Slot_inst16b_set_field_fns): Likewise.
 	(xtensa_modules): Update number of fields, operands, iclasses and
 	opcodes.
-	
+
 2008-11-19  Nix  <nix@esperi.org.uk>
 
 	* elf.c (swap_out_syms) [USE_STT_COMMON]: Fix syntax error.
@@ -429,7 +514,7 @@
 	* elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
 	half-precision attributes.
 	(elf32_arm_copy_one_eabi_other_attribute): New.
-	(elf32_arm_copy_other_attribute_list): New. 
+	(elf32_arm_copy_other_attribute_list): New.
 
 2008-11-18  Nick Clifton  <nickc@redhat.com>
 
@@ -464,7 +549,7 @@
 
 2008-11-14  Tristan Gingold  <gingold@adacore.com>
 
-	* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG, 
+	* configure.com: Handle bfd_default_target_size, BFD_HOST_LONG_LONG,
 	BFD_HOST_64BIT_LONG_LONG, BFD_HOSTPTR_T, bfd_file_ptr.
 	Generate bfdver.h.
 	* vms-hdr.c (_bfd_vms_write_hdr): Use strdup/free instead of alloca.
diff --git a/bfd/Makefile.am b/bfd/Makefile.am
index 8ddf3cc..4eac4a0 100644
--- a/bfd/Makefile.am
+++ b/bfd/Makefile.am
@@ -83,6 +83,7 @@ ALL_MACHINES = \
 	cpu-i960.lo \
 	cpu-ip2k.lo \
 	cpu-iq2000.lo \
+	cpu-lm32.lo \
 	cpu-m32c.lo \
 	cpu-m32r.lo \
 	cpu-m68hc11.lo \
@@ -149,6 +150,7 @@ ALL_MACHINES_CFILES = \
 	cpu-i960.c \
 	cpu-ip2k.c \
 	cpu-iq2000.c \
+	cpu-lm32.c \
 	cpu-m32c.c \
 	cpu-m32r.c \
 	cpu-m68hc11.c \
@@ -264,6 +266,7 @@ BFD32_BACKENDS = \
 	elf32-i960.lo \
 	elf32-ip2k.lo \
 	elf32-iq2000.lo \
+	elf32-lm32.lo \
 	elf32-m32c.lo \
 	elf32-m32r.lo \
 	elf32-m68hc11.lo \
@@ -445,6 +448,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-i960.c \
 	elf32-ip2k.c \
 	elf32-iq2000.c \
+	elf32-lm32.c \
 	elf32-m32c.c \
 	elf32-m32r.c \
 	elf32-m68k.c \
@@ -1093,6 +1097,7 @@ cpu-i860.lo: cpu-i860.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-i960.lo: cpu-i960.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-ip2k.lo: cpu-ip2k.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-iq2000.lo: cpu-iq2000.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-lm32.lo: cpu-lm32.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m32c.lo: cpu-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m32r.lo: cpu-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m68hc11.lo: cpu-m68hc11.c $(INCDIR)/filenames.h \
@@ -1426,6 +1431,10 @@ elf32-m32c.lo: elf32-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32c.h \
   $(INCDIR)/elf/reloc-macros.h $(INCDIR)/libiberty.h \
   elf32-target.h
+elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-target.h
 elf32-m32r.lo: elf32-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32r.h \
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 9d86902..fc370b0 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -348,6 +348,7 @@ ALL_MACHINES = \
 	cpu-i960.lo \
 	cpu-ip2k.lo \
 	cpu-iq2000.lo \
+	cpu-lm32.lo \
 	cpu-m32c.lo \
 	cpu-m32r.lo \
 	cpu-m68hc11.lo \
@@ -414,6 +415,7 @@ ALL_MACHINES_CFILES = \
 	cpu-i960.c \
 	cpu-ip2k.c \
 	cpu-iq2000.c \
+	cpu-lm32.c \
 	cpu-m32c.c \
 	cpu-m32r.c \
 	cpu-m68hc11.c \
@@ -530,6 +532,7 @@ BFD32_BACKENDS = \
 	elf32-i960.lo \
 	elf32-ip2k.lo \
 	elf32-iq2000.lo \
+	elf32-lm32.lo \
 	elf32-m32c.lo \
 	elf32-m32r.lo \
 	elf32-m68hc11.lo \
@@ -711,6 +714,7 @@ BFD32_BACKENDS_CFILES = \
 	elf32-i960.c \
 	elf32-ip2k.c \
 	elf32-iq2000.c \
+	elf32-lm32.c \
 	elf32-m32c.c \
 	elf32-m32r.c \
 	elf32-m68k.c \
@@ -1689,6 +1693,7 @@ cpu-i860.lo: cpu-i860.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-i960.lo: cpu-i960.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-ip2k.lo: cpu-ip2k.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-iq2000.lo: cpu-iq2000.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
+cpu-lm32.lo: cpu-lm32.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m32c.lo: cpu-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m32r.lo: cpu-m32r.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h
 cpu-m68hc11.lo: cpu-m68hc11.c $(INCDIR)/filenames.h \
@@ -2017,6 +2022,10 @@ elf32-iq2000.lo: elf32-iq2000.c $(INCDIR)/filenames.h \
   $(INCDIR)/elf/external.h $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h \
   $(INCDIR)/elf/iq2000.h $(INCDIR)/elf/reloc-macros.h \
   elf32-target.h
+elf32-lm32.lo: elf32-lm32.c $(INCDIR)/filenames.h elf-bfd.h \
+  $(INCDIR)/elf/common.h $(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h \
+  $(INCDIR)/bfdlink.h $(INCDIR)/elf/lm32.h $(INCDIR)/elf/reloc-macros.h \
+  elf32-target.h
 elf32-m32c.lo: elf32-m32c.c $(INCDIR)/filenames.h $(INCDIR)/hashtab.h \
   elf-bfd.h $(INCDIR)/elf/common.h $(INCDIR)/elf/external.h \
   $(INCDIR)/elf/internal.h $(INCDIR)/bfdlink.h $(INCDIR)/elf/m32c.h \
diff --git a/bfd/archures.c b/bfd/archures.c
index 1156e09..c76e16e 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -409,6 +409,8 @@ DESCRIPTION
 .#define bfd_mach_z80            3 {* With ixl, ixh, iyl, and iyh.  *}
 .#define bfd_mach_z80full        7 {* All undocumented instructions.  *}
 .#define bfd_mach_r800           11 {* R800: successor with multiplication.  *}
+.  bfd_arch_lm32,      {* Lattice Mico32 *}
+.#define bfd_mach_lm32      1
 .  bfd_arch_last
 .  };
 */
@@ -471,6 +473,7 @@ extern const bfd_arch_info_type bfd_i960_arch;
 extern const bfd_arch_info_type bfd_ia64_arch;
 extern const bfd_arch_info_type bfd_ip2k_arch;
 extern const bfd_arch_info_type bfd_iq2000_arch;
+extern const bfd_arch_info_type bfd_lm32_arch;
 extern const bfd_arch_info_type bfd_m32c_arch;
 extern const bfd_arch_info_type bfd_m32r_arch;
 extern const bfd_arch_info_type bfd_m68hc11_arch;
@@ -542,6 +545,7 @@ static const bfd_arch_info_type * const bfd_archures_list[] =
     &bfd_ia64_arch,
     &bfd_ip2k_arch,
     &bfd_iq2000_arch,
+    &bfd_lm32_arch,
     &bfd_m32c_arch,
     &bfd_m32r_arch,
     &bfd_m68hc11_arch,
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 37c24b7..779f03a 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2035,6 +2035,8 @@ enum bfd_architecture
 #define bfd_mach_z80            3 /* With ixl, ixh, iyl, and iyh.  */
 #define bfd_mach_z80full        7 /* All undocumented instructions.  */
 #define bfd_mach_r800           11 /* R800: successor with multiplication.  */
+  bfd_arch_lm32,      /* Lattice Mico32 */
+#define bfd_mach_lm32      1
   bfd_arch_last
   };
 
@@ -4412,6 +4414,17 @@ BFD_RELOC_XTENSA_ASM_EXPAND.  */
 
 /* 4 bit value.  */
   BFD_RELOC_Z8K_IMM4L,
+
+/* Lattice Mico32 relocations.  */
+  BFD_RELOC_LM32_CALL,
+  BFD_RELOC_LM32_BRANCH,
+  BFD_RELOC_LM32_16_GOT,
+  BFD_RELOC_LM32_GOTOFF_HI16,
+  BFD_RELOC_LM32_GOTOFF_LO16,
+  BFD_RELOC_LM32_COPY,
+  BFD_RELOC_LM32_GLOB_DAT,
+  BFD_RELOC_LM32_JMP_SLOT,
+  BFD_RELOC_LM32_RELATIVE,
   BFD_RELOC_UNUSED };
 typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
 reloc_howto_type *bfd_reloc_type_lookup
@@ -4472,13 +4485,6 @@ typedef struct bfd_symbol
      perhaps others someday.  */
 #define BSF_FUNCTION           (1 << 3)
 
-  /* The symbol is an indirect code object.  Unrelated to BSF_INDIRECT.
-     Relocations against a symbol with this flag have to evaluated at
-     run-time, where the function pointed to by this symbol is invoked
-     in order to determine the value to be used in the relocation.
-     BSF_FUNCTION must also be set for symbols with this flag.  */
-#define BSF_INDIRECT_FUNCTION  (1 << 4)
- 
   /* Used by the linker.  */
 #define BSF_KEEP               (1 << 5)
 #define BSF_KEEP_G             (1 << 6)
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index 3b98c5d..12d2ad5 100644
--- a/bfd/coffcode.h
+++ b/bfd/coffcode.h
@@ -3528,6 +3528,8 @@ coff_write_object_contents (bfd * abfd)
       section.s_size =  current->size;
 #ifdef coff_get_section_load_page
       section.s_page = coff_get_section_load_page (current);
+#else
+      section.s_page = 0;
 #endif
 
 #ifdef COFF_WITH_PE
diff --git a/bfd/config.bfd b/bfd/config.bfd
index da7271b..452f25d 100644
--- a/bfd/config.bfd
+++ b/bfd/config.bfd
@@ -85,6 +85,7 @@ fido*)		 targ_archs=bfd_m68k_arch ;;
 hppa*)		 targ_archs=bfd_hppa_arch ;;
 i[3-7]86)	 targ_archs=bfd_i386_arch ;;
 i370)		 targ_archs=bfd_i370_arch ;;
+lm32)	         targ_archs=bfd_lm32_arch ;;
 m6811*|m68hc11*) targ_archs="bfd_m68hc11_arch bfd_m68hc12_arch" ;;
 m6812*|m68hc12*) targ_archs="bfd_m68hc12_arch bfd_m68hc11_arch" ;;
 m68*)		 targ_archs=bfd_m68k_arch ;;
@@ -727,6 +728,16 @@ case "${targ}" in
     targ_defvec=bfd_elf32_iq2000_vec
     ;;
 
+  lm32-*-elf)
+    targ_defvec=bfd_elf32_lm32_vec
+    targ_selvecs=bfd_elf32_lm32fdpic_vec
+    ;;
+    
+  lm32-*-*linux*)
+    targ_defvec=bfd_elf32_lm32fdpic_vec
+    targ_selvecs=bfd_elf32_lm32_vec
+    ;;
+    
   m32c-*-elf | m32c-*-rtems*)
     targ_defvec=bfd_elf32_m32c_vec
     ;;
diff --git a/bfd/configure b/bfd/configure
index 0a1ce6c..a3ca40f 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -20752,6 +20752,8 @@ do
     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
     bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
+    bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
+    bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
     bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
     bfd_elf32_littlearm_symbian_vec)
diff --git a/bfd/configure.in b/bfd/configure.in
index 47ef10c..d75e15a 100644
--- a/bfd/configure.in
+++ b/bfd/configure.in
@@ -689,6 +689,8 @@ do
     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
     bfd_elf32_ip2k_vec)		tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
     bfd_elf32_iq2000_vec)       tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
+    bfd_elf32_lm32_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
+    bfd_elf32_lm32fdpic_vec)         tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
     bfd_elf32_littlearc_vec)	tb="$tb elf32-arc.lo elf32.lo $elf" ;;
     bfd_elf32_littlearm_symbian_vec)
diff --git a/bfd/cpu-lm32.c b/bfd/cpu-lm32.c
new file mode 100644
index 0000000..227612f
--- /dev/null
+++ b/bfd/cpu-lm32.c
@@ -0,0 +1,41 @@
+/* BFD support for the Lattice Mico32 architecture.
+   Copyright 2008 Free Software Foundation, Inc.
+   Contributed by Jon Beniston <jon@beniston.com>
+
+   This file is part of BFD, the Binary File Descriptor library.
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, write to the Free Software
+   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
+   MA 02110-1301, USA.  */
+
+#include "bfd.h"
+#include "sysdep.h"
+#include "libbfd.h"
+
+const bfd_arch_info_type bfd_lm32_arch = 
+{
+    32,                           /* Bits in word.  */
+    32,                           /* Bits in address.  */
+    8,                            /* Bits in byte.  */
+    bfd_arch_lm32,                /* Enum bfd_architecture.  */ 
+    bfd_mach_lm32,                /* Machine number.  */
+    "lm32",                       /* Architecture name.  */
+    "lm32",                       /* Printable name.  */
+    4,                            /* Alignment.  */
+    TRUE,                         /* Is this the default machine for the target.  */
+    bfd_default_compatible,       /* Function callback to test if two files have compatible machines.  */
+    bfd_default_scan,
+    NULL                          /* Next.  */
+};
+
diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h
index effa344..5418e7f 100644
--- a/bfd/elf-bfd.h
+++ b/bfd/elf-bfd.h
@@ -1287,9 +1287,6 @@ struct bfd_elf_section_data
   /* A pointer to the bfd section used for dynamic relocs.  */
   asection *sreloc;
 
-  /* A pointer to the bfd section used for dynamic relocs against ifunc symbols.  */
-  asection *indirect_relocs;
-
   union {
     /* Group name, if this section is a member of a group.  */
     const char *name;
@@ -1771,8 +1768,6 @@ extern asection * _bfd_elf_get_dynamic_reloc_section
   (bfd *, asection *, bfd_boolean);
 extern asection * _bfd_elf_make_dynamic_reloc_section
   (asection *, bfd *, unsigned int, bfd *, bfd_boolean);
-extern asection * _bfd_elf_make_ifunc_reloc_section
-  (bfd *, asection *, bfd *, unsigned int);
 extern long _bfd_elf_get_dynamic_reloc_upper_bound
   (bfd *);
 extern long _bfd_elf_canonicalize_dynamic_reloc
diff --git a/bfd/elf.c b/bfd/elf.c
index 7597d01..70ed765 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -6427,8 +6427,6 @@ Unable to find equivalent output section for symbol '%s' from section '%s'"),
 
       if ((flags & BSF_THREAD_LOCAL) != 0)
 	type = STT_TLS;
-      else if ((flags & BSF_INDIRECT_FUNCTION) != 0)
-	type = STT_IFUNC;
       else if ((flags & BSF_FUNCTION) != 0)
 	type = STT_FUNC;
       else if ((flags & BSF_OBJECT) != 0)
@@ -7122,7 +7120,6 @@ elf_find_function (bfd *abfd ATTRIBUTE_UNUSED,
 	  continue;
 	case STT_NOTYPE:
 	case STT_FUNC:
-	case STT_IFUNC:
 	  if (bfd_get_section (&q->symbol) == section
 	      && q->symbol.value >= low_func
 	      && q->symbol.value <= offset)
@@ -8941,10 +8938,10 @@ _bfd_elf_set_osabi (bfd * abfd,
 
 /* Return TRUE for ELF symbol types that represent functions.
    This is the default version of this function, which is sufficient for
-   most targets.  It returns true if TYPE is STT_FUNC or STT_IFUNC.  */
+   most targets.  It returns true if TYPE is STT_FUNC.  */
 
 bfd_boolean
 _bfd_elf_is_function_type (unsigned int type)
 {


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


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

* [SCM]  archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount
@ 2008-12-22 18:33 jkratoch
  0 siblings, 0 replies; 19+ messages in thread
From: jkratoch @ 2008-12-22 18:33 UTC (permalink / raw)
  To: archer-commits

The branch, archer-jankratochvil-type-refcount has been updated
       via  d5cfcbafc9b74ab21f215585aab411c6b43f5620 (commit)
       via  f2f03a7b81be57219bb881817eadbcdfa0ef22ca (commit)
       via  ee5c26141772582db315f9be9f472be50d450599 (commit)
       via  94923161f4aa9c75a27c8f56a68662cef6695713 (commit)
       via  6d5935ce5358685aebb1f3c0717208dfe2bef69c (commit)
       via  11f72c470e70fa4ee116167c5ce66d8b03894c2d (commit)
       via  f89f82d14b41e6a3e1dc549d3bfe693c52033df6 (commit)
       via  de7b18543b60d144347b0a5833eaa06d1142f508 (commit)
       via  01af8f937b250e70a9cbcaac1f4a8081c1310774 (commit)
       via  54cc2aff242becc8a9e18f996f312e037cec1b5e (commit)
       via  a798d62bb189a020d54a39a585f389a9ee2af1f9 (commit)
       via  9ba29a21ccba2a171ace841b92b58bd36373ea8b (commit)
       via  b5d1a9c84a4ed43405660142002ab3cbd7a7b474 (commit)
       via  5485f078197d2218972b39e59f281e3f7d68b6af (commit)
       via  894c4d3cfa4c945504748f7d367ba2d9066d0510 (commit)
       via  6fd0f5e0007de75291ffb509bb484edb668b5fec (commit)
       via  04ffa34daa9ec5479dc309ec31a1b06fc6d9ea10 (commit)
       via  dbec8bd1c21893318cdf3a1f106e1f97c6cc9b7a (commit)
       via  d7cfbc2bb9dbfbfdae0c37b81d1b7ec396a3460e (commit)
       via  2e5763547fb65a9eb02002fb66a27d21f82190fc (commit)
       via  3cfef389e20fdd1681cb58fa3d7106bc88123426 (commit)
       via  46cbdd91e10b097b82869b02c7ecac42b18111c3 (commit)
       via  bb468712c6f3fdd9c273874e266a564152628c92 (commit)
       via  00e185f44528b17369b1a4d43b6b90ceb9d95303 (commit)
       via  2c38a42f5c1db3bfc6c4d92ea5e51e780eba109a (commit)
       via  372545781586f5d9cff43b2026d17c457c17fb31 (commit)
       via  2f9349947773bb6f823ab29b072332596e2d0586 (commit)
       via  6bf4fc327768f938a688a38419411c6bbd92f6da (commit)
       via  9862c7aa88705cd9df15d5b8939ab397c09752b7 (commit)
       via  9afa43afc50c92b23e53f9b9572745e71a0f62bc (commit)
       via  18d5bf202d84cb59601a5c187f92690507758b6c (commit)
       via  d0690d9940e725aab88f7d6159217002dafab60f (commit)
       via  e07cde57529cf055bc33fb56df9ed23e9f621ad2 (commit)
       via  bfc8bde3ca5ed5e461bf3e34f7aa2247ad48fb79 (commit)
       via  695adac1eccc081d2ce31c319b71a0e3df946f5e (commit)
       via  1600c45345cb1439b677b98613d46be3aa85ba9e (commit)
       via  c7aaa97e0a3c0cce11e0f6ba306d5da88c023f1d (commit)
       via  e0f87abb998c458c5387b3ad8e0eeccd57044b28 (commit)
       via  25a94ecf3c8a5bddd5bad79ea9c57fa01b649f27 (commit)
       via  c66188244654f137d2ceacce47b32695e4d7d8e9 (commit)
       via  96ca222c623d0d1542519d28294e6dc70d6ef249 (commit)
       via  4c1258818cbb8f5b63e00d23def80077c950e713 (commit)
       via  6e85aa313469d4d12a7002990bd0066c19380767 (commit)
       via  87f807a8ce30125c9fdcb1dabfad0c518e5594cd (commit)
       via  9fb1647d68ae93c6cd5ef3fb7ba296919a5d06b2 (commit)
       via  24988cb3edc09fa6c3d69947bd59ceaa127cab60 (commit)
       via  bebc621bcc4373d65ff0dc26fda563411621f7e9 (commit)
       via  668893b18357f1ff5c2a52bbfcbe1db5ff51b74f (commit)
       via  5c896fb3370431afa9c7d98a82fae8178865a1c7 (commit)
       via  011395def22c679506b483de9aa8f68e02178fb7 (commit)
       via  645c834f57c6117eb381fd6c781d4de54918675f (commit)
       via  49b0e175117b79282d73a007e858747dce1352df (commit)
       via  9e3c9b86cf7b0713cf1480d0c6488f5051425f0a (commit)
       via  6b96c9a3f78b7128e397bcfde4bc6e5501344eba (commit)
       via  39f8b9ff6c5208a54f765b19b4a1738b9c237182 (commit)
       via  a5a60c19055838698f459f03715ca1ba6a9ccfc1 (commit)
       via  772c9c1d0a70440295c6cf1e21be494c7b797ea8 (commit)
       via  25071386e8e8db4c93075249ef221c98f3298e9f (commit)
       via  159545d661ac64df03fb89d90db249ce48dc0a0b (commit)
       via  3ee2fe6b0783da17e2b0b58304fac41a9027945b (commit)
       via  b7681b5e27511b6e714c253ab8a8381eaff0052d (commit)
       via  12827e561be554ec5830e0e5eb96d129c25afb71 (commit)
       via  994251cd6164ec4fac1927eb8dcb513eded00fb5 (commit)
       via  ee45b7b81717a8f9b521a11b6d67377b2a12b5f1 (commit)
       via  d2700f1acc567abf034abb6a683a8782478ca4af (commit)
       via  002164ed870bff432669d55d4456eeeccbd2857b (commit)
       via  2f3a28dafacdd658ddf59bb7312a32645dc91a2d (commit)
       via  377ea3da879c2ac8b4d33137ac8f40804feeb2da (commit)
       via  2b9474d6a76d1fcc9fde5198f48967f96b251a1a (commit)
       via  a875acb4a45b744d5354f7aa4aea08be4f456357 (commit)
       via  f196d76fae27a6d88832743e28c7a7bf9c8abff7 (commit)
       via  ad845052245e1306347274daeed5874ca90f8c4c (commit)
       via  ee42d69e173ca6f58594c3b16a1ce00bf6a5fffa (commit)
       via  56f6e3676173c9a41dc4ed227a8450550cec718c (commit)
      from  2e8f00516f29f4ffed5da535bd71a7d5d85a9723 (commit)

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

- Log -----------------------------------------------------------------
commit d5cfcbafc9b74ab21f215585aab411c6b43f5620
Merge: 2e8f00516f29f4ffed5da535bd71a7d5d85a9723 f2f03a7b81be57219bb881817eadbcdfa0ef22ca
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Mon Dec 22 19:18:00 2008 +0100

    Merge commit 'origin/master' into archer-jankratochvil-type-refcount

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

Summary of changes:
 COPYING.LIBGLOSS                                   |   24 +
 COPYING.NEWLIB                                     |  129 +
 ChangeLog                                          |   38 +
 bfd/ChangeLog                                      |   48 +
 bfd/bfd-in2.h                                      |    1 +
 bfd/configure                                      |   93 +-
 bfd/elf32-cris.c                                   |  273 +-
 bfd/elf64-ppc.c                                    |    4 +-
 bfd/libbfd.h                                       |    1 +
 bfd/reloc.c                                        |    2 +
 bfd/version.h                                      |    2 +-
 config.guess                                       |    4 +-
 config.sub                                         |   10 +-
 configure                                          |    4 +-
 configure.ac                                       |    4 +-
 gdb/ChangeLog                                      |  171 +
 gdb/ada-lang.c                                     |   25 +-
 gdb/breakpoint.c                                   |   36 +-
 gdb/c-exp.y                                        |  269 +-
 gdb/c-lang.c                                       |  113 +-
 gdb/c-lang.h                                       |    7 -
 gdb/cli/cli-decode.c                               |   48 +-
 gdb/completer.c                                    |    4 +-
 gdb/dbxread.c                                      |   13 +
 gdb/doc/ChangeLog                                  |   13 +
 gdb/doc/gdb.texinfo                                |   31 +-
 gdb/dwarf2expr.c                                   |   14 +
 gdb/environ.c                                      |    1 +
 gdb/gdbserver/ChangeLog                            |   22 +
 gdb/gdbserver/hostio.c                             |    6 +-
 gdb/gdbserver/inferiors.c                          |    8 +-
 gdb/gdbserver/linux-low.c                          |   21 +-
 gdb/gdbserver/mem-break.c                          |    2 +-
 gdb/gdbserver/regcache.c                           |    4 +-
 gdb/gdbserver/remote-utils.c                       |   12 +-
 gdb/gdbserver/server.c                             |   32 +-
 gdb/gdbserver/server.h                             |   11 +
 gdb/gdbserver/target.c                             |    4 +-
 gdb/gdbserver/utils.c                              |   57 +
 gdb/gdbserver/win32-low.c                          |    2 +-
 gdb/gnu-v3-abi.c                                   |   16 +-
 gdb/inf-ptrace.c                                   |    4 +-
 gdb/inf-ttrace.c                                   |    2 -
 gdb/infcmd.c                                       |  119 +-
 gdb/inferior.h                                     |    4 -
 gdb/inflow.c                                       |   62 -
 gdb/infrun.c                                       |   46 +-
 gdb/linux-fork.c                                   |    9 +-
 gdb/linux-nat.c                                    |   12 +-
 gdb/linux-thread-db.c                              |    4 +-
 gdb/m32c-tdep.c                                    |   14 +
 gdb/macrocmd.c                                     |   10 +-
 gdb/macroexp.c                                     |   18 +-
 gdb/remote.c                                       |   64 +-
 gdb/rs6000-nat.c                                   |    4 +-
 gdb/spu-linux-nat.c                                |    4 +-
 gdb/target.c                                       |    4 -
 gdb/target.h                                       |    9 -
 gdb/testsuite/ChangeLog                            |   44 +
 gdb/testsuite/gdb.arch/ppc-fp.exp                  |    3 -
 gdb/testsuite/gdb.arch/vsx-regs.exp                |    3 -
 gdb/testsuite/gdb.base/commands.exp                |   35 +
 gdb/testsuite/gdb.base/completion.exp              |   18 +
 gdb/testsuite/gdb.base/consecutive.exp             |    5 -
 gdb/testsuite/gdb.base/expand-psymtabs.c           |    7 +-
 gdb/testsuite/gdb.base/macscp.exp                  |   12 +
 gdb/testsuite/gdb.base/macscp1.c                   |   14 +
 .../{expand-psymtabs.c => watchpoint-hw.c}         |   21 +-
 gdb/testsuite/gdb.base/watchpoint-hw.exp           |   52 +
 gdb/testsuite/gdb.cp/punctuator.exp                |   52 +
 gdb/testsuite/gdb.gdbtk/browser.test               |    3 -
 gdb/testsuite/gdb.gdbtk/console.test               |    3 -
 gdb/testsuite/gdb.gdbtk/srcwin.test                |    3 -
 gdb/testsuite/gdb.gdbtk/srcwin2.test               |    3 -
 gdb/testsuite/gdb.gdbtk/srcwin3.test               |    3 -
 gdb/testsuite/gdb.gdbtk/windows.test               |    3 -
 gdb/testsuite/gdb.threads/tls2.c                   |    5 +-
 gdb/version.in                                     |    2 +-
 include/ChangeLog                                  |    5 +
 include/demangle.h                                 |   13 +
 include/elf/ChangeLog                              |    4 +
 include/elf/cris.h                                 |    5 +
 libiberty/ChangeLog                                |   18 +
 libiberty/cp-demangle.c                            |   41 +-
 libtool.m4                                         |   85 +-
 opcodes/ChangeLog                                  |   70 +
 opcodes/arm-dis.c                                  |  183 +-
 opcodes/configure                                  |   93 +-
 opcodes/i386-dis.c                                 |  253 +-
 opcodes/i386-gen.c                                 |    1 +
 opcodes/i386-opc.h                                 |    5 +-
 opcodes/i386-opc.tbl                               |   56 +-
 opcodes/i386-tbl.h                                 |14852 ++++++++++----------
 sim/ppc/ChangeLog                                  |    5 +
 sim/ppc/ppc-instructions                           |    8 +
 sim/ppc/ppc-spr-table                              |    2 +
 96 files changed, 9523 insertions(+), 8435 deletions(-)
 copy gdb/testsuite/gdb.base/{expand-psymtabs.c => watchpoint-hw.c} (79%)
 create mode 100644 gdb/testsuite/gdb.base/watchpoint-hw.exp
 create mode 100644 gdb/testsuite/gdb.cp/punctuator.exp

First 500 lines of diff:
diff --git a/COPYING.LIBGLOSS b/COPYING.LIBGLOSS
index bc64c24..b4d657e 100644
--- a/COPYING.LIBGLOSS
+++ b/COPYING.LIBGLOSS
@@ -204,3 +204,27 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 POSSIBILITY OF SUCH DAMAGE.
 
+(12) Jon Beniston (only lm32-* targets)
+
+ Contributed by Jon Beniston <jon@beniston.com>
+ 
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
diff --git a/COPYING.NEWLIB b/COPYING.NEWLIB
index 24c34cb..b3cccd8 100644
--- a/COPYING.NEWLIB
+++ b/COPYING.NEWLIB
@@ -637,4 +637,133 @@ SUCH DAMAGE.
   ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   POSSIBILITY OF SUCH DAMAGE.
 
+(30) - Alex Tatmanjants (targets using libc/posix)
 
+  Copyright (c) 1995 Alex Tatmanjants <alex@elvisti.kiev.ua>
+ 		at Electronni Visti IA, Kiev, Ukraine.
+ 			All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+(31) - M. Warner Losh (targets using libc/posix)
+
+  Copyright (c) 1998, M. Warner Losh <imp@freebsd.org>
+  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+(32) - Andrey A. Chernov (targets using libc/posix)
+
+  Copyright (C) 1996 by Andrey A. Chernov, Moscow, Russia.
+  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+(33) - Daniel Eischen (targets using libc/posix)
+
+  Copyright (c) 2001 Daniel Eischen <deischen@FreeBSD.org>.
+  All rights reserved.
+ 
+  Redistribution and use in source and binary forms, with or without
+  modification, are permitted provided that the following conditions
+  are met:
+  1. Redistributions of source code must retain the above copyright
+     notice, this list of conditions and the following disclaimer.
+  2. Redistributions in binary form must reproduce the above copyright
+     notice, this list of conditions and the following disclaimer in the
+     documentation and/or other materials provided with the distribution.
+ 
+  THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+  ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+  FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+  OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+  OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+  SUCH DAMAGE.
+
+
+(34) - Jon Beniston (only lm32-* targets)
+
+ Contributed by Jon Beniston <jon@beniston.com>
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
diff --git a/ChangeLog b/ChangeLog
index 382c2ba..9ee88bf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,41 @@
+2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	Backport link test fix from upstream Libtool:
+
+	* libltdl.m4 (_LT_SYS_DYNAMIC_LINKER, _LT_LINKER_SHLIBS):
+	Add cache variables to tests that require the linker to work.
+	For shlibpath_overrides_runpath, this also changes the semantics
+	to let the result from the C compiler take precedence.
+	compiler take precedence.
+
+2008-12-02  Ben Elliston  <bje@au.ibm.com>
+
+	* config.sub, config.guess: Update from upstream sources.
+
+2008-12-17  Jeff Johnston  <jjohnstn@redhat.com>
+
+	* COPYING.NEWLIB: Updated.
+	* COPYING.LIBGLOSS: Ditto.
+
+2008-12-16  Paolo Bonzini  <bonzini@gnu.org>
+
+	Sync with GCC:
+
+	2008-12-12  Sebastian Pop  <sebastian.pop@amd.com>
+
+	* configure.ac (ppllibs): Add by default the lib flags.
+	* configure: Regenerate.
+
+	2008-12-04  Jack Howarth  <howarth@bromo.med.uc.edu>
+
+        * configure.ac: Add double brackets on darwin[912].
+        * configure: Regenerate.
+
+	2008-12-02  Jack Howarth  <howarth@bromo.med.uc.edu>
+
+        * configure.ac: Expand to darwin10 and later.
+        * configure: Regenerate.
+
 2008-12-02  Andreas Schwab  <schwab@suse.de>
 
 	* Makefile.def: configure-target-boehm-gc depends on
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 704a418..6cd350f 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,51 @@
+2008-12-20  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c 	(cris_elf_howto_table): Add entry for R_CRIS_32_IE.
+	(cris_reloc_map): Similarly.
+	(cris_elf_relocate_section, cris_elf_gc_sweep_hook)
+	(cris_elf_check_relocs): Handle R_CRIS_32_IE.
+	* reloc.c (bfd_reloc_code_type): Add entry for R_CRIS_32_IE.
+	* bfd-in2.h, libbfd.h: Regenerate.
+
+2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
+
+	* configure: Regenerate.
+
+2008-12-17  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (elf_cris_copy_indirect_symbol): Return without
+	action for symbols other than bfd_link_hash_indirect.
+	(cris_elf_relocate_section) <R_CRIS_8, R_CRIS_16, R_CRIS_32>: Add missing
+	gate h != NULL for h->def_regular test.
+
+2008-12-15  Hans-Peter Nilsson  <hp@axis.com>
+
+	* elf32-cris.c (elf_cris_copy_indirect_symbol): New function.
+	(elf_backend_copy_indirect_symbol): Define to above.
+
+	* elf32-cris.c (struct elf_cris_pcrel_relocs_copied): New member
+	r_type.  Fix formatting.
+	(cris_elf_relocate_section) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
+	<R_CRIS_32_PCREL>: Also break early if the symbol doesn't get
+	emitted as a dynamic one.
+	(cris_elf_check_relocs) <R_CRIS_7, R_CRIS_16, R_CRIS_32>: Fork
+	from PCREL relocs code and simplify; don't fall through.
+	<R_CRIS_8_PCREL, R_CRIS_16_PCREL, R_CRIS_32_PCREL>: Simplify for
+	pcrel only.  For non-local or overridable symbols in a DSO, always
+	keep count of relocs, not just when -Bsymbolic.  Don't emit
+	message nor mark as TEXTREL here.
+	(elf_cris_discard_excess_dso_dynamics): Emit warning and mark as
+	TEXTREL here, if there are nondiscarded pcrel relocs.
+
+	* elf32-cris.c (elf_cris_got_elt_size) <symtab_hdr>: Initialize
+	using ibfd, not abfd.
+
+2008-12-11  Alan Modra  <amodra@bigpond.net.au>
+
+	PR 7041
+	* elf64-ppc.c (func_desc_adjust): Correct logic making fake function
+	descriptors.  Similarly correct making function descriptors dynamic.
+
 2008-12-10  Alan Modra  <amodra@bigpond.net.au>
 
 	* elf32-spu.h (struct spu_elf_params): Add num_regions.
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index b1451c9..37c24b7 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -4213,6 +4213,7 @@ This is the 5 bits of a value.  */
   BFD_RELOC_CRIS_32_TPREL,
   BFD_RELOC_CRIS_16_TPREL,
   BFD_RELOC_CRIS_DTPMOD,
+  BFD_RELOC_CRIS_32_IE,
 
 /* Intel i860 Relocations.  */
   BFD_RELOC_860_COPY,
diff --git a/bfd/configure b/bfd/configure
index 8ff1234..0a1ce6c 100755
--- a/bfd/configure
+++ b/bfd/configure
@@ -9824,44 +9824,50 @@ x|xyes)
       # to ld, don't add -lc before -lgcc.
       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
-      $RM conftest*
-      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
+if test "${lt_cv_archive_cmds_need_lc+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  $RM conftest*
+	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
 
-      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
+	if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
   (eval $ac_compile) 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); } 2>conftest.err; then
-        soname=conftest
-        lib=conftest
-        libobjs=conftest.$ac_objext
-        deplibs=
-        wl=$lt_prog_compiler_wl
-	pic_flag=$lt_prog_compiler_pic
-        compiler_flags=-v
-        linker_flags=-v
-        verstring=
-        output_objdir=.
-        libname=conftest
-        lt_save_allow_undefined_flag=$allow_undefined_flag
-        allow_undefined_flag=
-        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
+	  soname=conftest
+	  lib=conftest
+	  libobjs=conftest.$ac_objext
+	  deplibs=
+	  wl=$lt_prog_compiler_wl
+	  pic_flag=$lt_prog_compiler_pic
+	  compiler_flags=-v
+	  linker_flags=-v
+	  verstring=
+	  output_objdir=.
+	  libname=conftest
+	  lt_save_allow_undefined_flag=$allow_undefined_flag
+	  allow_undefined_flag=
+	  if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
   ac_status=$?
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }
-        then
-	  archive_cmds_need_lc=no
-        else
-	  archive_cmds_need_lc=yes
-        fi
-        allow_undefined_flag=$lt_save_allow_undefined_flag
-      else
-        cat conftest.err 1>&5
-      fi
-      $RM conftest*
-      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
-echo "${ECHO_T}$archive_cmds_need_lc" >&6
+	  then
+	    lt_cv_archive_cmds_need_lc=no
+	  else
+	    lt_cv_archive_cmds_need_lc=yes
+	  fi
+	  allow_undefined_flag=$lt_save_allow_undefined_flag
+	else
+	  cat conftest.err 1>&5
+	fi
+	$RM conftest*
+
+fi
+echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5
+echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6
+      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
       ;;
     esac
   fi
@@ -10441,12 +10447,17 @@ linux* | k*bsd*-gnu)
   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   shlibpath_overrides_runpath=no
+
   # Some binutils ld are patched to set DT_RUNPATH
-  save_LDFLAGS=$LDFLAGS
-  save_libdir=$libdir
-  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
-       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
-  cat >conftest.$ac_ext <<_ACEOF
+  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then
+  echo $ECHO_N "(cached) $ECHO_C" >&6
+else
+  lt_cv_shlibpath_overrides_runpath=no
+    save_LDFLAGS=$LDFLAGS
+    save_libdir=$libdir
+    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
+	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
+    cat >conftest.$ac_ext <<_ACEOF
 /* confdefs.h.  */
 _ACEOF
 cat confdefs.h >>conftest.$ac_ext
@@ -10484,7 +10495,7 @@ if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
   echo "$as_me:$LINENO: \$? = $ac_status" >&5
   (exit $ac_status); }; }; then
   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
-  shlibpath_overrides_runpath=yes
+  lt_cv_shlibpath_overrides_runpath=yes
 fi
 
 else
@@ -10494,8 +10505,12 @@ sed 's/^/| /' conftest.$ac_ext >&5
 fi
 rm -f conftest.err conftest.$ac_objext \
       conftest$ac_exeext conftest.$ac_ext
-  LDFLAGS=$save_LDFLAGS
-  libdir=$save_libdir
+    LDFLAGS=$save_LDFLAGS
+    libdir=$save_libdir
+
+fi
+
+  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
 
   # This implies no fast_install, which is unacceptable.
   # Some rework will be needed to allow for fast_install
@@ -11455,7 +11470,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11458 "configure"
+#line 11473 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11551,7 +11566,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11554 "configure"
+#line 11569 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
diff --git a/bfd/elf32-cris.c b/bfd/elf32-cris.c
index 72916f2..c297689 100644
--- a/bfd/elf32-cris.c
+++ b/bfd/elf32-cris.c
@@ -436,7 +436,8 @@ static reloc_howto_type cris_elf_howto_table [] =
   TLSHOWTO16S (R_CRIS_16_GOT_TPREL),
   TLSHOWTO32 (R_CRIS_32_TPREL),
   TLSHOWTO16S (R_CRIS_16_TPREL),
-  TLSHOWTO32 (R_CRIS_DTPMOD)
+  TLSHOWTO32 (R_CRIS_DTPMOD),
+  TLSHOWTO32 (R_CRIS_32_IE)
 };
 \f
 /* Map BFD reloc types to CRIS ELF reloc types.  */
@@ -479,7 +480,8 @@ static const struct cris_reloc_map cris_reloc_map [] =
   { BFD_RELOC_CRIS_16_GOT_TPREL, R_CRIS_16_GOT_TPREL },
   { BFD_RELOC_CRIS_32_TPREL,	R_CRIS_32_TPREL },
   { BFD_RELOC_CRIS_16_TPREL,	R_CRIS_16_TPREL },
-  { BFD_RELOC_CRIS_DTPMOD,	R_CRIS_DTPMOD }
+  { BFD_RELOC_CRIS_DTPMOD,	R_CRIS_DTPMOD },
+  { BFD_RELOC_CRIS_32_IE,	R_CRIS_32_IE }
 };
 
 static reloc_howto_type *
@@ -794,10 +796,15 @@ struct elf_cris_pcrel_relocs_copied
 {
   /* Next section.  */
   struct elf_cris_pcrel_relocs_copied *next;
+
   /* A section in dynobj.  */
   asection *section;
+
   /* Number of relocs copied in this section.  */
   bfd_size_type count;
+
+  /* Example of reloc being copied, for message.  */
+  enum elf_cris_reloc_type r_type;
 };
 
 /* CRIS ELF linker hash entry.  */
@@ -1474,7 +1481,8 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	case R_CRIS_16_PCREL:
 	case R_CRIS_32_PCREL:
 	  /* If the symbol was local, we need no shlib-specific handling.  */
-	  if (h == NULL || ELF_ST_VISIBILITY (h->other) != STV_DEFAULT)
+	  if (h == NULL || ELF_ST_VISIBILITY (h->other) != STV_DEFAULT
+	      || h->dynindx == -1)
 	    break;
 
 	  /* Fall through.  */
@@ -1488,7 +1496,7 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 		   && r_type != R_CRIS_16_PCREL
 		   && r_type != R_CRIS_32_PCREL)
 		  || (!info->symbolic
-		      || !h->def_regular)))
+		      || (h != NULL && !h->def_regular))))
 	    {
 	      Elf_Internal_Rela outrel;
 	      bfd_byte *loc;
@@ -1826,6 +1834,17 @@ cris_elf_relocate_section (output_bfd, info, input_bfd, input_section,
 	     the GOT entry.  */
 	  break;
 
+	case R_CRIS_32_IE:
+	  if (info->shared)
+	    {
+	      bfd_set_error (bfd_error_invalid_operation);


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


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

end of thread, other threads:[~2009-06-12 22:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-10 23:26 [SCM] archer-jankratochvil-type-refcount: Merge commit 'origin/master' into archer-jankratochvil-type-refcount jkratoch
  -- strict thread matches above, loose matches on Subject: below --
2009-06-12 22:31 jkratoch
2009-06-09 21:46 jkratoch
2009-04-19 17:07 jkratoch
2009-03-27 13:26 jkratoch
2009-03-27  0:35 jkratoch
2009-03-20 17:08 jkratoch
2009-03-15 14:37 jkratoch
2009-03-12 20:10 jkratoch
2009-02-23 14:09 jkratoch
2009-02-21  0:31 jkratoch
2009-02-09 14:35 jkratoch
2009-01-27 14:39 jkratoch
2009-01-15 12:13 jkratoch
2009-01-07 23:23 jkratoch
2009-01-06 16:46 jkratoch
2008-12-28 15:46 jkratoch
2008-12-28 15:35 jkratoch
2008-12-22 18:33 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).