This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] PR/15736


This fixes ICE reported in 15736.

Bootstrapped and tested on powerpc-darwin using all languages (i.e. did not use --enable-languages at configure time). Richard Kenner verified that this does not break Ada bootstrap in his setup. Thanks Richard!

OK ?
Thanks,
-
Devang

2004-09-02 Devang Patel <dpatel@apple.com>

* dwarf2out.c (gen_field_die). Equate decl number to die.

        testsuite:
        * g++.dg/debug/pr15736.cc


Index: gcc/dwarf2out.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/dwarf2out.c,v
retrieving revision 1.541
diff -Idpatel.pbxuser -c -3 -p -r1.541 dwarf2out.c
*** gcc/dwarf2out.c 12 Aug 2004 13:45:41 -0000 1.541
--- gcc/dwarf2out.c 1 Sep 2004 23:07:58 -0000
*************** gen_field_die (tree decl, dw_die_ref con
*** 11683,11688 ****
--- 11683,11691 ----
add_AT_unsigned (decl_die, DW_AT_accessibility, DW_ACCESS_protected);
else if (TREE_PRIVATE (decl))
add_AT_unsigned (decl_die, DW_AT_accessibility, DW_ACCESS_private);
+
+ /* Equate decl number to die, so that we can look up this decl later on. */
+ equate_decl_number_to_die (decl, decl_die);
}


  #if 0
// Test PR 15736 fix
// Contributed by Devang Patel <dpatel@apple.com>
// { dg-do compile }


struct B { int n; };

struct A : B {
  using B::n;
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]