OSDN Git Service

PR preprocessor/36649
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2008 19:12:14 +0000 (19:12 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jul 2008 19:12:14 +0000 (19:12 +0000)
commit408c2285f14b7cb4ebcbee38be30b9cf177d0afa
treeb8d0f8b842935bf3445c936be9b262e9c8ec3c96
parent19f93b6270249e3a0a0e48011f8041fc619f32ab
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138432 138bc75d-0d04-0410-961f-82ee72b054a4
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