From patchwork Wed Feb 10 19:04:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dodji Seketeli X-Patchwork-Id: 42011 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DFDD93857C7A; Wed, 10 Feb 2021 19:06:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DFDD93857C7A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1612983974; bh=3it9SiQL3xMEfLXgm4jqWh3PdjL1+1N5QBD9SX++CRY=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Help: List-Subscribe:From:Reply-To:From; b=K0VWgRP9QLX87Bhe8DjM23wkH+T73unVkzZzwgU1RDZZGgE0d0RfUp6uWHcKP5You ENNxNB2twMD4E8Ejt5YJYJYEAMYc7zKDWoxgkStnGOzk9qP4XEqwcDjsifyfSt514M mZQ7+DSEbbBGWd+frth8aWFVOcGKqCFcBmTstmkw= X-Original-To: libabigail@sourceware.org Delivered-To: libabigail@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 7D6E33857C7A for ; Wed, 10 Feb 2021 19:05:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 7D6E33857C7A Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-250-F4DBjAV1NUqkZatQTy95xw-1; Wed, 10 Feb 2021 14:04:52 -0500 X-MC-Unique: F4DBjAV1NUqkZatQTy95xw-1 Received: by mail-wm1-f71.google.com with SMTP id o18so1330574wmq.2 for ; Wed, 10 Feb 2021 11:04:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:organization:date:message-id :user-agent:mime-version; bh=3it9SiQL3xMEfLXgm4jqWh3PdjL1+1N5QBD9SX++CRY=; b=k75ghZXopMLzsZZOvJw9iPF58TOGXBSxJv3dU+wdwIPj5hnM90ZtthPAWKMuD2Ig2r 4CeMPkIpy9W/EMA82bU74npJ+C9IzGSkeyMZOYW0/z+0tfnsmTaXT32ya97zDad69+69 OIUZpkPZf7iv2RISnZ06SuIQ41mlu6Ao07rODJ5MOWppttlb3iyr/nQyqQiVakkvbnnm i3/9ph9G48UKHNCG0o6MokgWwc95uytW4fCX/Mg2O1hurNlD0JgzOzREve8xueMsxxxB AdJ5/jLySak/8c+HdTL6RSUGZ3QW8lLo0o9IWQucJ31cNDO8aKIgtVK6PCBd9v+a8v0n mfhQ== X-Gm-Message-State: AOAM530toigSBMHREbwDy88AEb5AmyDiGFYCykPq1bVtsYJILwvJFR9r swfmhJwJzT35kescI+6IlPcpnU8rzswi8YEH26vH0uI/hqw9x6d//z8BuWcPv11ohlWh7ZWz6A6 TawHkn7DXUVxuN+qJJbFXDcy6SnQFx7dTy5qFM/uCMKpyeNaC9rnCnidfe5J3LMvawcKd X-Received: by 2002:a7b:c397:: with SMTP id s23mr357649wmj.123.1612983889357; Wed, 10 Feb 2021 11:04:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJxykSCzYtqj7LOTN+rIWiovoEfs2T4yibigoI7+oWaqiVk5T8dgYLSjAP61j1dyA651LmRYLA== X-Received: by 2002:a7b:c397:: with SMTP id s23mr357615wmj.123.1612983888847; Wed, 10 Feb 2021 11:04:48 -0800 (PST) Received: from localhost ([88.120.130.27]) by smtp.gmail.com with ESMTPSA id i20sm3310438wmq.7.2021.02.10.11.04.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Feb 2021 11:04:46 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id D9A3D581C93; Wed, 10 Feb 2021 20:04:45 +0100 (CET) To: libabigail@sourceware.org Subject: [PATCH] Use generic internal type name to canonicalize anonymous enums Organization: Red Hat / France X-Operating-System: Fedora 34 X-URL: http://www.redhat.com Date: Wed, 10 Feb 2021 20:04:45 +0100 Message-ID: <87czx7g2wi.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-10.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SCC_10_SHORT_WORD_LINES, SCC_20_SHORT_WORD_LINES, SCC_5_SHORT_WORD_LINES, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libabigail@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Mailing list of the Libabigail project List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-Patchwork-Original-From: Dodji Seketeli via Libabigail From: Dodji Seketeli Reply-To: Dodji Seketeli Errors-To: libabigail-bounces@sourceware.org Sender: "Libabigail" Hello, This is from the problem report in Red Hat bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1924624 "comparing 'libpinyin.so.13.0.0' to itself wrongly yielded result" During the canonicalization of an anonymous enum, the algorithm uses its internal pretty representation to limit the number of types to compare it to. That internal pretty representation is based on its type name. For anonymous types, the type name is not unique; it's constructed for internal purposes that are different from the purpose of canonicalization. So using that in the pretty representation might negatively impact the accuracy of the canonicalization; it might make it so that two anonymous in the same namespace types might wrongly be considered canonically different. To fix that, this change makes the internal pretty representation of anonymous enum types essentially be "enum ::__anonymous_enum__". This is on part with what is done for unions and classes in commit: 005ab5c9 Use flat representation to canonicalize anonymous classes and unions * src/abg-ir.cc (has_generic_anonymous_internal_type_name) : Define new static function. (get_generic_anonymous_internal_type_name): Use it here. (decl_base::get_pretty_representation): For internal purposes, build an anonymous name that is stable. * tests/data/test-annotate/test21-pr19092.so.abi: Adjust. * tests/data/test-diff-pkg/PR24690/PR24690-report-0.txt: Adjust. * tests/data/test-diff-pkg/nss-3.23.0-1.0.fc23.x86_64-report-0.txt: Adjust. * tests/data/test-read-dwarf/PR22122-libftdc.so.abi: Adjust. * tests/data/test-read-dwarf/test-libandroid.so.abi: Adjust. * tests/data/test-read-dwarf/test21-pr19092.so.abi: Adjust. Signed-off-by: Dodji Seketeli --- src/abg-ir.cc | 40 +- .../data/test-annotate/test21-pr19092.so.abi | 2450 ++++++++--------- .../PR24690/PR24690-report-0.txt | 4 +- .../nss-3.23.0-1.0.fc23.x86_64-report-0.txt | 4 +- .../test-read-dwarf/PR22122-libftdc.so.abi | 148 +- .../test-read-dwarf/test-libandroid.so.abi | 8 +- .../test-read-dwarf/test21-pr19092.so.abi | 2415 ++++++++-------- 7 files changed, 2530 insertions(+), 2539 deletions(-) diff --git a/src/abg-ir.cc b/src/abg-ir.cc index dec85fe0..bb5345ca 100644 --- a/src/abg-ir.cc +++ b/src/abg-ir.cc @@ -257,6 +257,12 @@ namespace ir static size_t hash_as_canonical_type_or_constant(const type_base *t); +static bool +has_generic_anonymous_internal_type_name(const decl_base *d); + +static interned_string +get_generic_anonymous_internal_type_name(const decl_base *d); + /// @brief the location of a token represented in its simplest form. /// Instances of this type are to be stored in a sorted vector, so the /// type must have proper relational operators. @@ -3913,6 +3919,25 @@ string decl_base::get_pretty_representation(bool internal, bool qualified_name) const { + if (internal + && get_is_anonymous() + && has_generic_anonymous_internal_type_name(this)) + { + // We are looking at an anonymous enum, union or class and we + // want an *internal* pretty representation for it. All + // anonymous types of this kind in the same namespace must have + // the same internal representation for type canonicalization to + // work properly. + // + // OK, in practise, we are certainly looking at an enum because + // classes and unions should have their own overloaded virtual + // member function for this. + string name = get_generic_anonymous_internal_type_name(this); + if (qualified_name && !get_qualified_parent_name().empty()) + name = get_qualified_parent_name() + "::" + name; + return name; + } + if (qualified_name) return get_qualified_name(internal); return get_name(); @@ -7135,6 +7160,19 @@ interned_string get_type_name(const type_base_sptr& t, bool qualified, bool internal) {return get_type_name(t.get(), qualified, internal);} +/// Return true iff a decl is for a type type that has a generic +/// anonymous internal type name. +/// +/// @param d the decl to considier. +/// +/// @return true iff @p d is for a type type that has a generic +/// anonymous internal type name. +static bool +has_generic_anonymous_internal_type_name(const decl_base *d) +{ + return is_class_or_union_type(d) || is_enum_type(d); +} + /// Return the generic internal name of an anonymous type. /// /// For internal purposes, we want to define a generic name for all @@ -7148,7 +7186,7 @@ get_type_name(const type_base_sptr& t, bool qualified, bool internal) static interned_string get_generic_anonymous_internal_type_name(const decl_base *d) { - ABG_ASSERT(d); + ABG_ASSERT(has_generic_anonymous_internal_type_name(d)); const environment *env = d->get_environment(); diff --git a/tests/data/test-annotate/test21-pr19092.so.abi b/tests/data/test-annotate/test21-pr19092.so.abi index 460bed11..9e24288a 100644 --- a/tests/data/test-annotate/test21-pr19092.so.abi +++ b/tests/data/test-annotate/test21-pr19092.so.abi @@ -2995,33 +2995,15 @@ - - - - - - - - - - - - - - - - - - - + - + - + @@ -3045,18 +3027,18 @@ - + - + - + - + @@ -3072,20 +3054,20 @@ - + - + - + - + - + @@ -3104,15 +3086,15 @@ - + - + - + - + - + @@ -3458,14 +3440,14 @@ - + - + @@ -3476,7 +3458,7 @@ - + @@ -4155,7 +4137,7 @@ - + @@ -4164,7 +4146,7 @@ - + @@ -4208,15 +4190,15 @@ - + - + - + - + @@ -4263,13 +4245,13 @@ - + - + @@ -4277,21 +4259,21 @@ - + - + - + - + - + - + @@ -4347,7 +4329,7 @@ - + @@ -4363,7 +4345,7 @@ - + @@ -4374,7 +4356,7 @@ - + @@ -4394,15 +4376,15 @@ - + - + - + - + - + @@ -4470,7 +4452,7 @@ - + @@ -4591,7 +4573,7 @@ - + @@ -4625,22 +4607,22 @@ - + - + - + - + @@ -4651,10 +4633,10 @@ - + - + @@ -4663,27 +4645,27 @@ - + - + - + - + - + - + @@ -4699,7 +4681,7 @@ - + @@ -4722,55 +4704,55 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -4798,11 +4780,11 @@ - + - + @@ -4810,11 +4792,11 @@ - + - + @@ -4822,27 +4804,27 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -4855,28 +4837,28 @@ - + - + - + - + - + - + @@ -4925,13 +4907,13 @@ - + - + - + - + @@ -4948,7 +4930,7 @@ - + @@ -4957,14 +4939,14 @@ - + - + - + @@ -4973,7 +4955,7 @@ - + @@ -4982,7 +4964,7 @@ - + @@ -5159,93 +5141,93 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5254,13 +5236,13 @@ - + - + - + @@ -5269,22 +5251,22 @@ - + - + - + - + - + - + @@ -5293,21 +5275,21 @@ - + - + - + - + - + @@ -5315,38 +5297,38 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5354,19 +5336,19 @@ - + - + - + - + - + - + @@ -5374,21 +5356,21 @@ - + - + - + - + - + @@ -5398,19 +5380,19 @@ - + - + - + - + @@ -5418,31 +5400,31 @@ - + - + - + - + - + - + - + @@ -5454,39 +5436,39 @@ - + - + - + - + - + - + - + - + - + @@ -5502,11 +5484,11 @@ - + - + @@ -5518,11 +5500,11 @@ - + - + @@ -5534,7 +5516,7 @@ - + @@ -5542,23 +5524,23 @@ - + - + - + - + - + @@ -5570,15 +5552,15 @@ - + - + - + @@ -5590,31 +5572,31 @@ - + - + - + - + - + - + - + @@ -5622,7 +5604,7 @@ - + @@ -5638,7 +5620,7 @@ - + @@ -5646,11 +5628,11 @@ - + - + @@ -5658,131 +5640,131 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5795,20 +5777,20 @@ - + - + - + - + @@ -5818,34 +5800,34 @@ - + - + - + - + - + - + - + - + @@ -5869,29 +5851,29 @@ - + - + - + - + - + - + - + @@ -5917,7 +5899,7 @@ - + @@ -6085,7 +6067,7 @@ - + @@ -6097,7 +6079,7 @@ - + @@ -6137,14 +6119,14 @@ - + - + - + @@ -6152,7 +6134,7 @@ - + @@ -6211,7 +6193,7 @@ - + @@ -6230,29 +6212,29 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -6268,44 +6250,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -6324,23 +6306,23 @@ - + - + - + - + - + @@ -6376,7 +6358,7 @@ - + @@ -6399,7 +6381,7 @@ - + @@ -6415,11 +6397,11 @@ - + - + @@ -6427,7 +6409,7 @@ - + @@ -6451,20 +6433,20 @@ - + - + - + - + - + @@ -6472,7 +6454,7 @@ - + @@ -6492,10 +6474,10 @@ - + - + @@ -6507,7 +6489,7 @@ - + @@ -6519,11 +6501,11 @@ - + - + @@ -6535,24 +6517,24 @@ - + - + - + - + - + @@ -6564,7 +6546,7 @@ - + @@ -6580,14 +6562,14 @@ - + - + - + @@ -6599,16 +6581,16 @@ - + - + - + - + @@ -6620,10 +6602,10 @@ - + - + @@ -6635,75 +6617,75 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -6715,9 +6697,9 @@ - + - + @@ -6732,15 +6714,15 @@ - + - + - + - + - + @@ -6751,7 +6733,7 @@ - + @@ -6762,17 +6744,17 @@ - + - + - + - + - + @@ -6780,28 +6762,28 @@ - + - + - + - + - + - + - + - + @@ -6816,13 +6798,13 @@ - + - + @@ -6831,7 +6813,7 @@ - + @@ -6848,21 +6830,21 @@ - + - + - + @@ -6871,59 +6853,59 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -6932,7 +6914,7 @@ - + @@ -6941,7 +6923,7 @@ - + @@ -6950,7 +6932,7 @@ - + @@ -6959,7 +6941,7 @@ - + @@ -6968,7 +6950,7 @@ - + @@ -6978,14 +6960,14 @@ - + - + @@ -6994,7 +6976,7 @@ - + @@ -7016,20 +6998,20 @@ - + - + - + @@ -7040,7 +7022,7 @@ - + @@ -7049,16 +7031,16 @@ - + - + - + @@ -7067,9 +7049,9 @@ - + - + @@ -7083,9 +7065,9 @@ - + - + @@ -7098,7 +7080,7 @@ - + @@ -7110,7 +7092,7 @@ - + @@ -7122,7 +7104,7 @@ - + @@ -7134,7 +7116,7 @@ - + @@ -7146,7 +7128,7 @@ - + @@ -7162,7 +7144,7 @@ - + @@ -7178,7 +7160,7 @@ - + @@ -7194,7 +7176,7 @@ - + @@ -7210,7 +7192,7 @@ - + @@ -7230,16 +7212,16 @@ - + - + - + - + @@ -7251,9 +7233,9 @@ - + - + @@ -7317,65 +7299,65 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7394,51 +7376,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7447,7 +7429,7 @@ - + @@ -7456,7 +7438,7 @@ - + @@ -7467,28 +7449,28 @@ - + - + - + - + @@ -7499,7 +7481,7 @@ - + @@ -7510,14 +7492,14 @@ - + - + @@ -7526,11 +7508,11 @@ - + - + - + @@ -7539,42 +7521,42 @@ - + - + - + - + - + - + - + - + - + - + @@ -7583,7 +7565,7 @@ - + @@ -7646,56 +7628,56 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -7710,7 +7692,7 @@ - + @@ -7719,22 +7701,22 @@ - + - + - + - + - + - + - + @@ -7747,23 +7729,23 @@ - + - + - + - + @@ -7801,7 +7783,7 @@ - + @@ -7810,24 +7792,24 @@ - + - + - + - + - + @@ -7838,16 +7820,16 @@ - + - + - + @@ -7858,88 +7840,88 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7948,14 +7930,14 @@ - + - + @@ -7964,21 +7946,21 @@ - + - + - + - + @@ -7986,13 +7968,13 @@ - + - + - + @@ -8003,13 +7985,13 @@ - + - + - + @@ -8023,14 +8005,14 @@ - + - + - + @@ -8039,29 +8021,29 @@ - + - + - + - + - + - + @@ -8075,7 +8057,7 @@ - + @@ -8084,18 +8066,18 @@ - + - + - + - + @@ -8104,41 +8086,41 @@ - + - + - + - + - + - + - + - + - + @@ -8147,29 +8129,29 @@ - + - + - + - + - + - + @@ -8294,7 +8276,7 @@ - + @@ -8303,7 +8285,7 @@ - + @@ -8519,21 +8501,21 @@ - + - + - + @@ -8548,14 +8530,14 @@ - + - + @@ -8581,7 +8563,7 @@ - + @@ -8592,7 +8574,7 @@ - + @@ -8601,7 +8583,7 @@ - + @@ -8612,7 +8594,7 @@ - + @@ -8628,7 +8610,7 @@ - + @@ -8637,7 +8619,7 @@ - + @@ -8653,7 +8635,7 @@ - + @@ -8662,20 +8644,20 @@ - + - + - + - + @@ -8686,7 +8668,7 @@ - + @@ -8695,31 +8677,31 @@ - + - + - + - + - + @@ -8730,7 +8712,7 @@ - + @@ -8741,9 +8723,9 @@ - + - + @@ -8752,7 +8734,7 @@ - + @@ -8772,7 +8754,7 @@ - + @@ -8791,23 +8773,23 @@ - + - + - + - + - + @@ -8843,21 +8825,21 @@ - + - + - + - + - + @@ -8867,19 +8849,19 @@ - + - + - + - + @@ -8887,31 +8869,31 @@ - + - + - + - + - + - + - + @@ -8923,39 +8905,39 @@ - + - + - + - + - + - + - + - + - + @@ -8971,11 +8953,11 @@ - + - + @@ -8987,11 +8969,11 @@ - + - + @@ -9003,7 +8985,7 @@ - + @@ -9011,23 +8993,23 @@ - + - + - + - + - + @@ -9039,15 +9021,15 @@ - + - + - + @@ -9059,31 +9041,31 @@ - + - + - + - + - + - + - + @@ -9091,7 +9073,7 @@ - + @@ -9107,7 +9089,7 @@ - + @@ -9115,11 +9097,11 @@ - + - + @@ -9127,10 +9109,10 @@ - + - + @@ -9142,7 +9124,7 @@ - + @@ -9154,11 +9136,11 @@ - + - + @@ -9170,11 +9152,11 @@ - + - + - + @@ -9185,10 +9167,10 @@ - + - + @@ -9212,34 +9194,34 @@ - + - + - + - + - + - + - + - + - + @@ -9247,9 +9229,9 @@ - + - + @@ -9308,22 +9290,22 @@ - + - + - + - + @@ -9335,7 +9317,7 @@ - + @@ -9351,35 +9333,35 @@ - + - + - + - + - + - + - + - + - + @@ -9391,13 +9373,13 @@ - + - + - + @@ -9423,7 +9405,7 @@ - + @@ -9591,7 +9573,7 @@ - + @@ -9603,7 +9585,7 @@ - + @@ -9643,14 +9625,14 @@ - + - + - + @@ -9662,26 +9644,26 @@ - + - + - + - + - + - + @@ -9694,20 +9676,20 @@ - + - + - + - + @@ -9717,44 +9699,44 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -9769,89 +9751,89 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -9874,7 +9856,7 @@ - + @@ -9890,11 +9872,11 @@ - + - + @@ -9902,7 +9884,7 @@ - + @@ -9926,36 +9908,36 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -9971,7 +9953,7 @@ - + @@ -9979,7 +9961,7 @@ - + @@ -9998,12 +9980,12 @@ - + - + - + @@ -10015,9 +9997,9 @@ - + - + @@ -10028,10 +10010,10 @@ - + - + @@ -10039,7 +10021,7 @@ - + @@ -10059,11 +10041,11 @@ - + - + - + @@ -10110,137 +10092,137 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -10251,31 +10233,31 @@ - + - + - + - + - + - + - + @@ -10284,11 +10266,11 @@ - + - + @@ -10297,11 +10279,11 @@ - + - + @@ -10310,21 +10292,21 @@ - + - + - + @@ -10333,7 +10315,7 @@ - + @@ -10342,23 +10324,23 @@ - + - + - + - + - + @@ -10372,7 +10354,7 @@ - + @@ -10383,7 +10365,7 @@ - + @@ -10392,7 +10374,7 @@ - + @@ -10405,16 +10387,16 @@ - + - + - + @@ -10423,147 +10405,147 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -10572,41 +10554,41 @@ - + - + - + - + - + - + - + - + - + - + @@ -10623,51 +10605,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -10676,32 +10658,32 @@ - + - + - + - + - + - + - + - + - + @@ -10712,49 +10694,49 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -10764,14 +10746,14 @@ - + - + - + @@ -10780,29 +10762,29 @@ - + - + - + - + - + - + @@ -10813,7 +10795,7 @@ - + @@ -10822,7 +10804,7 @@ - + @@ -10831,7 +10813,7 @@ - + @@ -10840,7 +10822,7 @@ - + @@ -10851,7 +10833,7 @@ - + @@ -10860,7 +10842,7 @@ - + @@ -10869,7 +10851,7 @@ - + @@ -10884,19 +10866,19 @@ - + - + - + @@ -10904,29 +10886,29 @@ - + - + - + - + - + - + - + @@ -10935,9 +10917,9 @@ - + - + @@ -10946,9 +10928,9 @@ - + - + @@ -10961,7 +10943,7 @@ - + @@ -10973,7 +10955,7 @@ - + @@ -10981,7 +10963,7 @@ - + @@ -10989,9 +10971,9 @@ - + - + @@ -11000,14 +10982,14 @@ - + - + @@ -11016,16 +10998,16 @@ - + - + - + - + @@ -11038,7 +11020,7 @@ - + @@ -11047,14 +11029,14 @@ - + - + @@ -11063,7 +11045,7 @@ - + @@ -11072,7 +11054,7 @@ - + @@ -11190,40 +11172,40 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -11298,58 +11280,58 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -11360,14 +11342,14 @@ - + - + - + @@ -11386,44 +11368,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -11431,18 +11413,18 @@ - + - + - + - + @@ -11450,14 +11432,14 @@ - + - + - + @@ -11476,11 +11458,11 @@ - + - + @@ -11494,7 +11476,7 @@ - + @@ -11505,35 +11487,35 @@ - + - + - + - + - + - + - + @@ -11541,7 +11523,7 @@ - + @@ -11560,7 +11542,7 @@ - + @@ -11572,7 +11554,7 @@ - + @@ -11588,7 +11570,7 @@ - + @@ -11596,31 +11578,31 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -11631,60 +11613,60 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -11695,11 +11677,11 @@ - + - + @@ -11712,7 +11694,7 @@ - + @@ -11723,7 +11705,7 @@ - + @@ -11734,7 +11716,7 @@ - + @@ -11745,19 +11727,19 @@ - + - + - + - + @@ -11768,7 +11750,7 @@ - + @@ -11781,17 +11763,17 @@ - + - + - + - + - + @@ -11806,26 +11788,26 @@ - + - + - + - + - + - + - + @@ -11845,16 +11827,16 @@ - + - + - + @@ -11877,9 +11859,9 @@ - + - + @@ -11970,11 +11952,11 @@ - + - + @@ -11983,55 +11965,55 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -12040,25 +12022,25 @@ - + - + - + - + - + - + @@ -12067,29 +12049,29 @@ - + - + - + - + - + @@ -12098,7 +12080,7 @@ - + @@ -12107,9 +12089,9 @@ - + - + @@ -12118,9 +12100,9 @@ - + - + @@ -12129,14 +12111,14 @@ - + - + - + - + @@ -12145,7 +12127,7 @@ - + @@ -12181,35 +12163,35 @@ - + - + - + - + - + - + - + - + - + @@ -12217,26 +12199,26 @@ - + - + - + - + - + - + - + @@ -12249,7 +12231,7 @@ - + @@ -12260,14 +12242,14 @@ - + - + @@ -12595,7 +12577,7 @@ - + @@ -12614,7 +12596,7 @@ - + @@ -12630,12 +12612,12 @@ - + - + - + @@ -12643,22 +12625,22 @@ - + - + - + - + @@ -12673,7 +12655,7 @@ - + @@ -12684,14 +12666,14 @@ - + - + - + @@ -12751,22 +12733,22 @@ - + - + - + - + - + @@ -12791,11 +12773,11 @@ - + - + @@ -12828,7 +12810,7 @@ - + @@ -12879,23 +12861,23 @@ - + - + - + - + - + - + - + - + @@ -12916,9 +12898,9 @@ - + - + @@ -12929,7 +12911,7 @@ - + diff --git a/tests/data/test-diff-pkg/PR24690/PR24690-report-0.txt b/tests/data/test-diff-pkg/PR24690/PR24690-report-0.txt index 4b5976be..6d4fc97e 100644 --- a/tests/data/test-diff-pkg/PR24690/PR24690-report-0.txt +++ b/tests/data/test-diff-pkg/PR24690/PR24690-report-0.txt @@ -1,7 +1,7 @@ ================ changes of 'libflatpak.so.0.10204.0'=============== - Functions changes summary: 0 Removed, 0 Changed (16 filtered out), 16 Added functions + Functions changes summary: 0 Removed, 0 Changed (10 filtered out), 16 Added functions Variables changes summary: 0 Removed, 0 Changed, 0 Added variable - Unreachable types summary: 3 removed (2 filtered out), 1 changed (15 filtered out), 3 added (1 filtered out) types + Unreachable types summary: 3 removed (1 filtered out), 1 changed (14 filtered out), 3 added (1 filtered out) types 16 Added functions: diff --git a/tests/data/test-diff-pkg/nss-3.23.0-1.0.fc23.x86_64-report-0.txt b/tests/data/test-diff-pkg/nss-3.23.0-1.0.fc23.x86_64-report-0.txt index 9afaed4e..f62905de 100644 --- a/tests/data/test-diff-pkg/nss-3.23.0-1.0.fc23.x86_64-report-0.txt +++ b/tests/data/test-diff-pkg/nss-3.23.0-1.0.fc23.x86_64-report-0.txt @@ -16,7 +16,7 @@ ================ end of changes of 'libnss3.so'=============== ================ changes of 'libssl3.so'=============== - Functions changes summary: 0 Removed, 2 Changed (12 filtered out), 1 Added functions + Functions changes summary: 0 Removed, 2 Changed (7 filtered out), 1 Added functions Variables changes summary: 0 Removed, 1 Changed, 0 Added variable 1 Added function: @@ -41,7 +41,7 @@ type size hasn't changed 1 data member insertion: 'SSLAuthType authType', at offset 736 (in bits) at sslt.h:250:1 - 1 data member changes (3 filtered): + 1 data member changes (1 filtered): type of 'SSLAuthType authAlgorithm' changed: underlying type 'enum __anonymous_enum__' at sslt.h:87:1 changed: type size hasn't changed diff --git a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi index d5d9ecf1..d1e2e607 100644 --- a/tests/data/test-read-dwarf/PR22122-libftdc.so.abi +++ b/tests/data/test-read-dwarf/PR22122-libftdc.so.abi @@ -5026,10 +5026,7 @@ - - - - + @@ -5044,18 +5041,18 @@ - + - + - + - + - + @@ -5165,7 +5162,7 @@ - + @@ -5218,7 +5215,7 @@ - + @@ -5241,16 +5238,16 @@ - + - + - + - + @@ -5275,13 +5272,13 @@ - - + + - - + + - + @@ -5298,14 +5295,14 @@ - + - + @@ -5319,7 +5316,7 @@ - + @@ -5331,7 +5328,7 @@ - + @@ -5361,7 +5358,7 @@ - + @@ -5452,7 +5449,7 @@ - + @@ -5461,10 +5458,10 @@ - + - + @@ -5481,7 +5478,7 @@ - + @@ -5493,40 +5490,40 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + + - - - - - - - - - + + + + + + + + @@ -5560,12 +5557,12 @@ - + - + @@ -5579,7 +5576,7 @@ - + @@ -5591,7 +5588,7 @@ - + @@ -5602,10 +5599,7 @@ - - - - + @@ -5614,14 +5608,14 @@ - - - - - - - - + + + + + + + + @@ -5757,7 +5751,7 @@ - + @@ -5765,14 +5759,14 @@ - + - + @@ -5793,7 +5787,7 @@ - + @@ -5859,7 +5853,7 @@ - + @@ -5869,7 +5863,7 @@ - + diff --git a/tests/data/test-read-dwarf/test-libandroid.so.abi b/tests/data/test-read-dwarf/test-libandroid.so.abi index 0ee423dc..8ef29eea 100644 --- a/tests/data/test-read-dwarf/test-libandroid.so.abi +++ b/tests/data/test-read-dwarf/test-libandroid.so.abi @@ -13708,12 +13708,6 @@ - - - - - - @@ -13724,7 +13718,7 @@ - + diff --git a/tests/data/test-read-dwarf/test21-pr19092.so.abi b/tests/data/test-read-dwarf/test21-pr19092.so.abi index 988e4cf8..469c9fc0 100644 --- a/tests/data/test-read-dwarf/test21-pr19092.so.abi +++ b/tests/data/test-read-dwarf/test21-pr19092.so.abi @@ -1862,29 +1862,12 @@ - - - - - - - - - - - - - - - - - - + - + - + @@ -1902,15 +1885,15 @@ - + - + - + - + @@ -1922,16 +1905,16 @@ - - - + + + - - + + @@ -1945,11 +1928,11 @@ - - - - - + + + + + @@ -2148,18 +2131,18 @@ - + - + - + @@ -2837,13 +2820,13 @@ - + - + @@ -2868,12 +2851,12 @@ - - - + + + - + @@ -2908,23 +2891,23 @@ - + - + - + - - - - - + + + + + @@ -2955,7 +2938,7 @@ - + @@ -2964,13 +2947,13 @@ - + - + @@ -2982,11 +2965,11 @@ - - - - - + + + + + @@ -3024,7 +3007,7 @@ - + @@ -3093,7 +3076,7 @@ - + @@ -3112,43 +3095,43 @@ - + - + - + - + - + - + - + - + - + - - + + - + @@ -3160,7 +3143,7 @@ - + @@ -3177,38 +3160,38 @@ - + - + - + - - - - - - - - - - - + + + + + + + + + + + - + - + - + - + @@ -3229,53 +3212,53 @@ - + - + - + - + - - - - - - - - - - - + + + + + + + + + + + - + - + - + - + - - + + @@ -3303,10 +3286,10 @@ - + + - - + @@ -3316,26 +3299,26 @@ - + - + - + - + - + - + @@ -3434,140 +3417,140 @@ - - + + - - + + - - + + - - + + - - + + - - + + - - - + + + - + - + - + - - - + + + - - - + + + - - + + - - + + - + - - + + - + - + + - - + - - + + - + - + - - - + + + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + - + - + - - - - - + + + + + - + - + - + - + - + @@ -3575,40 +3558,40 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -3617,31 +3600,31 @@ - + - + - + - + - + - + - + - + - + @@ -3653,10 +3636,10 @@ - + - + @@ -3665,10 +3648,10 @@ - + - + @@ -3677,25 +3660,25 @@ - + - + - + - + - + - + @@ -3704,13 +3687,13 @@ - + - + - + @@ -3719,31 +3702,31 @@ - + - + - + - + - + - + - + - + @@ -3755,107 +3738,107 @@ - + - + - + - - - - - - - - - - - - + + + + + + + + + + + + + - - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3865,17 +3848,17 @@ - + - + - + - + @@ -3883,27 +3866,27 @@ - + - + - + - + - + - + - + - + @@ -3921,23 +3904,23 @@ - + - + - + - + - + - + - + @@ -3957,7 +3940,7 @@ - + @@ -4083,7 +4066,7 @@ - + @@ -4092,7 +4075,7 @@ - + @@ -4122,18 +4105,18 @@ - + - + - + - + @@ -4177,7 +4160,7 @@ - + @@ -4191,18 +4174,18 @@ - - - - - - - - + + + + + + + + + - - - + + @@ -4217,35 +4200,35 @@ - + - + - - - + + + - + - + - + - + - + @@ -4259,19 +4242,19 @@ - + - + - + - + - + @@ -4298,7 +4281,7 @@ - + @@ -4315,7 +4298,7 @@ - + @@ -4327,16 +4310,16 @@ - + - + - + @@ -4354,22 +4337,22 @@ - + - + - - + + - + - + @@ -4384,9 +4367,9 @@ - + - + @@ -4395,7 +4378,7 @@ - + @@ -4404,10 +4387,10 @@ - + - + @@ -4416,19 +4399,19 @@ - - + + - + - + - + @@ -4437,7 +4420,7 @@ - + @@ -4449,12 +4432,12 @@ - + - + - + @@ -4463,13 +4446,13 @@ - - + + - + - + @@ -4478,9 +4461,9 @@ - + - + @@ -4489,45 +4472,45 @@ - - - - - + + + + + - + - + - - - + + + + - - - + + + - - + + - - - - - - - - - - - + + + + + + + + + + - + - + @@ -4536,8 +4519,8 @@ - - + + @@ -4548,11 +4531,11 @@ - - - - - + + + + + @@ -4560,7 +4543,7 @@ - + @@ -4568,31 +4551,31 @@ - + - - - - + + + + - - - - - - + + + + + + - + - + @@ -4600,15 +4583,15 @@ - + - + - + @@ -4617,89 +4600,89 @@ - + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - + - + - + - + - + - + - + - + - + - + @@ -4711,36 +4694,36 @@ - + - + - + - + - - + + - + - - + + @@ -4748,8 +4731,8 @@ - - + + @@ -4757,35 +4740,35 @@ - + - + - + - + - + @@ -4794,7 +4777,7 @@ - + @@ -4803,7 +4786,7 @@ - + @@ -4812,7 +4795,7 @@ - + @@ -4821,7 +4804,7 @@ - + @@ -4833,13 +4816,13 @@ - - + + - + - + @@ -4848,8 +4831,8 @@ - - + + @@ -4885,40 +4868,40 @@ - + - - - + + + - - + + - + - - + + - + - + - - + + - - - - - + + + + + @@ -4932,112 +4915,112 @@ - + - - + + + + - - - - + + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - - - + + + - + - - + + - - + + - - + + - - + + - + - + @@ -5072,34 +5055,34 @@ - + - + - + + - - + - + - - + + - + - + - + @@ -5107,36 +5090,36 @@ - + - + + - + - - + - + - + - + - - + + @@ -5157,118 +5140,118 @@ - + - + - - + + - + - + - - + + - + - - + + - - - + + + - - + + - - + + - - + + - - + + - - - - + + + + - - + + - + - + - + - + - + - + - + - + - + - + - - + + @@ -5278,10 +5261,10 @@ - - + + - + @@ -5289,28 +5272,28 @@ - - + + - + - + - + - - - + + + - + @@ -5318,59 +5301,59 @@ - + - - - + + + - + - + - + - - - + + + - + - + - + - + - + - - + + - - + + - + @@ -5458,13 +5441,13 @@ - + - + @@ -5646,15 +5629,15 @@ - + - + - + @@ -5662,11 +5645,11 @@ - + - + @@ -5680,24 +5663,24 @@ - + - + - + - + @@ -5706,12 +5689,12 @@ - + - + @@ -5720,61 +5703,61 @@ - + - - - + + + - + - + - + - + - + - + - + - + - - + + - + @@ -5786,7 +5769,7 @@ - + @@ -5800,19 +5783,19 @@ - + - + - + - + - + @@ -5839,17 +5822,17 @@ - + - + - + - + - + @@ -5857,40 +5840,40 @@ - + - + - + - + - + - + - + - + - + - + - + @@ -5899,31 +5882,31 @@ - + - + - + - + - + - + - + - + - + @@ -5935,10 +5918,10 @@ - + - + @@ -5947,10 +5930,10 @@ - + - + @@ -5959,25 +5942,25 @@ - + - + - + - + - + - + @@ -5986,13 +5969,13 @@ - + - + - + @@ -6001,31 +5984,31 @@ - + - + - + - + - + - + - + - + @@ -6037,24 +6020,24 @@ - + - + - + - + - + @@ -6063,7 +6046,7 @@ - + @@ -6072,10 +6055,10 @@ - + - + @@ -6084,9 +6067,9 @@ - - - + + + @@ -6094,9 +6077,9 @@ - + - + @@ -6114,33 +6097,33 @@ - + - + - + - + - - - + + + - + - + - - + + @@ -6184,18 +6167,18 @@ - + - + - + - + @@ -6204,7 +6187,7 @@ - + @@ -6216,27 +6199,27 @@ - - + + - + - + - + - + - + - + - + @@ -6245,11 +6228,11 @@ - + - + - + @@ -6269,7 +6252,7 @@ - + @@ -6395,7 +6378,7 @@ - + @@ -6404,7 +6387,7 @@ - + @@ -6434,12 +6417,12 @@ - + - + - + @@ -6448,21 +6431,21 @@ - + - + - + - + - + - + @@ -6472,17 +6455,17 @@ - + - + - + - + @@ -6490,34 +6473,34 @@ - + - + - + - + - + - + - + - + - + - - + + @@ -6528,69 +6511,69 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -6607,7 +6590,7 @@ - + @@ -6619,16 +6602,16 @@ - + - + - + @@ -6646,26 +6629,26 @@ - + - + - - - - - - - - + + + + + + + + - + @@ -6680,14 +6663,14 @@ - + - + @@ -6701,10 +6684,10 @@ - - + + - + @@ -6713,8 +6696,8 @@ - - + + @@ -6722,15 +6705,15 @@ - + - + - + @@ -6745,9 +6728,9 @@ - - - + + + @@ -6782,137 +6765,137 @@ - - - - - - - - + + + + + + + + + + - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + - - - - - - - - + + + + + + + + - - - + + + - - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + @@ -6920,138 +6903,138 @@ - + - + - + - + - - + + - + - - + + - - + + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - - + + - - + + - + - - + + - - + + - + - + - + - + - - - + + + - - + + - - + + @@ -7060,143 +7043,143 @@ - - + + - + - + - + - - + + - + - - - + + + - - + + - - - + + + - - + + - - + + - - + + - - - + + + - - + + - - + + - - + + - + - - + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + @@ -7205,115 +7188,115 @@ - + - + - + - - + + - + - - + + - - + + - - + + - - + + - + - + - + - - + + - + - + - - - + + + - + - + - + - + - + - + @@ -7383,28 +7366,28 @@ - - + + - - + + - - + + - - + + - - + + - + - + - + @@ -7478,45 +7461,45 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7524,12 +7507,12 @@ - + - + - + @@ -7543,61 +7526,61 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7611,10 +7594,10 @@ - + - + @@ -7627,7 +7610,7 @@ - + @@ -7635,33 +7618,33 @@ - + - + - + - + - + - + - + - + @@ -7675,7 +7658,7 @@ - + @@ -7684,7 +7667,7 @@ - + @@ -7696,106 +7679,106 @@ - + - - - - - - - - - - - + + + + + + + + + + + - + - + - + - - - + + + - - - + + + - - + + - + - + - - + + - + - + - + - + - + - + - + - - + + - + @@ -7803,13 +7786,13 @@ - - + + - - + + - + @@ -7823,20 +7806,20 @@ - + - + - + - + - - - + + + @@ -7847,12 +7830,12 @@ - - + + - + @@ -7865,8 +7848,8 @@ - - + + @@ -7920,103 +7903,103 @@ - + - + - - - + + + - - - + + + - - - - - - - + + + + + + + - - - - + + + + - - + + - - - - + + + + - + - + - + - + - + - + - + - + - - + + - - + + - - + + - - + + - + @@ -8039,60 +8022,60 @@ - - + + - + - + - + - + - + - + - + - - - - - + + + + + - + - + - + - + - + @@ -8297,7 +8280,7 @@ - + @@ -8307,7 +8290,7 @@ - + @@ -8317,27 +8300,27 @@ - - + + - + - + - + - + - + @@ -8348,7 +8331,7 @@ - + @@ -8356,12 +8339,12 @@ - + - + - + @@ -8406,17 +8389,17 @@ - + - + - - - + + + @@ -8430,9 +8413,9 @@ - + - + @@ -8450,7 +8433,7 @@ - + @@ -8480,16 +8463,16 @@ - - + + - - + + - - - - + + + + @@ -8503,14 +8486,14 @@ - - + + - +