aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.co.uk>2002-07-02 17:06:03 +0000
committerNeil Booth <neil@gcc.gnu.org>2002-07-02 17:06:03 +0000
commit49e7b251ee93b18e852eb2b4e328b1094edd93a4 (patch)
tree30d7ec88610653a35c59735f057eb603cb5b5f72 /gcc/testsuite
parent06728f70cf6b113f52d1bbd3dc32085d01c999c5 (diff)
downloadgcc-49e7b251ee93b18e852eb2b4e328b1094edd93a4.zip
gcc-49e7b251ee93b18e852eb2b4e328b1094edd93a4.tar.gz
gcc-49e7b251ee93b18e852eb2b4e328b1094edd93a4.tar.bz2
cppinit.c (cpp_handle_option): Suppress warnings with an implicit "-w" for "-M" and "-MM".
* cppinit.c (cpp_handle_option): Suppress warnings with an implicit "-w" for "-M" and "-MM". doc: * cppopts.texi: Update. testsuite: * gcc.dg/cpp/cmdlne-M.c: New test. From-SVN: r55185
Diffstat (limited to 'gcc/testsuite')
-rw-r--r--gcc/testsuite/gcc.dg/cpp/cmdlne-M.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/cpp/cmdlne-M.c b/gcc/testsuite/gcc.dg/cpp/cmdlne-M.c
new file mode 100644
index 0000000..4eb6407
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/cpp/cmdlne-M.c
@@ -0,0 +1,8 @@
+/* Copyright (C) 2002 Free Software Foundation, Inc. */
+
+/* { dg-do preprocess } */
+/* { dg-options "-M" } */
+
+/* Test that dependency output suppresses warnings by implying -w. */
+
+#warning bogus /* { dg-bogus "warning" "warning not suppressed" } */