OSDN Git Service

Implement #pragma GCC warning/error
authorfw <fw@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2012 15:33:11 +0000 (15:33 +0000)
committerfw <fw@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 4 Oct 2012 15:33:11 +0000 (15:33 +0000)
commita1f1781ae8b54c384b7d193c2fd3ac8efc86932a
tree3992b4ad76993de282e9b81bbe8d85f5c7834619
parent1ca9d4a972802d9b9820437130392a6dc59181a8
Implement #pragma GCC warning/error

2012-10-04  Florian Weimer  <fweimer@redhat.com>

* doc/cpp.texi (Pragmas): Document #pragma GCC warning, #pragma
GCC error.

2012-10-04  Florian Weimer  <fweimer@redhat.com>

* c-c++-common/cpp/diagnostic-pragma-1.c: New testcase.

2012-10-04  Florian Weimer  <fweimer@redhat.com>

* directives.c (do_pragma_warning_or_error): New.
(do_pragma_warning): New.
(do_pragma_error): New.
(_cpp_init_internal_pragmas): Register new pragmas.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192084 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/doc/cpp.texi
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cpp/diagnostic-pragma-1.c [new file with mode: 0644]
libcpp/ChangeLog
libcpp/directives.c