]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cccp.c (new_include_prefix): Correctly handle -I./.
authorJeffrey A Law <law@cygnus.com>
Thu, 12 Feb 1998 23:48:20 +0000 (23:48 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 12 Feb 1998 23:48:20 +0000 (16:48 -0700)
From-SVN: r17887

gcc/ChangeLog
gcc/cccp.c

index b75d4fdff7393019b27d71402d1d01e89e8f62e4..4919812f07da03e71434ca404ccfee49df7e8446 100644 (file)
@@ -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
index 8df72f28b0369e8899f390ad6161e169241e0984..cafb2c043a252a957d6560abe95414824703654d 100644 (file)
@@ -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