re PR preprocessor/22231 (-MG ignores missing headers even with -c)
authorTom Tromey <tromey@redhat.com>
Fri, 9 May 2008 22:17:00 +0000 (22:17 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 9 May 2008 22:17:00 +0000 (22:17 +0000)
commit4822e563a0bb9ba66af37440964d8d1ad403710f
treeaa1bac7a42739f2cf9eee4e8313ceff450d76650
parentcc7f489c20f56793bf363bcaef7fe5f8d1dcbce4
re PR preprocessor/22231 (-MG ignores missing headers even with -c)

gcc
PR preprocessor/22231:
* c-opts.c (sanitize_cpp_opts): Disallow -MG if compilation is
proceeding.
gcc/testsuite
PR preprocessor/22231:
* gcc.dg/pr22231.c: New file.

From-SVN: r135128
gcc/ChangeLog
gcc/c-opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr22231.c [new file with mode: 0644]