Blame SOURCES/gdb-rhbz1268831-icc-compat.patch

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