From: Jeffrey A Law Date: Thu, 12 Feb 1998 23:48:20 +0000 (+0000) Subject: * cccp.c (new_include_prefix): Correctly handle -I./. X-Git-Tag: prereleases/egcs-1.0.2-prerelease~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=800eb7024cf18c61ae872d949ec7c6fed356705e;p=thirdparty%2Fgcc.git * cccp.c (new_include_prefix): Correctly handle -I./. From-SVN: r17887 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b75d4fdff739..4919812f07da 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 13 00:47:21 1998 Jeffrey A Law (law@cygnus.com) + + * cccp.c (new_include_prefix): Correctly handle -I./. + Sun Dec 28 00:32:16 1997 Jeffrey A Law (law@cygnus.com) * flow.c (find_basic_blocks): Don't create a new basic block diff --git a/gcc/cccp.c b/gcc/cccp.c index 8df72f28b036..cafb2c043a25 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -9812,7 +9812,7 @@ new_include_prefix (prev_file_name, prefix, name) len = simplify_filename (dir->fname); /* Convert directory name to a prefix. */ - if (dir->fname[len - 1] != '/') { + if (len && dir->fname[len - 1] != '/') { if (len == 1 && dir->fname[len - 1] == '.') len = 0; else