This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH/RFC] C++ FE: expression ranges (v2)
- From: Marek Polacek <polacek at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, Jason Merrill <jason at redhat dot com>, Jakub Jelinek <jakub at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 24 Nov 2015 13:09:43 +0100
- Subject: Re: [PATCH/RFC] C++ FE: expression ranges (v2)
- Authentication-results: sourceware.org; auth=none
- References: <564E3512 dot 9080701 at redhat dot com> <56501A61 dot 6010806 at redhat dot com> <20151121082151 dot GQ5675 at tucnak dot redhat dot com> <CAFiYyc2WLXynEPXr1cOE=Me+wposZXXuGuifWDm71oF2heARBQ at mail dot gmail dot com> <1448297620 dot 19594 dot 168 dot camel at surprise> <20151123165754 dot GF5675 at tucnak dot redhat dot com> <20151123170752 dot GO21807 at redhat dot com> <56536842 dot 9090608 at redhat dot com> <CAFiYyc2TVkzeg-fdvtd5HusLL3vSC5xTOsKNQ4QMafGSetJt9w at mail dot gmail dot com> <1448362710 dot 19594 dot 234 dot camel at surprise>
On Tue, Nov 24, 2015 at 05:58:30AM -0500, David Malcolm wrote:
> +/* Language-dependent macro for stripping away location wrapper nodes. */
> +
> +#define STRIP_LOCATION_EXPRS(EXP) \
> + while (TREE_CODE (EXP) == LOCATION_EXPR) \
> + (EXP) = TREE_OPERAND ((EXP), 0)
This BTW implies that we might have a LOCATION_EXPR wrapped in another
LOCATION_EXPR, but I don't quite see how that could be useful?
Marek