[APPROVED PATCH] c-pragma: adding a data field to pragma_handler

Basile Starynkevitch basile@starynkevitch.net
Mon Jun 20 10:04:00 GMT 2011

On Fri, 17 Jun 2011 11:41:21 +0200
Pierre Vittet <piervit@pvittet.com> wrote:

> Thoses two patchs have already been approved (see 
> http://gcc.gnu.org/ml/gcc-patches/2011-06/msg01159.html).
> I haven't write permission currently, could someone commit them?
> ChangeLogs have to be applied on gcc/c-family/ChangeLog .

I applied it to trunk as the attached (combined) patch [I combined both
patch sent by Pierre, since the second was formatting only]

####### gcc/c-family/ChangeLog entry
2011-06-20  Pierre Vittet  <piervit@pvittet.com>

	* c-pragma.h (pragma_handler_1arg, pragma_handler_2arg): New
	(gen_pragma_handler): New union.
	(internal_pragma_handler): New type.
	(c_register_pragma_with_expansion_and_data): New functions.

	* c-pragma.c (registered_pragmas, c_register_pragma_1)
	(c_register_pragma, c_register_pragma_with_expansion)
	(c_invoke_pragma_handler): Changed to work with
	(c_register_pragma_with_expansion_and_data): New functions.
Committed revision 175202.

Thanks & bravo to Pierre Vittet for his first accepted patch to trunk.

Basile STARYNKEVITCH         http://starynkevitch.net/Basile/
email: basile<at>starynkevitch<dot>net mobile: +33 6 8501 2359
8, rue de la Faiencerie, 92340 Bourg La Reine, France
*** opinions {are only mine, sont seulement les miennes} ***
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applied_cpragma_pierre_vittet-r175201.diff
Type: text/x-diff
Size: 8604 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110620/2c9eeee8/attachment.bin>

More information about the Gcc-patches mailing list