[PATCH 1/2] Support location tracking for built-in macro tokens

Dodji Seketeli dodji@redhat.com
Wed Jul 16 13:35:00 GMT 2014


Richard Biener <richard.guenther@gmail.com> writes:

> On Tue, Jul 15, 2014 at 3:27 PM, Dodji Seketeli <dodji@redhat.com> wrote:
>> Hello,
>>
>> When a built-in macro is expanded, the location of the token in the
>> epansion list is the location of the expansion point of the built-in
>> macro.
>>
>> This patch creates a virtual location for that token instead,
>> effectively tracking locations of tokens resulting from built-in macro
>> tokens.
>
> No testcase?

Hmmh, it was tricky to write something specifically for this case.  But
then the test cases of the second patch of the series does exercise this
patch.

Cheers.

-- 
		Dodji



More information about the Gcc-patches mailing list