]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (read_enumeration_type): Add comment.
authorJoel Brobecker <brobecker@gnat.com>
Wed, 9 Jan 2008 04:28:11 +0000 (04:28 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Wed, 9 Jan 2008 04:28:11 +0000 (04:28 +0000)
gdb/ChangeLog
gdb/dwarf2read.c

index abf609c0ac452877273fff854ed5fc644ebf90f1..4d62be790320d11674f80c4a76b2aec61214d769 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-08  Joel Brobecker  <brobecker@adacore.com>
+
+       * dwarf2read.c (read_enumeration_type): Add comment.
+
 2008-01-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
        * config.in: Regenerate.
index f9dfff1959229f9916cb5ca8ed1bd2fa9659954b..2cb65c75b6cb7a6dbf3fefe4050fdf62f1e53b84 100644 (file)
@@ -4233,6 +4233,11 @@ read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu)
       TYPE_LENGTH (type) = 0;
     }
 
+  /* The enumeration DIE can be incomplete.  In Ada, any type can be
+     declared as private in the package spec, and then defined only
+     inside the package body.  Such types are known as Taft Amendment
+     Types.  When another package uses such a type, an incomplete DIE
+     may be generated by the compiler.  */
   if (die_is_declaration (die, cu))
     TYPE_FLAGS (type) |= TYPE_FLAG_STUB;