patch: New pragma command for gcc

Kai Tietz Kai.Tietz@onevision.com
Mon Mar 19 13:23:00 GMT 2007


Paolo Bonzini <paolo.bonzini@lu.unisi.ch> wrote on 16.03.2007 15:36:36:

> Kai Tietz wrote:
> > Hello,
> > 
> > This patch adds the pragma commands push_macro and pop_macro. The 
> > documentation is within an earlier patch is sent. By this commands you 

> > have the possibility to save macro content, than modify or undefine it 
and 
> > afterwards restore it to the prio definition.
> 
> All I can say about this is that the GNU coding standards are not
> fully respected, and that you need testcases (and possibly
> documentation).
 
I corrected the coding style issue. And add a test-case to 
gcc/testsuite/gcc.dg.

ChangeLog:

2007-03-19      Kai Tietz <Kai.Tietz@onevision.com>

        * gcc/testsuite/gcc.dg/pragma-push_pop_macro.c: New case for 
push_macro/pop_macro
        * gcc/c-pragma.c: Add new push_macro/pop_macro commands.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc_push_pop_macro.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070319/c01d2d37/attachment.txt>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gcc_cpragma_c.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070319/c01d2d37/attachment-0001.txt>


More information about the Gcc-patches mailing list