public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/26261] New: compare_dies contains some useless code
@ 2020-07-17 21:02 gprocida+abigail at google dot com
  2020-07-30 10:10 ` [Bug default/26261] " dodji at redhat dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gprocida+abigail at google dot com @ 2020-07-17 21:02 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=26261

            Bug ID: 26261
           Summary: compare_dies contains some useless code
           Product: libabigail
           Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: gprocida+abigail at google dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 12707
  --> https://sourceware.org/bugzilla/attachment.cgi?id=12707&action=edit
one line patch

The attached patch changes an instance of "result = true" to
"ABG_ASSERT(result)" in compare_dies. The existing statement is useless.

This may point to some unintended or incomplete behaviour. The patch has a few
more details.

Regards,
Giuliano.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug default/26261] compare_dies contains some useless code
  2020-07-17 21:02 [Bug default/26261] New: compare_dies contains some useless code gprocida+abigail at google dot com
@ 2020-07-30 10:10 ` dodji at redhat dot com
  2020-07-30 14:35 ` [Bug default/26261] unfinished handling of comparing DW_TAG_subroutine_type DIEs in compare_dies dodji at redhat dot com
  2020-08-03  9:52 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dodji at redhat dot com @ 2020-07-30 10:10 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=26261

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2020-07-30
             Status|UNCONFIRMED                 |ASSIGNED
     Ever confirmed|0                           |1

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug default/26261] unfinished handling of comparing DW_TAG_subroutine_type DIEs in compare_dies
  2020-07-17 21:02 [Bug default/26261] New: compare_dies contains some useless code gprocida+abigail at google dot com
  2020-07-30 10:10 ` [Bug default/26261] " dodji at redhat dot com
@ 2020-07-30 14:35 ` dodji at redhat dot com
  2020-08-03  9:52 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dodji at redhat dot com @ 2020-07-30 14:35 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=26261

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|compare_dies contains some  |unfinished handling of
                   |useless code                |comparing
                   |                            |DW_TAG_subroutine_type DIEs
                   |                            |in compare_dies

--- Comment #1 from dodji at redhat dot com ---
Yes, you are right.  That denotes some unfinished code there.

The intent was to safely detect when we could get out early and not proceed to
the full potentially slow structural comparison.  So essentially what is
missing there is a "break" statement, I think.

I am coming up with a patch to finish that part of the code.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Bug default/26261] unfinished handling of comparing DW_TAG_subroutine_type DIEs in compare_dies
  2020-07-17 21:02 [Bug default/26261] New: compare_dies contains some useless code gprocida+abigail at google dot com
  2020-07-30 10:10 ` [Bug default/26261] " dodji at redhat dot com
  2020-07-30 14:35 ` [Bug default/26261] unfinished handling of comparing DW_TAG_subroutine_type DIEs in compare_dies dodji at redhat dot com
@ 2020-08-03  9:52 ` dodji at redhat dot com
  2 siblings, 0 replies; 4+ messages in thread
From: dodji at redhat dot com @ 2020-08-03  9:52 UTC (permalink / raw)
  To: libabigail

https://sourceware.org/bugzilla/show_bug.cgi?id=26261

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from dodji at redhat dot com ---
This commit, applied to master should hopefully address the issue you raised:

https://sourceware.org/git/?p=libabigail.git;a=commit;h=817a2755bce057efa47aa5ceda78e7fbe1658faa.

Thanks!

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-03  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-17 21:02 [Bug default/26261] New: compare_dies contains some useless code gprocida+abigail at google dot com
2020-07-30 10:10 ` [Bug default/26261] " dodji at redhat dot com
2020-07-30 14:35 ` [Bug default/26261] unfinished handling of comparing DW_TAG_subroutine_type DIEs in compare_dies dodji at redhat dot com
2020-08-03  9:52 ` dodji at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).