This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] __has_{,cpp_}attribute fixes (PR preprocessor/63831)
- From: Jason Merrill <jason at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>, Ed Smith-Rowland <3dw4rd at verizon dot net>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 17 Dec 2014 16:14:00 -0500
- Subject: Re: [PATCH] __has_{,cpp_}attribute fixes (PR preprocessor/63831)
- Authentication-results: sourceware.org; auth=none
- References: <20141205202855 dot GR1923 at tucnak dot redhat dot com>
On 12/05/2014 03:28 PM, Jakub Jelinek wrote:
3) there is no __has_attribute__ middle-end secondary macro,
when it is a built-in macro, it works fine in #ifdef too
I'm not sure what the rationale for the secondary macro was. Ed?
-cb_has_attribute (cpp_reader *pfile)
+c_common_has_attribute (cpp_reader *pfile)
Let's not change the name; it's still a lexer callback rather than a
function to be called by C-family front ends.
OK with that change if Ed doesn't object in the next couple of days.
Jason