]> git.ipfire.org Git - thirdparty/gcc.git/commit - libcpp/ChangeLog
re PR preprocessor/36649 (-H option doesn't work as expected)
authorJakub Jelinek <jakub@redhat.com>
Thu, 31 Jul 2008 19:12:14 +0000 (21:12 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 31 Jul 2008 19:12:14 +0000 (21:12 +0200)
commitaffa55c67fea50271e7a4a9f30806172e9a7a41a
treeb8d0f8b842935bf3445c936be9b262e9c8ec3c96
parenta23eb008dc764028d758ef589f67aa822a2a81e1
re PR preprocessor/36649 (-H option doesn't work as expected)

PR preprocessor/36649
* files.c (struct report_missing_guard_data): New type.
(report_missing_guard): Put paths into an array instead of printing
them right away.  Return 1 rather than 0.
(report_missing_guard_cmp): New function.
(_cpp_report_missing_guards): Sort and print paths gathered by
report_missing_guard callback.

* gcc.dg/pch/cpp-3.hs: Add include guards.
* gcc.dg/pch/cpp-3a.h: Likewise.
* gcc.dg/pch/cpp-3b.h: Likewise.
* gcc.dg/cpp/mi8.c: New test.
* gcc.dg/cpp/mi8a.h: New file.
* gcc.dg/cpp/mi8b.h: New file.
* gcc.dg/cpp/mi8c.h: New file.
* gcc.dg/cpp/mi8d.h: New file.

From-SVN: r138432
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/cpp/mi8.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/mi8a.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/mi8b.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/mi8c.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/cpp/mi8d.h [new file with mode: 0644]
gcc/testsuite/gcc.dg/pch/cpp-3.hs
gcc/testsuite/gcc.dg/pch/cpp-3a.h
gcc/testsuite/gcc.dg/pch/cpp-3b.h
libcpp/ChangeLog
libcpp/files.c