From: Jeffrey A Law Date: Thu, 12 Feb 1998 23:45:20 +0000 (+0000) Subject: * cccp.c (new_include_prefix): Correctly handle -I./. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e0e0f036a20508d674c8e17df4c6855e267d514;p=gcc.git * cccp.c (new_include_prefix): Correctly handle -I./. From-SVN: r17886 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d0f258ff260..7ac40d5b935 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 * rs6000.md: Replace gen_rtx (CONST_INT,...) with GEN_INT. diff --git a/gcc/cccp.c b/gcc/cccp.c index c394ea2ecc2..f8877be99df 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -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