]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
incpath.c (remove_duplicates): If name is not a directory, issue a warning rather...
authorIan Lance Taylor <iant@google.com>
Wed, 15 Sep 2010 17:27:24 +0000 (17:27 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Wed, 15 Sep 2010 17:27:24 +0000 (17:27 +0000)
* incpath.c (remove_duplicates): If name is not a directory, issue
a warning rather than an error.

From-SVN: r164314

gcc/ChangeLog
gcc/incpath.c

index 20a608fe51b9c6b9fcef2fcff3f3062460970dfd..178b31dbb52d2b3025e9387fdfc019296ef8a32f 100644 (file)
@@ -1,3 +1,8 @@
+2010-09-15  Ian Lance Taylor  <iant@google.com>
+
+       * incpath.c (remove_duplicates): If name is not a directory, issue
+       a warning rather than an error.
+
 2010-09-15  Martin Jambor  <mjambor@suse.cz>
 
        PR middle-end/45644
index 9cc783f6132bb3cf8bee09c1b122c1ef3967d1e7..91bd24154dbbf5426526ecfea3e69915fd9ad89e 100644 (file)
@@ -239,7 +239,7 @@ remove_duplicates (cpp_reader *pfile, struct cpp_dir *head,
            }
        }
       else if (!S_ISDIR (st.st_mode))
-       cpp_error_with_line (pfile, CPP_DL_ERROR, 0, 0,
+       cpp_error_with_line (pfile, CPP_DL_WARNING, 0, 0,
                             "%s: not a directory", cur->name);
       else
        {