re PR target/13131 (internal compiler error: in AT_flag, at dwarf2out.c:4480)
authorScott Snyder <snyder@fnal.gov>
Thu, 20 Nov 2003 08:52:48 +0000 (08:52 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 20 Nov 2003 08:52:48 +0000 (00:52 -0800)
PR target/13131
* dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
flag, not a constant.

From-SVN: r73756

gcc/ChangeLog
gcc/dwarf2out.c

index 1a82222a279067101c4262b90d58dfa7deb31919..55e618ecfca1d1ba04b77dcc9cc31bbfe8a5a471 100644 (file)
@@ -1,3 +1,9 @@
+2003-11-19  Scott Snyder  <snyder@fnal.gov>
+
+       PR target/13131
+       * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
+       flag, not a constant.
+
 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
 
        * config/arc/arc-protos.h: Update to C90 prototypes.
index 7db16217b52f8ab56447abc39374049e6162c4de..972ad7cd948de60e57e4add66cc03dd6dfc23dc8 100644 (file)
@@ -10200,7 +10200,7 @@ gen_array_type_die (tree type, dw_die_ref context_die)
   /* The SGI compilers handle arrays of unknown bound by setting
      AT_declaration and not emitting any subrange DIEs.  */
   if (! TYPE_DOMAIN (type))
-    add_AT_unsigned (array_die, DW_AT_declaration, 1);
+    add_AT_flag (array_die, DW_AT_declaration, 1);
   else
 #endif
     add_subscript_info (array_die, type);