mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-02-15 00:30:19 +08:00
* cccp.c (new_include_prefix): Correctly handle -I./.
From-SVN: r17886
This commit is contained in:
parent
2aca5b9b2d
commit
5e0e0f036a
@ -1,3 +1,7 @@
|
||||
Fri Feb 13 00:46:19 1998 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* cccp.c (new_include_prefix): Correctly handle -I./.
|
||||
|
||||
Thu Feb 12 20:16:35 1998 Michael Meissner <meissner@cygnus.com>
|
||||
|
||||
* rs6000.md: Replace gen_rtx (CONST_INT,...) with GEN_INT.
|
||||
|
@ -9814,7 +9814,7 @@ new_include_prefix (prev_file_name, component, prefix, name)
|
||||
len = simplify_filename (dir->fname);
|
||||
|
||||
/* Convert directory name to a prefix. */
|
||||
if (dir->fname[len - 1] != DIR_SEPARATOR) {
|
||||
if (len && dir->fname[len - 1] != DIR_SEPARATOR) {
|
||||
if (len == 1 && dir->fname[len - 1] == '.')
|
||||
len = 0;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user