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

[Bug default/24275] hardlink handling leaves temporary file if not file compressed



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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at redhat dot com

--- Comment #1 from Tom de Vries <vries at gcc dot gnu.org> ---
AFAIU, the problem originates from the fact that the dedicated handling for
this case in the dwz function:
...
          /* If a hardlink to this has been processed before                    
             and we didn't change it, just assume the same                      
             state.  */
          if (resa[n].res == 1)
            {
              close (fd);
              res->res = -2;
              return 1;
            }
...
is not triggered  when called with b.out argument because this code at the end
of dwz:
...
  free (dso);
  if (ret == 0 && !low_mem)
    res->res = 0;
  return ret;
...
sets resa[n].res to 0 when called with a.out argument, irregardless of whether
a.out was changed or not.

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