public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (6 preceding siblings ...)
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2020-11-13  0:08 ` woodard at redhat dot com
  2020-11-25  6:32 ` dodji at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #1 from Ben Woodard <woodard at redhat dot com> ---
Created attachment 10259
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10259&action=edit
test2

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
  2017-01-01  0:00 ` [Bug default/21772] " woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (6 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #3 from Ben Woodard <woodard at redhat dot com> ---
Created attachment 10261
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10261&action=edit
clang object

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (8 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

Ben Woodard <woodard at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|DUPLICATE                   |---

--- Comment #7 from Ben Woodard <woodard at redhat dot com> ---
Evidently the real problem here is actually the inverse of what I reported. The
problem is actually that test2 is not reporting the fact that there is a
difference in the name and filtering out the change. While test1 continues to
be a duplicate of 21296.

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
  2017-01-01  0:00 ` [Bug default/21772] " woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (7 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #2 from Ben Woodard <woodard at redhat dot com> ---
Created attachment 10260
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10260&action=edit
gcc object

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

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

* [Bug default/21772] New: ignore whitespace changes when comparing names:
@ 2017-01-01  0:00 woodard at redhat dot com
  2017-01-01  0:00 ` [Bug default/21772] " woodard at redhat dot com
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

            Bug ID: 21772
           Summary: ignore whitespace changes when comparing names:
           Product: libabigail
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: default
          Assignee: dodji at redhat dot com
          Reporter: woodard at redhat dot com
                CC: libabigail at sourceware dot org
  Target Milestone: ---

Created attachment 10258
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10258&action=edit
test source

Given:
[ben@localhost c++test]$ cat test1.cpp
template <typename T, typename U = T*> struct A;

A<int> *p;
[ben@localhost c++test]$ c++ -c -g test1.cpp 
[ben@localhost c++test]$ clang++ -c -g test1.cpp -o test1-clang.o 
[ben@localhost c++test]$ ../libabigail/build/tools/abidiff test1.o
test1-clang.o 
Functions changes summary: 0 Removed, 0 Changed, 0 Added function
Variables changes summary: 0 Removed, 1 Changed, 0 Added variable

1 Changed variable:

  [C]'A<int, int*>* p' was changed to 'A<int, int *>* p' at test1.cpp:3:1:
    type of variable changed:
     in pointed to type 'struct A<int, int*>':
       type name changed from 'A<int, int*>' to 'A<int, int *>'
       type size hasn't changed

These should evaluate the same because the only difference is in the
whitespace.

Furthermore this is not an actual ABI artifact as can be seen by:

[ben@localhost c++test]$ cat test2.cpp 
template <typename T, typename U = T*> struct A {
  T a;
  U b;
};

A<int> i;

[ben@localhost c++test]$ c++ -c -g test2.cpp 
[ben@localhost c++test]$ clang++ -c -g test2.cpp -o test2-clang.o 
[ben@localhost c++test]$ ../libabigail/build/tools/abidiff test2.o
test2-clang.o 
Functions changes summary: 0 Removed, 0 Changed, 0 Added function
Variables changes summary: 0 Removed, 0 Changed (1 filtered out), 0 Added
variable

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (5 preceding siblings ...)
  2017-01-01  0:00 ` dodji at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (2 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #4 from Ben Woodard <woodard at redhat dot com> ---
Created attachment 10262
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10262&action=edit
test2 gcc object

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (3 preceding siblings ...)
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` dodji at redhat dot com
                   ` (4 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #8 from Ben Woodard <woodard at redhat dot com> ---
Dodji, I know that we discussed this in chat and you pointed out that it was
test2 that was wrong rather than test1 and that it was considering something
harmless which wasn't but I can't recall what that was. Can you explain it
again?

[ben@localhost c++test]$ abidiff --no-unreferenced-symbols --harmless test2.o
test2-clang.o 
Functions changes summary: 0 Removed, 0 Changed, 0 Added function
Variables changes summary: 0 Removed, 1 Changed, 0 Added variable

1 Changed variable:

  [C]'A<int, int*> i' was changed to 'A<int, int *> i' at test2.cpp:6:1:
    type of variable changed:
     type name changed from 'A<int, int*>' to 'A<int, int *>'
     type size hasn't changed

     2 data member changes:
      name of 'A<int, int*>::a' changed to 'A<int, int *>::a' at test2.cpp:2:1
      name of 'A<int, int*>::b' changed to 'A<int, int *>::b' at test2.cpp:3:1


[ben@localhost c++test]$ cat test2.
test2.cpp  test2.o    
[ben@localhost c++test]$ cat test2.cpp 
template <typename T, typename U = T*> struct A {
  T a;
  U b;
};

A<int> i;

I recognize that 21296 is the issue regarding normalizing types which appears
in the typenames but I don't see in this case why considering this change
harmless is a problem. I think you said that it was because it was considered
harmless for the wrong reason but I don't recall what you said was the reason.

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (2 preceding siblings ...)
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2017-01-01  0:00 ` woodard at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (5 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

--- Comment #5 from Ben Woodard <woodard at redhat dot com> ---
Created attachment 10263
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10263&action=edit
test2 clang object

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (4 preceding siblings ...)
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2017-01-01  0:00 ` dodji at redhat dot com
  2017-01-01  0:00 ` woodard at redhat dot com
                   ` (3 subsequent siblings)
  9 siblings, 0 replies; 11+ messages in thread
From: dodji at redhat dot com @ 2017-01-01  0:00 UTC (permalink / raw)
  To: libabigail

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

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE

--- Comment #6 from dodji at redhat dot com ---
I think the general problem is more involved than just ignoring white spaces in
type names.  That problem has already been expressed at
https://sourceware.org/bugzilla/show_bug.cgi?id=21296#c2.

I am closing this bug as a duplicate of that previous bug.  This bug report is
interesting though, because it adds reproducers that can be used to test the
solution that will be proposed for the issue, eventually.

Thanks!

*** This bug has been marked as a duplicate of bug 21296 ***

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (7 preceding siblings ...)
  2017-01-01  0:00 ` woodard at redhat dot com
@ 2020-11-13  0:08 ` woodard at redhat dot com
  2020-11-25  6:32 ` dodji at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: woodard at redhat dot com @ 2020-11-13  0:08 UTC (permalink / raw)
  To: libabigail

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

--- Comment #9 from Ben Woodard <woodard at redhat dot com> ---
This problem continues to exist as of commit:
2cc1ab7ee879da20688c4a72ec93c73123d7b9aa

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

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

* [Bug default/21772] ignore whitespace changes when comparing names:
  2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
                   ` (8 preceding siblings ...)
  2020-11-13  0:08 ` woodard at redhat dot com
@ 2020-11-25  6:32 ` dodji at redhat dot com
  9 siblings, 0 replies; 11+ messages in thread
From: dodji at redhat dot com @ 2020-11-25  6:32 UTC (permalink / raw)
  To: libabigail

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

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement

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

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

end of thread, other threads:[~2020-11-25  6:32 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-01  0:00 [Bug default/21772] New: ignore whitespace changes when comparing names: woodard at redhat dot com
2017-01-01  0:00 ` [Bug default/21772] " woodard at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2017-01-01  0:00 ` dodji at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2017-01-01  0:00 ` woodard at redhat dot com
2020-11-13  0:08 ` woodard at redhat dot com
2020-11-25  6:32 ` 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).