Commit f281dd5a by Nathan Sidwell Committed by Nathan Sidwell

class.c (build_base_field): Use TYPE_ALIGN to examine a type.

	* class.c (build_base_field): Use TYPE_ALIGN to examine a type.
	(note_name_declared_in_class): Use OVL_CURRENT to get at a
	potential overload.

From-SVN: r32617
parent ca881de6
2000-03-18 Nathan Sidwell <nathan@codesourcery.com>
* class.c (build_base_field): Use TYPE_ALIGN to examine a type.
(note_name_declared_in_class): Use OVL_CURRENT to get at a
potential overload.
Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> Fri Mar 17 08:09:14 2000 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* class.c (build_vbase_path): Use integer_zerop. * class.c (build_vbase_path): Use integer_zerop.
......
...@@ -4292,7 +4292,7 @@ build_base_field (rli, binfo, empty_p, base_align, v) ...@@ -4292,7 +4292,7 @@ build_base_field (rli, binfo, empty_p, base_align, v)
/* This code assumes that zero-sized classes have one-byte /* This code assumes that zero-sized classes have one-byte
alignment. There might someday be a system where that's not alignment. There might someday be a system where that's not
true. */ true. */
my_friendly_assert (DECL_ALIGN (basetype) == BITS_PER_UNIT, my_friendly_assert (TYPE_ALIGN (basetype) == BITS_PER_UNIT,
20000314); 20000314);
/* This is an empty base class. We first try to put it at /* This is an empty base class. We first try to put it at
...@@ -6519,7 +6519,7 @@ note_name_declared_in_class (name, decl) ...@@ -6519,7 +6519,7 @@ note_name_declared_in_class (name, decl)
S. */ S. */
cp_error ("declaration of `%#D'", decl); cp_error ("declaration of `%#D'", decl);
cp_error_at ("changes meaning of `%s' from `%+#D'", cp_error_at ("changes meaning of `%s' from `%+#D'",
IDENTIFIER_POINTER (DECL_NAME (decl)), IDENTIFIER_POINTER (DECL_NAME (OVL_CURRENT (decl))),
(tree) n->value); (tree) n->value);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment