[Bug,default/26135] Wrong linkage name causes anonymous classes miscomparison

Message ID bug-26135-9487-3Wx4TktluI@http.sourceware.org/bugzilla/
State New
Headers
Series [Bug,default/26135] Wrong linkage name causes anonymous classes miscomparison |

Commit Message

dje at sourceware dot org July 16, 2020, 6:32 p.m. UTC
  https://sourceware.org/bugzilla/show_bug.cgi?id=26135

--- Comment #5 from Giuliano Procida <gprocida+abigail at google dot com> ---
This is the patch I was working on that caused me to take a closer look.


This was an attempt to reduce the gap in behaviour between early and late type
canonicalisation by the DWARF reader.
  

Patch

--- a/src/abg-dwarf-reader.cc
+++ b/src/abg-dwarf-reader.cc
@@ -3496,7 +3496,8 @@  public:
        int tag = dwarf_tag(const_cast<Dwarf_Die*>(die));
        if ((tag == DW_TAG_structure_type
             || tag == DW_TAG_class_type
-            || tag == DW_TAG_union_type)
+            || tag == DW_TAG_union_type
+            || tag == DW_TAG_enumeration_type)
            && die_is_anonymous(die))
          {
            location l = die_location(*this, die);