This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 1/2] Support location tracking for built-in macro tokens
- From: Dodji Seketeli <dodji at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Jason Merrill <jason at redhat dot com>, Nicholas Ormrod <nicholas dot ormrod at hotmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 16 Jul 2014 15:23:16 +0200
- Subject: Re: [PATCH 1/2] Support location tracking for built-in macro tokens
- Authentication-results: sourceware.org; auth=none
- References: <87d2du4xsu dot fsf at redhat dot com> <53ADD6C2 dot 9030200 at redhat dot com> <877g3uo6cq dot fsf at redhat dot com> <COL129-W8177087E5B88848923A685F5010 at phx dot gbl> <871tu1fhjh dot fsf at redhat dot com> <53B9991D dot 7090401 at redhat dot com> <871ttt8l8l dot fsf at redhat dot com> <53BEE945 dot 6080905 at redhat dot com> <86iomyvkai dot fsf at redhat dot com> <86d2d6vjjf dot fsf_-_ at redhat dot com> <CAFiYyc0ZgrADEjCAOiynfktxnSB=fQKGFPWAQWsUmhPLWdzycw at mail dot gmail dot com>
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