Re: [PATCH] Replace __attribute_pure__ with __pure

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: H. Peter Anvin <hpa@...>
Cc: Ralf Baechle <ralf@...>, Andrew Morton <akpm@...>, Russell King <rmk@...>, Mauro Carvalho Chehab <mchehab@...>, <bryan.wu@...>, <michael.frysinger@...>, <robin.getz@...>, Paul Mackerras <paulus@...>, LKML Kernel <linux-kernel@...>
Date: Saturday, October 6, 2007 - 2:49 pm

Trimmed the CC list a bit

On Oct 05, 2007, at 20:51:21, H. Peter Anvin wrote:

Yes, there's also the fact that __pure is a reserved GCC keyword.   
Essentially according to GCC docs all of the GCC-specific keywords  
are equivalently defined as "keyword", "__keyword", and  
"__keyword__", with only the latter two defined in strict-ANSI mode.   
The following is valid according to GCC docs:

static int __attribute__((__pure)) my_strlen(const char *str);

With the proposed definition of __pure, that becomes a noticeably  
invalid __attribute__((__attribute__((__pure__))))


Cheers,
Kyle Moffett

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Replace __attribute_pure__ with __pure, Ralf Baechle, (Fri Oct 5, 9:13 am)
Re: [PATCH] Replace __attribute_pure__ with __pure, H. Peter Anvin, (Fri Oct 5, 8:51 pm)
Re: [PATCH] Replace __attribute_pure__ with __pure, Kyle Moffett, (Sat Oct 6, 2:49 pm)
Re: [PATCH] Replace __attribute_pure__ with __pure, Robin Getz, (Fri Oct 5, 6:36 pm)
Re: [PATCH] Replace __attribute_pure__ with __pure, Mike Frysinger, (Fri Oct 5, 11:35 am)
Re: [PATCH] Replace __attribute_pure__ with __pure, Mauro Carvalho Chehab, (Fri Oct 5, 9:23 am)