From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24766 invoked by alias); 18 Jul 2011 20:41:50 -0000 Received: (qmail 24755 invoked by uid 22791); 18 Jul 2011 20:41:49 -0000 X-SWARE-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jul 2011 20:41:36 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p6IKf5Ww021491 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Jul 2011 16:41:05 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p6IKf45L020113; Mon, 18 Jul 2011 16:41:04 -0400 Received: from [0.0.0.0] (ovpn-113-151.phx2.redhat.com [10.3.113.151]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id p6IKf1kw020143; Mon, 18 Jul 2011 16:41:01 -0400 Message-ID: <4E249A5C.9060409@redhat.com> Date: Mon, 18 Jul 2011 22:06:00 -0000 From: Jason Merrill User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.18) Gecko/20110621 Fedora/3.1.11-1.fc14 Lightning/1.0b2 Thunderbird/3.1.11 MIME-Version: 1.0 To: Dodji Seketeli CC: gcc-patches@gcc.gnu.org, tromey@redhat.com, gdr@integrable-solutions.net, joseph@codesourcery.com, burnus@net-b.de, charlet@act-europe.fr, paolo@gnu.org Subject: Re: [PATCH 1/7] Linemap infrastructure for virtual locations References: <1291979498-1604-1-git-send-email-dodji@redhat.com> <3d6fbfd16f0e3493839205de1266eaaa8dbb9c77.1310824121.git.dodji@redhat.com> In-Reply-To: <3d6fbfd16f0e3493839205de1266eaaa8dbb9c77.1310824121.git.dodji@redhat.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2011-07/txt/msg01451.txt.bz2 On 07/16/2011 10:37 AM, Dodji Seketeli wrote: > + /* This array of location is actually an array of pairs of > + locations. The elements inside it thus look like: > + > + x0,y0, x1,y1, x2,y2, ...., xn,yn. Pairs of locations still seems limited, given the flexibility of macro expansion; with macros that use other macros a particular token can be substituted an arbitrary number of times; the first time doesn't seem particularly special. But then, it seems that nothing uses the replacement point currently. The diagnostics mentioned in patch 3 only seem to use the spelling location and the expansion location: > [dodji@adjoa gcc]$ ./cc1 -quiet -ftrack-macro-expansion test.c > test.c: In function ‘g’: > test.c:5:14: erreur: invalid operands to binary << (have ‘double’ and ‘int’) > test.c:2:9: note: in expansion of macro 'OPERATE' > test.c:5:3: note: expanded from here > test.c:5:14: note: in expansion of macro 'SHIFTL' > test.c:8:3: note: expanded from here > test.c:8:3: note: in expansion of macro 'MULT2' > test.c:13:3: note: expanded from here So how do you expect to use the replacement point information? Jason