2c2fa1
commit 422b1cb0912f88f0509f75b9fee055c8259c13be
2c2fa1
Author: Michael Eager <eager@eagercon.com>
2c2fa1
Date:   Tue Jan 7 09:15:48 2014 -0800
2c2fa1
2c2fa1
    2014-01-07  Michael Eager <eager@eagercon.com>
2c2fa1
    
2c2fa1
       * dwarf2read.c (read_structure_type): Set stub if ICC & length == 0.
2c2fa1
2c2fa1
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
2c2fa1
index fc4f7cb..2563418 100644
2c2fa1
--- a/gdb/dwarf2read.c
2c2fa1
+++ b/gdb/dwarf2read.c
2c2fa1
@@ -12982,10 +12982,11 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu)
2c2fa1
       TYPE_LENGTH (type) = 0;
2c2fa1
     }
2c2fa1
 
2c2fa1
-  if (producer_is_icc (cu))
2c2fa1
+  if (producer_is_icc (cu) && (TYPE_LENGTH (type) == 0))
2c2fa1
     {
2c2fa1
       /* ICC does not output the required DW_AT_declaration
2c2fa1
 	 on incomplete types, but gives them a size of zero.  */
2c2fa1
+      TYPE_STUB (type) = 1;
2c2fa1
     }
2c2fa1
   else
2c2fa1
     TYPE_STUB_SUPPORTED (type) = 1;