This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]