diff --git a/gcc/c-family/c-ada-spec.cc b/gcc/c-family/c-ada-spec.cc
index 4812cd8ee39397eb9b9ecfd4438b74ef47dc38c3..dee419524c18ca72c62600756eed607cb495fdb3 100644
--- a/gcc/c-family/c-ada-spec.cc
+++ b/gcc/c-family/c-ada-spec.cc
@@ -40,6 +40,7 @@ static void dump_ada_structure (pretty_printer *, tree, tree, bool, int);
 static void dump_nested_types (pretty_printer *, tree, int);
 static char *to_ada_name (const char *, bool *);
 static bool needs_empty_class_layout (tree);
+static bool maps_to_ada_tagged_type (tree);
 
 #define INDENT(SPACE) \
   do { int i; for (i = 0; i<SPACE; i++) pp_space (pp); } while (0)
@@ -1283,6 +1284,35 @@ is_tagged_type (const_tree type)
   return false;
 }
 
+/* Return whether TYPE maps to an Ada interface: it contains only a virtual
+   table field and abstract methods.  */
+
+static bool
+is_ada_interface_type (tree type)
+{
+  if (!cpp_check || !RECORD_OR_UNION_TYPE_P (type))
+    return false;
+
+  bool has_fields = false;
+  bool is_interface = false;
+  for (tree fld = TYPE_FIELDS (type); fld; fld = TREE_CHAIN (fld))
+    {
+      if (TREE_CODE (fld) == FIELD_DECL)
+	{
+	  if (!has_fields && DECL_VIRTUAL_P (fld))
+	    is_interface = true;
+	  else
+	    is_interface = false;
+	  has_fields = true;
+	}
+      else if (TREE_CODE (fld) == FUNCTION_DECL && !DECL_ARTIFICIAL (fld)
+	       && !cpp_check (fld, IS_ABSTRACT))
+	is_interface = false;
+    }
+
+  return is_interface;
+}
+
 /* Return whether TYPE has non-trivial methods, i.e. methods that do something
    for the objects of TYPE.  In C++, all classes have implicit special methods,
    e.g. constructors and destructors, but they can be trivial if the type is
@@ -2137,7 +2167,7 @@ dump_ada_function_declaration (pretty_printer *pp, tree func,
 	 slot in the virtual table or is a constructor.  */
       if (TREE_TYPE (arg)
 	  && POINTER_TYPE_P (TREE_TYPE (arg))
-	  && is_tagged_type (TREE_TYPE (TREE_TYPE (arg)))
+	  && maps_to_ada_tagged_type (TREE_TYPE (TREE_TYPE (arg)))
 	  && !(num == 1 && is_method && (DECL_VINDEX (func) || is_constructor)))
 	pp_string (pp, "'Class");
 
@@ -2416,7 +2446,7 @@ dump_ada_template (pretty_printer *pp, tree t, int spc)
       dump_ada_node (pp, instance, t, spc, false, true);
       package_prefix = true;
 
-      if (is_tagged_type (instance))
+      if (maps_to_ada_tagged_type (instance))
 	pp_string (pp, " is tagged limited ");
       else
 	pp_string (pp, " is limited ");
@@ -3081,29 +3111,37 @@ dump_ada_node (pretty_printer *pp, tree node, tree type, int spc,
 	dump_ada_decl_name (pp, node, limited_access);
       else
 	{
-	  if (is_tagged_type (TREE_TYPE (node)))
+	  if (maps_to_ada_tagged_type (TREE_TYPE (node)))
 	    {
 	      int first = true;
+	      tree node_type = TREE_TYPE (node);
 
-	      /* Look for ancestors.  */
-	      for (tree fld = TYPE_FIELDS (TREE_TYPE (node));
+	      /* Ada supports one concrete tagged parent.  Use the C++ primary
+		 base, whose address is the complete object's address.  */
+	      for (tree fld = TYPE_FIELDS (node_type);
 		   fld;
 		   fld = TREE_CHAIN (fld))
-		{
-		  if (!DECL_NAME (fld) && is_tagged_type (TREE_TYPE (fld)))
-		    {
-		      if (first)
-			{
-			  pp_string (pp, "limited new ");
-			  first = false;
-			}
-		      else
-			pp_string (pp, " and ");
+		if (cpp_check (fld, IS_PRIMARY_BASE_FIELD)
+		    && is_tagged_type (TREE_TYPE (fld)))
+		  {
+		    pp_string (pp, "limited new ");
+		    dump_ada_decl_name (pp, TYPE_NAME (TREE_TYPE (fld)), false);
+		    first = false;
+		    break;
+		  }
 
-		      dump_ada_decl_name (pp, TYPE_NAME (TREE_TYPE (fld)),
-					  false);
-		    }
-		}
+	      /* Data-free abstract secondary bases map to Ada interfaces.  */
+	      for (tree fld = TYPE_FIELDS (node_type);
+		   fld;
+		   fld = TREE_CHAIN (fld))
+		if (cpp_check (fld, IS_BASE_FIELD)
+		    && !cpp_check (fld, IS_PRIMARY_BASE_FIELD)
+		    && is_ada_interface_type (TREE_TYPE (fld)))
+		  {
+		    pp_string (pp, first ? "limited new " : " and ");
+		    dump_ada_decl_name (pp, TYPE_NAME (TREE_TYPE (fld)), false);
+		    first = false;
+		  }
 
 	      pp_string (pp, first ? "tagged limited " : " with ");
 	    }
@@ -3244,29 +3282,117 @@ is_abi_ignored_empty_field (tree node, tree field)
   return false;
 }
 
-/* Return true if FIELD is represented as a component in the generated Ada
-   record.  Keep this in step with dump_ada_structure.  */
+/* Return true when NODE places another field in FIELD's complete-object tail
+   padding.  Ada extensions cannot reproduce that overlap with their parent.  */
+
+static bool
+primary_base_tail_reused (tree node, tree field)
+{
+  const HOST_WIDE_INT object_size = int_size_in_bytes (TREE_TYPE (field));
+  if (object_size <= 0)
+    return false;
+
+  for (tree other = TYPE_FIELDS (node); other; other = TREE_CHAIN (other))
+    if (other != field && TREE_CODE (other) == FIELD_DECL
+	&& !DECL_VIRTUAL_P (other) && DECL_FIELD_OFFSET (other)
+	&& DECL_FIELD_BIT_OFFSET (other)
+	&& tree_fits_uhwi_p (DECL_FIELD_OFFSET (other))
+	&& tree_fits_uhwi_p (DECL_FIELD_BIT_OFFSET (other)))
+      {
+	const unsigned HOST_WIDE_INT bitpos
+	  = tree_to_uhwi (DECL_FIELD_OFFSET (other)) * BITS_PER_UNIT
+	    + tree_to_uhwi (DECL_FIELD_BIT_OFFSET (other));
+	if (bitpos > 0
+	    && bitpos < ((unsigned HOST_WIDE_INT) object_size
+			 * BITS_PER_UNIT))
+	  return true;
+      }
+
+  return false;
+}
+
+/* Return true if FIELD is a concrete C++ base that NODE must represent as a
+   component.  Ada inheritance can represent the primary base only when NODE
+   maps to a tagged type without overlapping the primary base's tail.  */
 
 static bool
-is_ada_record_field (tree node, tree field)
+is_concrete_nested_base_field (tree node, tree field)
+{
+  return (cpp_check && TREE_CODE (field) == FIELD_DECL
+	  && cpp_check (field, IS_BASE_FIELD)
+	  && (!is_tagged_type (node)
+	      || !cpp_check (field, IS_PRIMARY_BASE_FIELD)
+	      || primary_base_tail_reused (node, field))
+	  && !is_ada_interface_type (TREE_TYPE (field))
+	  && is_tagged_type (TREE_TYPE (field)));
+}
+
+/* Return true if NODE can use Ada tagged inheritance without losing a C++
+   primary base's reused tail padding.  */
+
+static bool
+maps_to_ada_tagged_type (tree node)
+{
+  if (!is_tagged_type (node))
+    return false;
+
+  for (tree field = TYPE_FIELDS (node); field; field = TREE_CHAIN (field))
+    if (cpp_check && cpp_check (field, IS_PRIMARY_BASE_FIELD)
+	&& is_concrete_nested_base_field (node, field))
+      return false;
+  return true;
+}
+
+/* Return true if NODE has a tagged C++ primary base represented by Ada
+   inheritance rather than an explicit record component.  */
+
+static bool
+has_tagged_primary_base (tree node)
+{
+  if (!maps_to_ada_tagged_type (node))
+    return false;
+
+  for (tree field = TYPE_FIELDS (node); field; field = TREE_CHAIN (field))
+    if (cpp_check && cpp_check (field, IS_PRIMARY_BASE_FIELD)
+	&& is_tagged_type (TREE_TYPE (field)))
+      return true;
+  return false;
+}
+
+/* Return true if NODE has a concrete C++ base that needs a component.  */
+
+static bool
+has_concrete_nested_base (tree node)
+{
+  for (tree field = TYPE_FIELDS (node); field; field = TREE_CHAIN (field))
+    if (is_concrete_nested_base_field (node, field))
+      return true;
+  return false;
+}
+
+/* Return true if FIELD is represented as a component in NODE's generated
+   Ada record.  Keep this in step with dump_ada_structure.  */
+
+static bool
+is_ada_record_field (tree node, tree field)
 {
   if (TREE_CODE (field) != FIELD_DECL
       || DECL_VIRTUAL_P (field)
       || is_abi_ignored_empty_field (node, field))
     return false;
 
-  return DECL_NAME (field) || !is_tagged_type (TREE_TYPE (field));
+  return (DECL_NAME (field) || !is_tagged_type (TREE_TYPE (field))
+	  || is_concrete_nested_base_field (node, field));
 }
 
 /* Return true if NODE needs a distinct storage type when used as a base
-   subobject.  A non-polymorphic class with virtual bases contains those bases
-   as a complete object, but excludes them from its as-base size.  */
+   subobject.  A class can exclude virtual bases or complete-object tail
+   padding from its as-base size.  */
 
 static bool
-needs_virtual_as_base_type (tree node)
+needs_as_base_storage_type (tree node)
 {
-  if (!cpp_check || !RECORD_OR_UNION_TYPE_P (node) || is_tagged_type (node)
-      || !cpp_check (node, HAS_VIRTUAL_BASE))
+  if (!cpp_check || !RECORD_OR_UNION_TYPE_P (node))
     return false;
 
   const int data_size = cpp_check (node, GET_AS_BASE_SIZE);
@@ -3245,10 +3371,10 @@ needs_virtual_as_base_type (tree node)
    for this component.  */
 
 static bool
-is_shortened_virtual_base_field (tree field)
+is_shortened_base_field (tree field)
 {
   if (TREE_CODE (field) != FIELD_DECL || DECL_NAME (field)
-      || !needs_virtual_as_base_type (TREE_TYPE (field))
+      || !needs_as_base_storage_type (TREE_TYPE (field))
       || !DECL_SIZE (field) || !tree_fits_uhwi_p (DECL_SIZE (field)))
     return false;
 
@@ -3265,7 +3391,7 @@ static void
 dump_ada_record_field_type (pretty_printer *pp, tree field)
 {
   dump_ada_decl_name (pp, TYPE_NAME (TREE_TYPE (field)), false);
-  if (is_shortened_virtual_base_field (field))
+  if (is_shortened_base_field (field))
     pp_string (pp, "_As_Base");
 }
 
@@ -3275,7 +3401,7 @@ static bool
 field_fits_as_base (tree node, tree field)
 {
   const int data_size = cpp_check (node, GET_AS_BASE_SIZE);
-  if (data_size < 0 || !is_ada_record_field (node, field)
+  if (data_size < 0 || !is_ada_record_field (node, field)
       || !DECL_FIELD_OFFSET (field) || !DECL_FIELD_BIT_OFFSET (field)
       || !DECL_SIZE (field)
       || !tree_fits_uhwi_p (DECL_FIELD_OFFSET (field))
@@ -3296,7 +3422,7 @@ field_fits_as_base (tree node, tree field)
    padding is not part of a base subobject.  */
 
 static unsigned int
-virtual_as_base_alignment (tree node, unsigned int data_size)
+as_base_alignment (tree node, unsigned int data_size)
 {
   unsigned int alignment = TYPE_ALIGN (node) / BITS_PER_UNIT;
   while (alignment > 1 && data_size % alignment != 0)
@@ -3308,11 +3434,11 @@ virtual_as_base_alignment (tree node, unsigned int data_size)
    keeps each direct field addressable while excluding shared virtual bases.  */
 
 static void
-dump_ada_virtual_as_base_type (pretty_printer *pp, tree node, tree type,
-			       int spc)
+dump_ada_as_base_storage_type (pretty_printer *pp, tree node, tree type,
+			int spc)
 {
   const unsigned int data_size = cpp_check (node, GET_AS_BASE_SIZE);
-  int field_num = 0;
+  int field_num = has_tagged_primary_base (node) ? 1 : 0;
 
   pp_newline (pp);
   newline_and_indent (pp, spc);
@@ -3368,6 +3494,15 @@ dump_ada_virtual_as_base_type (pretty_printer *pp, tree node, tree type,
   newline_and_indent (pp, spc);
   pp_string (pp, "with Convention => C_Pass_By_Copy;");
 
+  if (as_base_alignment (node, data_size)
+	< TYPE_ALIGN (node) / BITS_PER_UNIT)
+    {
+      newline_and_indent (pp, spc);
+      pp_string (pp, "pragma Component_Alignment (Storage_Unit, ");
+      dump_ada_node (pp, TYPE_NAME (node), type, spc, false, true);
+      pp_string (pp, "_As_Base);");
+    }
+
   newline_and_indent (pp, spc);
   pp_string (pp, "for ");
   dump_ada_node (pp, TYPE_NAME (node), type, spc, false, true);
@@ -3386,7 +3521,7 @@ dump_ada_virtual_as_base_type (pretty_printer *pp, tree node, tree type,
   pp_string (pp, "for ");
   dump_ada_node (pp, TYPE_NAME (node), type, spc, false, true);
   pp_string (pp, "_As_Base'Alignment use ");
-  pp_decimal_int (pp, virtual_as_base_alignment (node, data_size));
+  pp_decimal_int (pp, as_base_alignment (node, data_size));
   pp_semicolon (pp);
 
   newline_and_indent (pp, spc);
@@ -3465,7 +3600,7 @@ static bool
 has_constant_field_layout (tree node)
 {
   for (tree field = TYPE_FIELDS (node); field; field = TREE_CHAIN (field))
-    if (is_ada_record_field (node, field)
+    if (is_ada_record_field (node, field)
 	&& (!DECL_FIELD_OFFSET (field)
 	    || !DECL_FIELD_BIT_OFFSET (field)
 	    || !DECL_SIZE (field)
@@ -3523,9 +3658,9 @@ dump_ada_cpp_layout (pretty_printer *pp, tree node, tree type, int spc,
   dump_ada_node (pp, TYPE_NAME (node), type, spc, false, true);
   pp_string (pp, " use record");
 
-  int field_num = 0;
+  int field_num = has_tagged_primary_base (node) ? 1 : 0;
   for (tree field = TYPE_FIELDS (node); field; field = TREE_CHAIN (field))
-    if (is_ada_record_field (node, field))
+    if (is_ada_record_field (node, field))
       {
 	field_num++;
 	const unsigned HOST_WIDE_INT bitpos
@@ -4469,6 +4604,7 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
   const bool is_union = (TREE_CODE (node) == UNION_TYPE);
   char buf[32];
   int field_num = 0;
+  int fields_emitted = 0;
   int field_spc = spc + INDENT_INCR;
   int need_semicolon;
 
@@ -4495,7 +4631,12 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
       /* Add parent field if needed.  */
       if (!DECL_NAME (tmp))
 	{
-	  if (!is_tagged_type (TREE_TYPE (tmp)))
+	  if (maps_to_ada_tagged_type (node) && cpp_check
+	      && cpp_check (tmp, IS_PRIMARY_BASE_FIELD)
+	      && is_tagged_type (TREE_TYPE (tmp)))
+	    field_num++;
+	  else if (!is_tagged_type (TREE_TYPE (tmp))
+		   || is_concrete_nested_base_field (node, tmp))
 	    {
 	      if (!TYPE_NAME (TREE_TYPE (tmp)))
 		dump_ada_declaration (pp, tmp, type, field_spc);
@@ -4516,6 +4657,7 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
 
 	      pp_newline (pp);
 	      field_num++;
+	      fields_emitted++;
 	    }
 	}
       else if (TREE_CODE (tmp) == FIELD_DECL)
@@ -4541,6 +4683,7 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
 		{
 		  pp_newline (pp);
 		  field_num++;
+		  fields_emitted++;
 		}
 	    }
 	}
@@ -4553,7 +4696,7 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
       pp_newline (pp);
     }
 
-  if (field_num == 0)
+  if (fields_emitted == 0)
     {
       INDENT (spc + INDENT_INCR);
       pp_string (pp, "null;");
@@ -4623,7 +4766,8 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
       dump_ada_empty_class_layout (pp, node, type, spc);
     }
   else if ((needs_tail_padding_layout (node)
-	    || (cpp_check && cpp_check (node, HAS_VIRTUAL_BASE)))
+	    || (cpp_check && cpp_check (node, HAS_VIRTUAL_BASE))
+	    || has_concrete_nested_base (node))
 	   && has_constant_field_layout (node))
     {
       if (need_semicolon)
@@ -4636,8 +4780,8 @@ dump_ada_structure (pretty_printer *pp, tree node, tree type, bool nested,
       dump_ada_cpp_layout (pp, node, type, spc,
 			   cpp_check (node, HAS_VIRTUAL_BASE));
 
-      if (needs_virtual_as_base_type (node))
-	dump_ada_virtual_as_base_type (pp, node, type, spc);
+      if (needs_as_base_storage_type (node))
+	dump_ada_as_base_storage_type (pp, node, type, spc);
     }
 
   /* Print the static fields of the structure, if any.  */
diff --git a/gcc/c-family/c-ada-spec.h b/gcc/c-family/c-ada-spec.h
index fe9ae331c9fd7e269f03c433deee67f064cc2831..33484143f5b20bc7bc1df28f8daffc88783e0111 100644
--- a/gcc/c-family/c-ada-spec.h
+++ b/gcc/c-family/c-ada-spec.h
@@ -31,10 +31,12 @@ enum cpp_operation {
   HAS_DEPENDENT_TEMPLATE_ARGS,
   IS_ABSTRACT,
   IS_ASSIGNMENT_OPERATOR,
+  IS_BASE_FIELD,
   IS_CONSTRUCTOR,
   IS_DESTRUCTOR,
   IS_COPY_CONSTRUCTOR,
   IS_MOVE_CONSTRUCTOR,
+  IS_PRIMARY_BASE_FIELD,
   IS_TEMPLATE,
   IS_TRIVIAL,
   REUSES_BASE_TAIL_PADDING
diff --git a/gcc/cp/decl2.cc b/gcc/cp/decl2.cc
index 384e43b1e0bd1478eba537c51f080596f7e5668f..a102dda4ee9bd30df808809f94457cf9768a7302 100644
--- a/gcc/cp/decl2.cc
+++ b/gcc/cp/decl2.cc
@@ -5305,6 +5305,8 @@ cpp_check (tree t, cpp_operation op)
 	return DECL_PURE_VIRTUAL_P (t);
       case IS_ASSIGNMENT_OPERATOR:
 	return DECL_ASSIGNMENT_OPERATOR_P (t);
+      case IS_BASE_FIELD:
+	return (TREE_CODE (t) == FIELD_DECL && DECL_FIELD_IS_BASE (t));
       case IS_CONSTRUCTOR:
 	return DECL_CONSTRUCTOR_P (t);
       case IS_DESTRUCTOR:
@@ -5313,6 +5315,22 @@ cpp_check (tree t, cpp_operation op)
 	return DECL_COPY_CONSTRUCTOR_P (t);
       case IS_MOVE_CONSTRUCTOR:
 	return DECL_MOVE_CONSTRUCTOR_P (t);
+      case IS_PRIMARY_BASE_FIELD:
+	{
+	  if (TREE_CODE (t) != FIELD_DECL || !DECL_FIELD_IS_BASE (t)
+	      || !CLASS_TYPE_P (DECL_CONTEXT (t)))
+	    return 0;
+
+	  tree binfo;
+	  unsigned int i = 0;
+	  vec<tree, va_gc> *vbases =
+	    CLASSTYPE_VBASECLASSES (DECL_CONTEXT (t));
+	  for (; vec_safe_iterate (vbases, i, &binfo); i++)
+	    if (TREE_TYPE (t) == CLASSTYPE_AS_BASE (BINFO_TYPE (binfo)))
+	      return 0;
+
+	  return tree_int_cst_equal (bit_position (t), bitsize_zero_node);
+	}
       case IS_TEMPLATE:
 	return TREE_CODE (t) == TEMPLATE_DECL;
       case IS_TRIVIAL:
diff --git a/gcc/testsuite/g++.dg/ada-spec/concrete-multiple-inheritance.C b/gcc/testsuite/g++.dg/ada-spec/concrete-multiple-inheritance.C
new file mode 100644
index 0000000000000000000000000000000000000000..b7febaecd3858500d0fbbc935eb1f30a1ccf7766
--- /dev/null
+++ b/gcc/testsuite/g++.dg/ada-spec/concrete-multiple-inheritance.C
@@ -0,0 +1,64 @@
+/* { dg-do compile } */
+/* { dg-require-effective-target lp64 } */
+/* { dg-options "-fdump-ada-spec-slim" } */
+/* { dg-final { scan-file concrete_multiple_inheritance_c.ads "type Both is limited new Left with record" } } */
+/* { dg-final { scan-file concrete_multiple_inheritance_c.ads "field_2 : aliased Right_As_Base;" } } */
+/* { dg-final { scan-file concrete_multiple_inheritance_c.ads "for Right_As_Base'Object_Size use 96;" } } */
+/* { dg-final { scan-file concrete_multiple_inheritance_c.ads "field_2 at 16 range 0 .. 95;" } } */
+
+class Left
+{
+public:
+  virtual ~Left () = default;
+  virtual int left_value () { return l; }
+  int l;
+};
+
+class Right
+{
+public:
+  virtual ~Right () = default;
+  virtual int right_value () { return r; }
+  int r;
+};
+
+class Both : public Left, public Right
+{
+public:
+  Both (int l_value, int r_value, int both_value);
+  ~Both () override = default;
+  int left_value () override { return l + both; }
+  int right_value () override { return r + both; }
+  int both;
+};
+
+Both::Both (int l_value, int r_value, int both_value)
+{
+  l = l_value;
+  r = r_value;
+  both = both_value;
+}
+
+extern "C" Both *cpp_create_both (int l, int r, int both_value)
+{
+  return new Both (l, r, both_value);
+}
+
+extern "C" void cpp_delete_both (Both *object) { delete object; }
+extern "C" unsigned long cpp_both_size () { return sizeof (Both); }
+extern "C" unsigned long cpp_right_offset (Both *object)
+{
+  return reinterpret_cast<char *> (static_cast<Right *> (object))
+    - reinterpret_cast<char *> (object);
+}
+extern "C" int cpp_call_left (Both *object) { return object->left_value (); }
+extern "C" int cpp_call_right (Right *object) { return object->right_value (); }
+extern "C" int cpp_call_right_from_both (Both *object)
+{
+  return static_cast<Right *> (object)->right_value ();
+}
+extern "C" int cpp_read_left (Both *object) { return object->l; }
+extern "C" int cpp_read_right (Both *object) { return object->r; }
+extern "C" int cpp_read_both (Both *object) { return object->both; }
+
+/* { dg-final { cleanup-ada-spec } } */
