diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/ChangeLog ./bfd/ChangeLog
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/ChangeLog	2019-10-04 01:49:48.000000000 +0000
+++ ./bfd/ChangeLog	2019-10-05 01:49:14.000000000 +0000
@@ -1,3 +1,42 @@
+2019-10-04  Alan Modra  <amodra@gmail.com>
+
+	* elf64-ppc.c (ppc64_elf_check_relocs): Move initialisation of vars.
+	(ppc64_elf_tls_optimize): Correct is_local condition.
+	(allocate_got): Don't reserve dynamic relocations for any of the
+	tls got relocs in PIEs when the symbol is local.
+	(allocate_dynrelocs): Correct validity test for local sym using
+	tlsld_got slot.
+	(ppc64_elf_size_dynamic_sections): Don't reserve dynamic relocations
+	for any of the tls got relocs in PIEs.
+	(ppc64_elf_layout_multitoc): Likewise.
+	(ppc64_elf_relocate_section): Correct validity test for local sym
+	using tlsld_got slot.  Don't emit dynamic relocations for any of
+	the tls got relocs in PIEs when the symbol is local.
+	* elf32-ppc.c (ppc_elf_tls_optimize): Correct is_local condition.
+	(got_relocs_needed): Delete.
+	(allocate_dynrelocs): Correct validity test for local sym using
+	tlsld_got slot.  Don't reserve dynamic relocations for any of the
+	tls got relocs in PIEs when the symbol is local.
+	(ppc_elf_size_dynamic_sections): Don't reserve dynamic relocations
+	for any of the tls got relocs in PIEs.
+	(ppc_elf_relocate_section): Correct validity test for local sym
+	using tlsld_got slot.  Don't emit dynamic relocations for any of
+	the tls got relocs in PIEs when the symbol is local.
+
+2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+	PR ld/22263
+	PR ld/25056
+	* elf32-arm.c (elf32_arm_tls_transition): Use bfd_link_dll instead of
+	bfd_link_pic for TLS checks.
+	(elf32_arm_final_link_relocate): Likewise.
+	(allocate_dynrelocs_for_symbol): Likewise.
+
+2019-10-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
+
+	PR ld/25062
+	* elf32-arm.c (elf32_arm_final_link_relocate): Sign extend data.
+
 2019-09-30  Nick Alcock  <nick.alcock@oracle.com>
 
 	* elf-bfd.h (bfd_section_is_ctf): New inline function.
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf32-arm.c ./bfd/elf32-arm.c
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf32-arm.c	2019-10-04 01:49:48.000000000 +0000
+++ ./bfd/elf32-arm.c	2019-10-05 01:49:14.000000000 +0000
@@ -4914,7 +4914,7 @@ elf32_arm_tls_transition (struct bfd_lin
 {
   int is_local = (h == NULL);
 
-  if (bfd_link_pic (info)
+  if (bfd_link_dll (info)
       || (h && h->root.type == bfd_link_hash_undefweak))
     return r_type;
 
@@ -11700,7 +11700,7 @@ elf32_arm_final_link_relocate (reloc_how
 	  {
 	    /* If we don't know the module number, create a relocation
 	       for it.  */
-	    if (bfd_link_pic (info))
+	    if (bfd_link_dll (info))
 	      {
 		Elf_Internal_Rela outrel;
 
@@ -11804,7 +11804,7 @@ elf32_arm_final_link_relocate (reloc_how
 	       now, and emit any relocations.  If both an IE GOT and a
 	       GD GOT are necessary, we emit the GD first.  */
 
-	    if ((bfd_link_pic (info) || indx != 0)
+	    if ((bfd_link_dll (info) || indx != 0)
 		&& (h == NULL
 		    || (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
 			&& !resolved_to_zero)
@@ -11821,7 +11821,7 @@ elf32_arm_final_link_relocate (reloc_how
 		/* We should have relaxed, unless this is an undefined
 		   weak symbol.  */
 		BFD_ASSERT ((h && (h->root.type == bfd_link_hash_undefweak))
-			    || bfd_link_pic (info));
+			    || bfd_link_dll (info));
 		BFD_ASSERT (globals->sgotplt_jump_table_size + offplt + 8
 			    <= globals->root.sgotplt->size);
 
@@ -12027,9 +12027,9 @@ elf32_arm_final_link_relocate (reloc_how
 	    unsigned long data, insn;
 	    unsigned thumb;
 
-	    data = bfd_get_32 (input_bfd, hit_data);
+	    data = bfd_get_signed_32 (input_bfd, hit_data);
 	    thumb = data & 1;
-	    data &= ~1u;
+	    data &= ~1ul;
 
 	    if (thumb)
 	      {
@@ -16494,7 +16494,7 @@ allocate_dynrelocs_for_symbol (struct el
 	    indx = h->dynindx;
 
 	  if (tls_type != GOT_NORMAL
-	      && (bfd_link_pic (info) || indx != 0)
+	      && (bfd_link_dll (info) || indx != 0)
 	      && (ELF_ST_VISIBILITY (h->other) == STV_DEFAULT
 		  || h->root.type != bfd_link_hash_undefweak))
 	    {
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf32-ppc.c ./bfd/elf32-ppc.c
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf32-ppc.c	2019-10-04 01:49:48.000000000 +0000
+++ ./bfd/elf32-ppc.c	2019-10-05 01:49:14.000000000 +0000
@@ -4455,11 +4455,7 @@ ppc_elf_tls_optimize (bfd *obfd ATTRIBUT
 			h = (struct elf_link_hash_entry *) h->root.u.i.link;
 		    }
 
-		  is_local = FALSE;
-		  if (h == NULL
-		      || !h->def_dynamic)
-		    is_local = TRUE;
-
+		  is_local = SYMBOL_REFERENCES_LOCAL (info, h);
 		  r_type = ELF32_R_TYPE (rel->r_info);
 		  /* If this section has old-style __tls_get_addr calls
 		     without marker relocs, then check that each
@@ -5049,24 +5045,6 @@ got_entries_needed (int tls_mask)
   return need;
 }
 
-/* Calculate size of relocs needed for symbol given its TLS_MASK and
-   NEEDed GOT entries.  KNOWN says a TPREL offset can be calculated at
-   link time.  */
-
-static inline unsigned int
-got_relocs_needed (int tls_mask, unsigned int need, bfd_boolean known)
-{
-  /* All the entries we allocated need relocs.
-     Except IE in executable with a local symbol.  We could also omit
-     the DTPREL reloc on the second word of a GD entry under the same
-     condition as that for IE, but ld.so needs to differentiate
-     LD and GD entries.  */
-  if (known && (tls_mask & TLS_TLS) != 0
-      && (tls_mask & (TLS_TPREL | TLS_GDIE)) != 0)
-    need -= 4;
-  return need * sizeof (Elf32_External_Rela) / 4;
-}
-
 /* If H is undefined, make it dynamic if that makes sense.  */
 
 static bfd_boolean
@@ -5119,7 +5097,7 @@ allocate_dynrelocs (struct elf_link_hash
       need = 0;
       if ((eh->tls_mask & (TLS_TLS | TLS_LD)) == (TLS_TLS | TLS_LD))
 	{
-	  if (!eh->elf.def_dynamic)
+	  if (SYMBOL_REFERENCES_LOCAL (info, &eh->elf))
 	    /* We'll just use htab->tlsld_got.offset.  This should
 	       always be the case.  It's a little odd if we have
 	       a local dynamic reloc against a non-local symbol.  */
@@ -5133,20 +5111,19 @@ allocate_dynrelocs (struct elf_link_hash
       else
 	{
 	  eh->elf.got.offset = allocate_got (htab, need);
-	  if ((bfd_link_pic (info)
+	  if (((bfd_link_pic (info)
+		&& !((eh->tls_mask & TLS_TLS) != 0
+		     && bfd_link_executable (info)
+		     && SYMBOL_REFERENCES_LOCAL (info, &eh->elf)))
 	       || (htab->elf.dynamic_sections_created
 		   && eh->elf.dynindx != -1
 		   && !SYMBOL_REFERENCES_LOCAL (info, &eh->elf)))
 	      && !UNDEFWEAK_NO_DYNAMIC_RELOC (info, &eh->elf))
 	    {
 	      asection *rsec;
-	      bfd_boolean tprel_known = (bfd_link_executable (info)
-					 && SYMBOL_REFERENCES_LOCAL (info,
-								     &eh->elf));
-
-	      need = got_relocs_needed (eh->tls_mask, need, tprel_known);
-	      if ((eh->tls_mask & (TLS_TLS | TLS_LD)) == (TLS_TLS | TLS_LD)
-		  && eh->elf.def_dynamic)
+
+	      need *= sizeof (Elf32_External_Rela) / 4;
+	      if ((eh->tls_mask & (TLS_TLS | TLS_LD)) == (TLS_TLS | TLS_LD))
 		need -= sizeof (Elf32_External_Rela);
 	      rsec = htab->elf.srelgot;
 	      if (eh->elf.type == STT_GNU_IFUNC)
@@ -5594,12 +5571,13 @@ ppc_elf_size_dynamic_sections (bfd *outp
 	    else
 	      {
 		*local_got = allocate_got (htab, need);
-		if (bfd_link_pic (info))
+		if (bfd_link_pic (info)
+		    && !((*lgot_masks & TLS_TLS) != 0
+			 && bfd_link_executable (info)))
 		  {
 		    asection *srel;
-		    bfd_boolean tprel_known = bfd_link_executable (info);
 
-		    need = got_relocs_needed (*lgot_masks, need, tprel_known);
+		    need *= sizeof (Elf32_External_Rela) / 4;
 		    srel = htab->elf.srelgot;
 		    if ((*lgot_masks & (TLS_TLS | PLT_IFUNC)) == PLT_IFUNC)
 		      srel = htab->elf.irelplt;
@@ -5676,7 +5654,7 @@ ppc_elf_size_dynamic_sections (bfd *outp
   if (htab->tlsld_got.refcount > 0)
     {
       htab->tlsld_got.offset = allocate_got (htab, 8);
-      if (bfd_link_pic (info))
+      if (bfd_link_dll (info))
 	htab->elf.srelgot->size += sizeof (Elf32_External_Rela);
     }
   else
@@ -7749,8 +7727,7 @@ ppc_elf_relocate_section (bfd *output_bf
 
 	    indx = 0;
 	    if (tls_type == (TLS_TLS | TLS_LD)
-		&& (h == NULL
-		    || !h->def_dynamic))
+		&& SYMBOL_REFERENCES_LOCAL (info, h))
 	      offp = &htab->tlsld_got.offset;
 	    else if (h != NULL)
 	      {
@@ -7792,8 +7769,8 @@ ppc_elf_relocate_section (bfd *output_bf
 
 		if (offp == &htab->tlsld_got.offset)
 		  tls_m = TLS_LD;
-		else if (h == NULL
-			 || !h->def_dynamic)
+		else if ((tls_m & TLS_LD) != 0
+			 && SYMBOL_REFERENCES_LOCAL (info, h))
 		  tls_m &= ~TLS_LD;
 
 		/* We might have multiple got entries for this sym.
@@ -7827,9 +7804,8 @@ ppc_elf_relocate_section (bfd *output_bf
 		    if (indx != 0
 			|| (bfd_link_pic (info)
 			    && (h == NULL
-				|| !UNDEFWEAK_NO_DYNAMIC_RELOC (info, h)
-				|| offp == &htab->tlsld_got.offset)
-			    && !(tls_ty == (TLS_TLS | TLS_TPREL)
+				|| !UNDEFWEAK_NO_DYNAMIC_RELOC (info, h))
+			    && !(tls_ty != 0
 				 && bfd_link_executable (info)
 				 && SYMBOL_REFERENCES_LOCAL (info, h))))
 		      {
@@ -7939,8 +7915,7 @@ ppc_elf_relocate_section (bfd *output_bf
 		if (tls_type != (TLS_TLS | TLS_LD))
 		  {
 		    if ((tls_mask & TLS_LD) != 0
-			&& !(h == NULL
-			     || !h->def_dynamic))
+			&& !SYMBOL_REFERENCES_LOCAL (info, h))
 		      off += 8;
 		    if (tls_type != (TLS_TLS | TLS_GD))
 		      {
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf64-ppc.c ./bfd/elf64-ppc.c
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/elf64-ppc.c	2019-10-04 01:49:49.000000000 +0000
+++ ./bfd/elf64-ppc.c	2019-10-05 01:49:14.000000000 +0000
@@ -4543,8 +4543,6 @@ ppc64_elf_check_relocs (bfd *abfd, struc
 	    sec->has_toc_reloc = 1;
 	}
 
-      tls_type = 0;
-      ifunc = NULL;
       r_type = ELF64_R_TYPE (rel->r_info);
       switch (r_type)
 	{
@@ -4597,6 +4595,7 @@ ppc64_elf_check_relocs (bfd *abfd, struc
 	  break;
 	}
 
+      ifunc = NULL;
       if (h != NULL)
 	{
 	  if (h->type == STT_GNU_IFUNC)
@@ -4622,6 +4621,7 @@ ppc64_elf_check_relocs (bfd *abfd, struc
 	    }
 	}
 
+      tls_type = 0;
       switch (r_type)
 	{
 	case R_PPC64_TLSGD:
@@ -7803,11 +7803,9 @@ ppc64_elf_tls_optimize (struct bfd_link_
 		    value = sym->st_value;
 
 		  ok_tprel = FALSE;
-		  is_local = FALSE;
-		  if (h == NULL
-		      || !h->def_dynamic)
+		  is_local = SYMBOL_REFERENCES_LOCAL (info, h);
+		  if (is_local)
 		    {
-		      is_local = TRUE;
 		      if (h != NULL
 			  && h->root.type == bfd_link_hash_undefweak)
 			ok_tprel = TRUE;
@@ -9278,7 +9276,7 @@ allocate_got (struct elf_link_hash_entry
       htab->got_reli_size += rentsize;
     }
   else if (((bfd_link_pic (info)
-	     && !((gent->tls_type & TLS_TPREL) != 0
+	     && !(gent->tls_type != 0
 		  && bfd_link_executable (info)
 		  && SYMBOL_REFERENCES_LOCAL (info, h)))
 	    || (htab->elf.dynamic_sections_created
@@ -9384,7 +9382,7 @@ allocate_dynrelocs (struct elf_link_hash
     if (gent->got.refcount > 0)
       {
 	if ((gent->tls_type & TLS_LD) != 0
-	    && !h->def_dynamic)
+	    && SYMBOL_REFERENCES_LOCAL (info, h))
 	  {
 	    ppc64_tlsld_got (gent->owner)->got.refcount += 1;
 	    *pgent = gent->next;
@@ -9812,9 +9810,7 @@ ppc64_elf_size_dynamic_sections (bfd *ou
 			htab->elf.irelplt->size += rel_size;
 			htab->got_reli_size += rel_size;
 		      }
-		    else if (bfd_link_pic (info)
-			     && !((ent->tls_type & TLS_TPREL) != 0
-				  && bfd_link_executable (info)))
+		    else if (bfd_link_dll (info))
 		      {
 			asection *srel = ppc64_elf_tdata (ibfd)->relgot;
 			srel->size += rel_size;
@@ -9890,7 +9886,7 @@ ppc64_elf_size_dynamic_sections (bfd *ou
 	      ent->got.offset = s->size;
 	      ent->owner = ibfd;
 	      s->size += 16;
-	      if (bfd_link_pic (info))
+	      if (bfd_link_dll (info))
 		{
 		  asection *srel = ppc64_elf_tdata (ibfd)->relgot;
 		  srel->size += sizeof (Elf64_External_Rela);
@@ -12185,7 +12181,7 @@ ppc64_elf_layout_multitoc (struct bfd_li
 		  htab->got_reli_size += rel_size;
 		}
 	      else if (bfd_link_pic (info)
-		       && !((ent->tls_type & TLS_TPREL) != 0
+		       && !(ent->tls_type != 0
 			    && bfd_link_executable (info)))
 		{
 		  asection *srel = ppc64_elf_tdata (ibfd)->relgot;
@@ -12211,7 +12207,7 @@ ppc64_elf_layout_multitoc (struct bfd_li
 	  asection *s = ppc64_elf_tdata (ibfd)->got;
 	  ent->got.offset = s->size;
 	  s->size += 16;
-	  if (bfd_link_pic (info))
+	  if (bfd_link_dll (info))
 	    {
 	      asection *srel = ppc64_elf_tdata (ibfd)->relgot;
 	      srel->size += sizeof (Elf64_External_Rela);
@@ -15611,8 +15607,7 @@ ppc64_elf_relocate_section (bfd *output_
 	    struct got_entry *ent;
 
 	    if (tls_type == (TLS_TLS | TLS_LD)
-		&& (h == NULL
-		    || !h->elf.def_dynamic))
+		&& SYMBOL_REFERENCES_LOCAL (info, &h->elf))
 	      ent = ppc64_tlsld_got (input_bfd);
 	    else
 	      {
@@ -15687,10 +15682,8 @@ ppc64_elf_relocate_section (bfd *output_
 		else if (indx != 0
 			 || (bfd_link_pic (info)
 			     && (h == NULL
-				 || !UNDEFWEAK_NO_DYNAMIC_RELOC (info, &h->elf)
-				 || (tls_type == (TLS_TLS | TLS_LD)
-				     && !h->elf.def_dynamic))
-			     && !(tls_type == (TLS_TLS | TLS_TPREL)
+				 || !UNDEFWEAK_NO_DYNAMIC_RELOC (info, &h->elf))
+			     && !(tls_type != 0
 				  && bfd_link_executable (info)
 				  && SYMBOL_REFERENCES_LOCAL (info, &h->elf))))
 		  relgot = ppc64_elf_tdata (ent->owner)->relgot;
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/version.h ./bfd/version.h
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/bfd/version.h	2019-10-04 01:49:49.000000000 +0000
+++ ./bfd/version.h	2019-10-05 01:49:14.000000000 +0000
@@ -16,7 +16,7 @@
 
    In releases, the date is not included in either version strings or
    sonames.  */
-#define BFD_VERSION_DATE 20191004
+#define BFD_VERSION_DATE 20191005
 #define BFD_VERSION @bfd_version@
 #define BFD_VERSION_STRING  @bfd_version_package@ @bfd_version_string@
 #define REPORT_BUGS_TO @report_bugs_to@
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/djunpack.bat ./djunpack.bat
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/djunpack.bat	2019-10-04 01:54:01.000000000 +0000
+++ ./djunpack.bat	2019-10-05 01:53:49.000000000 +0000
@@ -17,8 +17,8 @@ Rem
 Rem The following 2 lines need to be changed with each new GDB release, to
 Rem be identical to the name of the top-level directory where the GDB
 Rem distribution unpacks itself.
-set GDBVER=$package-8.3.50.20191004
-if "%GDBVER%"=="$package-8.3.50.20191004" GoTo EnvOk
+set GDBVER=$package-8.3.50.20191005
+if "%GDBVER%"=="$package-8.3.50.20191005" GoTo EnvOk
 Rem If their environment space is too small, re-exec with a larger one
 command.com /e:4096 /c %0 %1
 GoTo End
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/ChangeLog ./gdb/ChangeLog
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/ChangeLog	2019-10-04 01:49:50.000000000 +0000
+++ ./gdb/ChangeLog	2019-10-05 01:49:16.000000000 +0000
@@ -1,3 +1,8 @@
+2019-10-03  Tom Tromey  <tom@tromey.com>
+
+	PR rust/24976:
+	* dwarf2read.c (quirk_rust_enum): Handle single-element unions.
+
 2019-10-03  Andrew Burgess  <andrew.burgess@embecosm.com>
 
 	* f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gcore.1 ./gdb/doc/gcore.1
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gcore.1	2019-10-04 01:53:54.000000000 +0000
+++ ./gdb/doc/gcore.1	2019-10-05 01:53:41.000000000 +0000
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GCORE 1"
-.TH GCORE 1 "2019-10-04" "gdb-8.3.50.20191004-git" "GNU Development Tools"
+.TH GCORE 1 "2019-10-05" "gdb-8.3.50.20191005-git" "GNU Development Tools"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.1 ./gdb/doc/gdb.1
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.1	2019-10-04 01:53:53.000000000 +0000
+++ ./gdb/doc/gdb.1	2019-10-05 01:53:41.000000000 +0000
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GDB 1"
-.TH GDB 1 "2019-10-04" "gdb-8.3.50.20191004-git" "GNU Development Tools"
+.TH GDB 1 "2019-10-05" "gdb-8.3.50.20191005-git" "GNU Development Tools"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb-add-index.1 ./gdb/doc/gdb-add-index.1
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb-add-index.1	2019-10-04 01:53:54.000000000 +0000
+++ ./gdb/doc/gdb-add-index.1	2019-10-05 01:53:41.000000000 +0000
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GDB-ADD-INDEX 1"
-.TH GDB-ADD-INDEX 1 "2019-10-04" "gdb-8.3.50.20191004-git" "GNU Development Tools"
+.TH GDB-ADD-INDEX 1 "2019-10-05" "gdb-8.3.50.20191005-git" "GNU Development Tools"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info ./gdb/doc/gdb.info
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info	2019-10-04 01:53:50.000000000 +0000
+++ ./gdb/doc/gdb.info	2019-10-05 01:53:38.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-1 ./gdb/doc/gdb.info-1
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-1	2019-10-04 01:53:38.000000000 +0000
+++ ./gdb/doc/gdb.info-1	2019-10-05 01:53:25.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
@@ -44,7 +44,7 @@ Debugging with GDB
 
 This file describes GDB, the GNU symbolic debugger.
 
-   This is the Tenth Edition, for GDB (GDB) Version 8.3.50.20191004-git.
+   This is the Tenth Edition, for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
@@ -507,7 +507,7 @@ Let us use GDB to try to see what is goi
      There is absolutely no warranty for GDB; type "show warranty"
       for details.
 
-     GDB 8.3.50.20191004-git, Copyright 1999 Free Software Foundation, Inc...
+     GDB 8.3.50.20191005-git, Copyright 1999 Free Software Foundation, Inc...
      (gdb)
 
 GDB reads only enough symbol data to know where to find the rest when
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-2 ./gdb/doc/gdb.info-2
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-2	2019-10-04 01:53:39.000000000 +0000
+++ ./gdb/doc/gdb.info-2	2019-10-05 01:53:27.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-3 ./gdb/doc/gdb.info-3
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-3	2019-10-04 01:53:41.000000000 +0000
+++ ./gdb/doc/gdb.info-3	2019-10-05 01:53:29.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-4 ./gdb/doc/gdb.info-4
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-4	2019-10-04 01:53:44.000000000 +0000
+++ ./gdb/doc/gdb.info-4	2019-10-05 01:53:31.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-5 ./gdb/doc/gdb.info-5
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-5	2019-10-04 01:53:46.000000000 +0000
+++ ./gdb/doc/gdb.info-5	2019-10-05 01:53:33.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-6 ./gdb/doc/gdb.info-6
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-6	2019-10-04 01:53:48.000000000 +0000
+++ ./gdb/doc/gdb.info-6	2019-10-05 01:53:35.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
@@ -3888,7 +3888,7 @@ and TeX (or 'texi2roff') to typeset the 
 
    GDB includes an already formatted copy of the on-line Info version of
 this manual in the 'gdb' subdirectory.  The main Info file is
-'gdb-8.3.50.20191004-git/gdb/gdb.info', and it refers to subordinate
+'gdb-8.3.50.20191005-git/gdb/gdb.info', and it refers to subordinate
 files matching 'gdb.info*' in the same directory.  If necessary, you can
 print out these files, or read them with any editor; but they are easier
 to read using the 'info' subsystem in GNU Emacs or the standalone 'info'
@@ -3898,8 +3898,8 @@ program, available as part of the GNU Te
 Info formatting programs, such as 'texinfo-format-buffer' or 'makeinfo'.
 
    If you have 'makeinfo' installed, and are in the top level GDB source
-directory ('gdb-8.3.50.20191004-git', in the case of version
-8.3.50.20191004-git), you can make the Info file by typing:
+directory ('gdb-8.3.50.20191005-git', in the case of version
+8.3.50.20191005-git), you can make the Info file by typing:
 
      cd gdb
      make gdb.info
@@ -3924,7 +3924,7 @@ On its own, TeX cannot either read or ty
 
    If you have TeX and a DVI printer program installed, you can typeset
 and print this manual.  First switch to the 'gdb' subdirectory of the
-main source directory (for example, to 'gdb-8.3.50.20191004-git/gdb')
+main source directory (for example, to 'gdb-8.3.50.20191005-git/gdb')
 and type:
 
      make gdb.dvi
@@ -3933,8 +3933,8 @@ and type:
 
    ---------- Footnotes ----------
 
-   (1) In 'gdb-8.3.50.20191004-git/gdb/refcard.ps' of the version
-8.3.50.20191004-git release.
+   (1) In 'gdb-8.3.50.20191005-git/gdb/refcard.ps' of the version
+8.3.50.20191005-git release.
 
 
 File: gdb.info,  Node: Installing GDB,  Next: Maintenance Commands,  Prev: Formatting Documentation,  Up: Top
@@ -4085,35 +4085,35 @@ preparing GDB for installation; you can 
 a single directory, whose name is usually composed by appending the
 version number to 'gdb'.
 
-   For example, the GDB version 8.3.50.20191004-git distribution is in
-the 'gdb-8.3.50.20191004-git' directory.  That directory contains:
+   For example, the GDB version 8.3.50.20191005-git distribution is in
+the 'gdb-8.3.50.20191005-git' directory.  That directory contains:
 
-'gdb-8.3.50.20191004-git/configure (and supporting files)'
+'gdb-8.3.50.20191005-git/configure (and supporting files)'
      script for configuring GDB and all its supporting libraries
 
-'gdb-8.3.50.20191004-git/gdb'
+'gdb-8.3.50.20191005-git/gdb'
      the source specific to GDB itself
 
-'gdb-8.3.50.20191004-git/bfd'
+'gdb-8.3.50.20191005-git/bfd'
      source for the Binary File Descriptor library
 
-'gdb-8.3.50.20191004-git/include'
+'gdb-8.3.50.20191005-git/include'
      GNU include files
 
-'gdb-8.3.50.20191004-git/libiberty'
+'gdb-8.3.50.20191005-git/libiberty'
      source for the '-liberty' free software library
 
-'gdb-8.3.50.20191004-git/opcodes'
+'gdb-8.3.50.20191005-git/opcodes'
      source for the library of opcode tables and disassemblers
 
-'gdb-8.3.50.20191004-git/readline'
+'gdb-8.3.50.20191005-git/readline'
      source for the GNU command-line interface
 
    There may be other subdirectories as well.
 
    The simplest way to configure and build GDB is to run 'configure'
 from the 'gdb-VERSION-NUMBER' source directory, which in this example is
-the 'gdb-8.3.50.20191004-git' directory.
+the 'gdb-8.3.50.20191005-git' directory.
 
    First switch to the 'gdb-VERSION-NUMBER' source directory if you are
 not already in it; then run 'configure'.  Pass the identifier for the
@@ -4121,7 +4121,7 @@ platform on which GDB will run as an arg
 
    For example:
 
-     cd gdb-8.3.50.20191004-git
+     cd gdb-8.3.50.20191005-git
      ./configure
      make
 
@@ -4169,13 +4169,13 @@ to specify a path to find 'configure' it
 directory.  If the path to 'configure' would be the same as the argument
 to '--srcdir', you can leave out the '--srcdir' option; it is assumed.)
 
-   For example, with version 8.3.50.20191004-git, you can build GDB in a
+   For example, with version 8.3.50.20191005-git, you can build GDB in a
 separate directory for a Sun 4 like this:
 
-     cd gdb-8.3.50.20191004-git
+     cd gdb-8.3.50.20191005-git
      mkdir ../gdb-sun4
      cd ../gdb-sun4
-     ../gdb-8.3.50.20191004-git/configure
+     ../gdb-8.3.50.20191005-git/configure
      make
 
    When 'configure' builds a configuration using a remote source
@@ -4186,7 +4186,7 @@ the example, you'd find the Sun 4 librar
 
    Make sure that your path to the 'configure' script has just one
 instance of 'gdb' in it.  If your path to 'configure' looks like
-'../gdb-8.3.50.20191004-git/gdb/configure', you are configuring only one
+'../gdb-8.3.50.20191005-git/gdb/configure', you are configuring only one
 subdirectory of GDB, not the whole package.  This leads to build errors
 about missing include files such as 'bfd/bfd.h'.
 
@@ -4202,8 +4202,8 @@ a configured directory--whatever directo
 
    The 'Makefile' that 'configure' generates in each source directory
 also runs recursively.  If you type 'make' in a source directory such as
-'gdb-8.3.50.20191004-git' (or in a separate configured directory
-configured with '--srcdir=DIRNAME/gdb-8.3.50.20191004-git'), you will
+'gdb-8.3.50.20191005-git' (or in a separate configured directory
+configured with '--srcdir=DIRNAME/gdb-8.3.50.20191005-git'), you will
 build all the required libraries, and then build GDB.
 
    When you have multiple hosts or targets configured in separate
@@ -4248,7 +4248,7 @@ you can use it to test your guesses on a
      Invalid configuration `i986v': machine `i986v' not recognized
 
 'config.sub' is also distributed in the GDB source directory
-('gdb-8.3.50.20191004-git', for version 8.3.50.20191004-git).
+('gdb-8.3.50.20191005-git', for version 8.3.50.20191005-git).
 
 
 File: gdb.info,  Node: Configure Options,  Next: System-wide configuration,  Prev: Config Names,  Up: Installing GDB
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-7 ./gdb/doc/gdb.info-7
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-7	2019-10-04 01:53:50.000000000 +0000
+++ ./gdb/doc/gdb.info-7	2019-10-05 01:53:37.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-8 ./gdb/doc/gdb.info-8
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdb.info-8	2019-10-04 01:53:50.000000000 +0000
+++ ./gdb/doc/gdb.info-8	2019-10-05 01:53:38.000000000 +0000
@@ -21,7 +21,7 @@ END-INFO-DIR-ENTRY
    This file documents the GNU debugger GDB.
 
    This is the Tenth Edition, of 'Debugging with GDB: the GNU
-Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191004-git.
+Source-Level Debugger' for GDB (GDB) Version 8.3.50.20191005-git.
 
    Copyright (C) 1988-2019 Free Software Foundation, Inc.
 
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdbinit.5 ./gdb/doc/gdbinit.5
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdbinit.5	2019-10-04 01:53:54.000000000 +0000
+++ ./gdb/doc/gdbinit.5	2019-10-05 01:53:41.000000000 +0000
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GDBINIT 5"
-.TH GDBINIT 5 "2019-10-04" "gdb-8.3.50.20191004-git" "GNU Development Tools"
+.TH GDBINIT 5 "2019-10-05" "gdb-8.3.50.20191005-git" "GNU Development Tools"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdbserver.1 ./gdb/doc/gdbserver.1
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/doc/gdbserver.1	2019-10-04 01:53:54.000000000 +0000
+++ ./gdb/doc/gdbserver.1	2019-10-05 01:53:41.000000000 +0000
@@ -124,7 +124,7 @@
 .\" ========================================================================
 .\"
 .IX Title "GDBSERVER 1"
-.TH GDBSERVER 1 "2019-10-04" "gdb-8.3.50.20191004-git" "GNU Development Tools"
+.TH GDBSERVER 1 "2019-10-05" "gdb-8.3.50.20191005-git" "GNU Development Tools"
 .\" For nroff, turn off justification.  Always turn off hyphenation; it makes
 .\" way too many mistakes in technical documents.
 .if n .ad l
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/dwarf2read.c ./gdb/dwarf2read.c
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/dwarf2read.c	2019-10-04 01:49:51.000000000 +0000
+++ ./gdb/dwarf2read.c	2019-10-05 01:49:16.000000000 +0000
@@ -10076,10 +10076,10 @@ quirk_rust_enum (struct type *type, stru
       SET_FIELD_BITPOS (TYPE_FIELD (type, 0), 0);
       TYPE_FIELD_NAME (type, 0) = "<<variants>>";
     }
-  else if (TYPE_NFIELDS (type) == 1)
+  /* A union with a single anonymous field is probably an old-style
+     univariant enum.  */
+  else if (TYPE_NFIELDS (type) == 1 && streq (TYPE_FIELD_NAME (type, 0), ""))
     {
-      /* We assume that a union with a single field is a univariant
-	 enum.  */
       /* Smash this type to be a structure type.  We have to do this
 	 because the type has already been recorded.  */
       TYPE_CODE (type) = TYPE_CODE_STRUCT;
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/po/gdb.pot ./gdb/po/gdb.pot
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/po/gdb.pot	2019-10-04 01:53:27.000000000 +0000
+++ ./gdb/po/gdb.pot	2019-10-05 01:53:13.000000000 +0000
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2019-10-04 01:53+0000\n"
+"POT-Creation-Date: 2019-10-05 01:53+0000\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/ChangeLog ./gdb/testsuite/ChangeLog
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/ChangeLog	2019-10-04 01:49:51.000000000 +0000
+++ ./gdb/testsuite/ChangeLog	2019-10-05 01:49:17.000000000 +0000
@@ -1,3 +1,15 @@
+2019-10-04  Tom de Vries  <tdevries@suse.de>
+
+	* gdb.cp/local-static.c (main): Move declaration of int i out of the
+	for loop.
+
+2019-10-03  Tom Tromey  <tom@tromey.com>
+
+	PR rust/24976:
+	* gdb.rust/simple.rs (Union2): New type.
+	(main): Use Union2.
+	* gdb.rust/simple.exp: Add test.
+
 2019-10-03  Andrew Burgess  <andrew.burgess@embecosm.com>
 
 	* gdb.fortran/nested-funcs-2.exp: Run tests with and without the
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.cp/local-static.c ./gdb/testsuite/gdb.cp/local-static.c
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.cp/local-static.c	2019-10-04 01:49:51.000000000 +0000
+++ ./gdb/testsuite/gdb.cp/local-static.c	2019-10-05 01:49:17.000000000 +0000
@@ -145,7 +145,9 @@ free_inline_func (void)
 int
 main ()
 {
-  for (int i = 0; i < 1000; i++)
+  int i;
+
+  for (i = 0; i < 1000; i++)
     {
       free_func ();
       free_inline_func ();
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.rust/simple.exp ./gdb/testsuite/gdb.rust/simple.exp
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.rust/simple.exp	2019-10-04 01:49:51.000000000 +0000
+++ ./gdb/testsuite/gdb.rust/simple.exp	2019-10-05 01:49:17.000000000 +0000
@@ -309,6 +309,8 @@ gdb_test_sequence "ptype/o SimpleLayout"
     "                         }"
 }
 
+gdb_test "print u2" " = simple::Union2 {name: \\\[1\\\]}"
+
 # PR rust/23626 - this used to crash.  Note that the results are
 # fairly lax because most existing versions of Rust (those before the
 # DW_TAG_variant patches) do not emit what gdb wants here; and there
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.rust/simple.rs ./gdb/testsuite/gdb.rust/simple.rs
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/gdb/testsuite/gdb.rust/simple.rs	2019-10-04 01:49:51.000000000 +0000
+++ ./gdb/testsuite/gdb.rust/simple.rs	2019-10-05 01:49:17.000000000 +0000
@@ -85,6 +85,10 @@ union Union {
     f2: u8,
 }
 
+pub union Union2 {
+    pub name: [u8; 1],
+}
+
 struct StringAtOffset {
     pub field1: &'static str,
     pub field2: i32,
@@ -180,6 +184,8 @@ fn main () {
 
     let empty_enum_value: EmptyEnum;
 
+    let u2 = Union2 { name: [1] };
+
     println!("{}, {}", x.0, x.1);        // set breakpoint here
     println!("{}", diff2(92, 45));
     empty();
diff -a -u -r --new-file --show-function-line='^[A-Za-z_]' /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/md5.sum ./md5.sum
--- /sourceware/snapshot-tmp/gdb/snapshot/current-gdb/update-snapshot/old/gdb-8.3.50.20191004/md5.sum	2019-10-04 01:54:01.000000000 +0000
+++ ./md5.sum	2019-10-05 01:53:49.000000000 +0000
@@ -6,7 +6,7 @@ d3a441477076825693ea3d1a18fc3479  bfd/re
 4b342d0aa45059d99009ff2dcdb68664  bfd/libbfd.h
 8b8a453da673107291f4754c544a2ebe  bfd/cpu-nds32.c
 fb32050ffb28a5c4858c29991be30938  bfd/vaxnetbsd.c
-7f98d4abd115e9cdbe23e3c13931731a  bfd/elf64-ppc.c
+2df573635a40345191861e9dda88aea8  bfd/elf64-ppc.c
 ea3becf9543146e194d9dd435b550f2a  bfd/elf32-mcore.c
 58ee1669265cf8296820ddf3dc22cb12  bfd/archures.c
 b026e9477cdd5d8a19e171c0853e35b3  bfd/i386lynx.c
@@ -37,7 +37,7 @@ f73502530f3abf5e11406d868ea1af80  bfd/xt
 5cb0eef365977eb8c7430c04738a9e2c  bfd/wasm-module.c
 ce93ef6cd4c0ba0799b9d6d75b36638a  bfd/elf64-mips.c
 c4d082a9c0c27456afe3357c4987b675  bfd/cpu-m9s12x.c
-2791d1c93a752fab596f50b787af09c3  bfd/version.h
+360af6c3dd9497a8e6eca64cb38c68ea  bfd/version.h
 f635e95e06957e744083b2160029e168  bfd/cpu-tilegx.c
 f2af796af1efd1971472837a26010b6f  bfd/coff-mcore.c
 89637e92fbef834ef0c545805106bcc4  bfd/cpu-avr.c
@@ -250,7 +250,7 @@ a6233c0e696c8b5bdc8415a7c9cecd6c  bfd/co
 d5e1a602431b0bf7049a07418937d087  bfd/bfd-in.h
 a8f6bdd7209b4d9a6550b071226c7e88  bfd/elf32-nds32.c
 6faafd2cb88b1e0e7941e460f3a4646f  bfd/elf32-i386.c
-15c381a539fe29866e7f9d5eb7d8069f  bfd/elf32-ppc.c
+27fd5320df382929d15545f372ed488a  bfd/elf32-ppc.c
 7d710529ca3fafb2bb57132df24957e3  bfd/ChangeLog-2004
 bb2db44e83a1cbe7833da3279d111694  bfd/elfxx-sparc.c
 fba04df4d8eb0bafdc8c2daf590c743f  bfd/cpu-powerpc.c
@@ -405,7 +405,7 @@ bf3124212f297f533195226f5574c9d1  bfd/el
 4f64387cc2f68f7f980105d0a6443858  bfd/elfxx-ia64.h
 72fd73fc0277b8c62634baabecbda132  bfd/elf32-or1k.c
 104a70b5229947c59091790c37236944  bfd/targets.c
-c8ea827e49622a4d8b0ce4d8d140f3fb  bfd/ChangeLog
+9d57a6887a8e7b32647bcf4a4b1370c7  bfd/ChangeLog
 80e643d9b80b026d0cb49c1a9844db85  bfd/section.c
 2fddd07f100af0551285d028f9fe8eb0  bfd/elf-s390-common.c
 07d1c3689bb0c5e5b6d5dfce7aee122e  bfd/elf32-lm32.c
@@ -427,7 +427,7 @@ c50e59518604f040f78c62d4c1dba3a6  bfd/pe
 e4d2dc1f4dd23b77953636bf0a721cd1  bfd/cpu-tic30.c
 5dbf7dda55d75e9a4ba95e6e4c9de3ea  bfd/cpu-m32r.c
 7450da4150ff19cb98e15abd7f3acbbd  bfd/elf32-csky.c
-8cdf7b257f8e95f75c3bb0bf18240bf3  bfd/elf32-arm.c
+a810870e581cb4ac84dd4633cb6c217b  bfd/elf32-arm.c
 b639c27d91e37fef6304c7e483f9d511  bfd/elf32-ppc.h
 1304eb5ab3399fa008542bc27b4f4798  bfd/cpu-msp430.c
 68a4c622bb1c6da72efb21da56fc15d3  bfd/cpu-fr30.c
@@ -1321,7 +1321,7 @@ e702c76e3ff96a6c491fa0781e028a59  gdb/se
 f48d4eeceeac9d5a468d149b0e5ed7c4  gdb/arch-utils.c
 b594c3f5a509e22ed950790ba6ce2e91  gdb/cp-valprint.c
 df393c602e6b20bc1b0caa1b02df828f  gdb/disable-implicit-rules.mk
-eba74e54227f2eaf362b3782f436d644  gdb/dwarf2read.c
+b35155aab168550d5a080bf0869dc124  gdb/dwarf2read.c
 34fe1660581407efc4e2e7e0cfef32ae  gdb/or1k-tdep.c
 653ccb0f91b7f978ac58d80833158b97  gdb/amd64-windows-tdep.c
 e4708e4b23e4e6ddd07c7245736d37b3  gdb/testsuite/config/cygmon.exp
@@ -1777,7 +1777,7 @@ e099907910de1a5fa9cab12394147af5  gdb/te
 7844dbfb63d5ee815db3c14cb769c796  gdb/testsuite/gdb.cp/m-static1.cc
 d35ad7023fbe864b81f9469bbee7c048  gdb/testsuite/gdb.cp/gdb1355.cc
 a9a3a80064c295a64fb9e15b302ce52b  gdb/testsuite/gdb.cp/mb-inline.exp
-ed61cdd7b26ba520f28af8d7d42b1780  gdb/testsuite/gdb.cp/local-static.c
+b386779364e14d1f659352700199f4c9  gdb/testsuite/gdb.cp/local-static.c
 4e402d8c3d4006f294952831e26242fa  gdb/testsuite/gdb.cp/method2.cc
 20b6757e7d8cd276c4fa5d8579688beb  gdb/testsuite/gdb.cp/local-static.exp
 f4bbb155a25136264457ad77942d615f  gdb/testsuite/gdb.cp/static-method.exp
@@ -4422,7 +4422,7 @@ a73456a413ec206c45a1c05bede47b75  gdb/te
 3ae360ac3827f64fb894dcbec57961b3  gdb/testsuite/gdb.go/max-depth.go
 68d17058fa82304a192749f0eadc138d  gdb/testsuite/gdb.go/strings.go
 81b7ed6cb92c627d245bd2efc4b953b9  gdb/testsuite/gdb.go/methods.go
-1003d9ca2db5f7a39996dab9c1caf012  gdb/testsuite/ChangeLog
+8d87c2f8b3de3542fe3b07a6abdec264  gdb/testsuite/ChangeLog
 b3f11b21e5921c419a43f93720dedf85  gdb/testsuite/gdb.asm/empty.inc
 2f2be836393e53a114f382c2872fd5fc  gdb/testsuite/gdb.asm/asm-source.exp
 f1621bbbb2acbec5adef86d7d9549975  gdb/testsuite/gdb.asm/bfin.inc
@@ -5175,13 +5175,13 @@ b35ca50922c855482b273651492e6276  gdb/te
 08b0e399316f8a505836434c823070f2  gdb/testsuite/gdb.rust/traits.rs
 5319296b4062e8bde48149111d6cef7c  gdb/testsuite/gdb.rust/modules.exp
 6c7c5aa2028da0fd056d8e92bef83e73  gdb/testsuite/gdb.rust/unsized.rs
-b948745088478f63e012f30a5a414175  gdb/testsuite/gdb.rust/simple.exp
+ea562be413a22e6af56dce9c94713a58  gdb/testsuite/gdb.rust/simple.exp
 67930d76e02bb91ae4ab876937f04aff  gdb/testsuite/gdb.rust/watch.rs
 a43d3b4db4a44e4d682a9214bd6efbd2  gdb/testsuite/gdb.rust/traits.exp
 9068bbce74a287559cae22f5cfbb123d  gdb/testsuite/gdb.rust/modules.rs
 b2ca5e4d7ac119d2a47dd59ff14f09dc  gdb/testsuite/gdb.rust/unsized.exp
 282c4e9c1773c297d57c2642b70d426f  gdb/testsuite/gdb.rust/generics.rs
-61870e20c97ba1ac2c80bfabe585bebb  gdb/testsuite/gdb.rust/simple.rs
+ba5dd952f91a80635cdbae15d19a3837  gdb/testsuite/gdb.rust/simple.rs
 a36c2e9f8bf7f9d788db20927e18e921  gdb/testsuite/gdb.disasm/t12_bit.s
 70b15852295559a37b00c60d55167563  gdb/testsuite/gdb.disasm/t04_sub.s
 a4d87ffd98518c37f97033028c081a9a  gdb/testsuite/gdb.disasm/t01_mov.exp
@@ -5251,44 +5251,44 @@ eba97cdaede1d4e4e020cbbf33277553  gdb/sy
 1f67f85f1c1012b8cf9bd3d998933b74  gdb/f-valprint.c
 b4661232e1c651351e7aab789eebdb61  gdb/gdb_curses.h
 8108dd8f906f2654fecc74958cf383db  gdb/doc/psrc.sed
-26feda779ecef607f450d4b9d0fc9bf9  gdb/doc/gdb.info-3
-eb5a113a79ced47a87ddc67d8e8ee303  gdb/doc/gdb.info-4
+7ba113a24a4939d69245ec57b5772efe  gdb/doc/gdb.info-3
+0e8b054663b08bf8b988f112b3916d0b  gdb/doc/gdb.info-4
 ab0fe311032294b952da80585b8b90e7  gdb/doc/fdl.texi
 16678295b5adc8b919f4a12d3ed4dbb5  gdb/doc/Makefile.in
-5c9aee72042e3584b73ae2961fd6c093  gdb/doc/gdb.info-7
-566ddf0520ec24f1cf6f7a846667ce2a  gdb/doc/gdbserver.1
+2939db1be2ab80ef3846313a25ee3d21  gdb/doc/gdb.info-7
+2439ed11eab9efd66587e4549a8d35a6  gdb/doc/gdbserver.1
 409e53fb962f88c74cea98080d0da8a3  gdb/doc/guile.texi
 f81a0e00e0cb9e41b078069fb9bedb07  gdb/doc/stack_frame.txt
 a07e6b7f88c558d15d03adeeaca94c74  gdb/doc/stabs.info
-dcf21d257d0c8fa1c5dc061d0d37ede3  gdb/doc/gdb.info-5
-49b26c3fcb051efb2bb27bfc64f11d6d  gdb/doc/gdb.info-8
+c68f1b95e074ace3ba5936756c41b60f  gdb/doc/gdb.info-5
+7071430d7fa2b9b64d7586cdcd1ebc41  gdb/doc/gdb.info-8
 9137c9e47e1692b8efec8e28482aa6fb  gdb/doc/agentexpr.texi
 66674dc351ba95941f422dc18cae24bb  gdb/doc/.gitignore
-1b44a03892350b5059c955f5e48045ce  gdb/doc/gdb.info-1
+d8d34ae07c318e8ce026eb2076092de7  gdb/doc/gdb.info-1
 d5d06eaf9b4d44aa442a4a281aa9aea4  gdb/doc/a4rc.sed
-8982641b45cd6953dc8a226dc754a6fe  gdb/doc/gdb.info-6
+b00af17a81bed32ae359a6197680950e  gdb/doc/gdb.info-6
 ccbab6960fe8eb458945a0fe9ac4e5b4  gdb/doc/gdb.texinfo
-d859b3ea39bc5e82196e215818a7df46  gdb/doc/gdb-add-index.1
+6828437518ef19ca91ca7efd4739e538  gdb/doc/gdb-add-index.1
 553b7fe1bf4b5d8b96fdb8cd83503de1  gdb/doc/stack_frame.svg
 04c82b1da7e894a6555868e4f86225af  gdb/doc/filter-for-doxygen
 5a0374965ab816741c91c7eaea412912  gdb/doc/Doxyfile-gdb-api.in
 e41a962402414f62e2f16a22a2783703  gdb/doc/annotate.info
-eb6aa0f6555426c77d5bc4f1851045cb  gdb/doc/gdb.info-2
+7874470873f3d54bc000b271fed79e41  gdb/doc/gdb.info-2
 fdd79e6125e56c1eb7e28b2a71d5b48e  gdb/doc/refcard.tex
 6076d300a46651562d4ecd0604442414  gdb/doc/stack_frame.png
-7be881af671a7f6cbaf9d7ac437be82c  gdb/doc/gdb.info
+586e6a12a416241c225ed2fae272af2c  gdb/doc/gdb.info
 f5ef40cd45a167ae864b19c4595c4686  gdb/doc/python.texi
 3b39212c16d58cf203006a2a3c3edcd4  gdb/doc/stabs.texinfo
 8c079e4895ab16982a2e629d64596666  gdb/doc/ChangeLog
-956c8ae72b8e83a0babcc9a7c2c63572  gdb/doc/gdb.1
-ed4d9b0e0ee1a52e507e7a6fd10dfc75  gdb/doc/gcore.1
+591f993266db9b59710f5308a62bda9b  gdb/doc/gdb.1
+c4bee2f8bac16ab90aaf59406e6774a2  gdb/doc/gcore.1
 d39233c86ed6a6dc9e853ae6a11fe03e  gdb/doc/stack_frame.pdf
 cb7ea97486937341d6ae27968ee40d23  gdb/doc/Doxyfile-base.in
 29393ec87c7921291f54ee7b57ccb1d9  gdb/doc/all-cfg.texi
 bf96494e6e4d346175babd5ef9781882  gdb/doc/gpl.texi
 cd5e3faa9bd1b684a73c7d527cdb4988  gdb/doc/filter-params.pl
 7bfdb0765c5d050d204fbb30aeeba0d8  gdb/doc/stack_frame.eps
-24f7d403ec68bf62a3e4e4c13e8041c5  gdb/doc/gdbinit.5
+c7a5aab631cd09e7a9e787cb27639d02  gdb/doc/gdbinit.5
 24d4f8b6396da16d9a8dd98281ac40ff  gdb/doc/Doxyfile-gdb-xref.in
 6f3b23a5f42aba8cbac1bcf7329942e4  gdb/doc/annotate.texinfo
 0b3e26fe6db92700f1e51071ff475193  gdb/doc/doxy-index.in
@@ -5799,7 +5799,7 @@ adc0b8c9ed245cc83198b0c7eb183127  gdb/ui
 7242736b5bba9098c974d0e015b167a5  gdb/std-regs.c
 90d72be4c884a79ded08fa4fbbcb6b9b  gdb/go-lang.h
 9a1fd6216061720bf8556e23cf224721  gdb/i386-windows-nat.c
-0a236bd211e7bfca02933c8021f615ff  gdb/po/gdb.pot
+e85e88fceab7024c2eebd7c4e3b14801  gdb/po/gdb.pot
 1851bff0653201a488dcae18dde7efad  gdb/po/gdbtext
 7da5f0db2eb697d3fb85524954abaef5  gdb/break-catch-syscall.c
 28dc5ce78b0d1cdd1769ac6482e74286  gdb/ada-lang.c
@@ -5831,7 +5831,7 @@ e3e2430aebaf80b6aca6759cfa9612d4  gdb/nb
 0d4182edc7beb626c56d423668383a2b  gdb/i386-fbsd-nat.c
 094e893d632874e14e92917b8c57c5fd  gdb/mipsread.c
 d4e47464ef8b510c11c547fb163d603a  gdb/amd64-darwin-tdep.c
-683c512c7cd87047f76fa5d5162614de  gdb/ChangeLog
+92ea63f0c7291ce1b7a8e865979c64c6  gdb/ChangeLog
 2fd8f81fb260df7b31ffaaaa44e1d4b9  gdb/go-typeprint.c
 72844164dd4f7823c2ad86ed48f0b44a  gdb/score-tdep.c
 d53f4e4aa4335ee525083954f4c2293b  gdb/xml-support.h
