[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug default/20329] const void* type wrong



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

dodji at redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #2 from dodji at redhat dot com ---
I think the problem here is that this construct from GCC:

[   5ba]    const_type

Is not recognized by Abigail's DWARF reader as a "const void" type.

It's the DIE for a const qualifier, but with no DW_AT_type.  This is GCC's way
of representing a const void type and libabigail doesn't get that.

As it doesn't get it, Abigail's DWARF reader drops the first parameter of the
function (named 'ptr') on the floor altogether, because it's of type 'pointer
to const void".

So, for Abigail, the function (as represented by GCC's debug info) just has one
parameter.

Abigail understands Intel's way of representing "const void" so it correctly
groks the first parameter of the function (and its second parameter) so it
takes it as the function gained one additional parameter, when comparing its
GCC version against its Intel version.

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