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 3/7] Emit macro expansion related diagnostics


On 10/03/2011 06:49 PM, Dodji Seketeli wrote:
Good question. Is the below better?

+  if (linemap_location_from_macro_expansion_p (set, pre))
+    pre = linemap_resolve_location (set, pre,
+                                   LRK_MACRO_EXPANSION_POINT, NULL);
+
+  if (linemap_location_from_macro_expansion_p (set, post))
+    post = linemap_resolve_location (set, post,
+                                    LRK_MACRO_EXPANSION_POINT,
+                                    NULL);

This looks like two different virtual locations from the same macro expansion will compare equal.


Jason


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