From 46327e129497136180fbdc45455f52d0b7b7707f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 15 Sep 2010 17:27:24 +0000 Subject: [PATCH] incpath.c (remove_duplicates): If name is not a directory, issue a warning rather than an error. * incpath.c (remove_duplicates): If name is not a directory, issue a warning rather than an error. From-SVN: r164314 --- gcc/ChangeLog | 5 +++++ gcc/incpath.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 20a608fe51b9..178b31dbb52d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-09-15 Ian Lance Taylor + + * incpath.c (remove_duplicates): If name is not a directory, issue + a warning rather than an error. + 2010-09-15 Martin Jambor PR middle-end/45644 diff --git a/gcc/incpath.c b/gcc/incpath.c index 9cc783f6132b..91bd24154dbb 100644 --- a/gcc/incpath.c +++ b/gcc/incpath.c @@ -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 {