This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Add discriminators to DWARF line table
>>>>> "Cary" == Cary Coutant <ccoutant@google.com> writes:
Cary> It looks like the string pointers may not be the same if there's an
Cary> intervening #line directive. I've changed this to do a quick pointer
Cary> comparison, then fall back to a strcmp:
Cary> if (from.line != to.line)
Cary> return false;
Cary> if (from.file == to.file)
Cary> return true;
Cary> return strcmp (from.file, to.file);
I think that should be: return !strcmp (...)
Tom