cccp.c (simplify_filename): Always preserve leading double slash.
authorMumit Khan <khan@xraylith.wisc.edu>
Wed, 21 Apr 1999 09:11:15 +0000 (09:11 +0000)
committerDave Brolley <brolley@gcc.gnu.org>
Wed, 21 Apr 1999 09:11:15 +0000 (05:11 -0400)
Wed Apr 21 12:09:38 1999  Mumit Khan  <khan@xraylith.wisc.edu>
* cccp.c (simplify_filename): Always preserve leading double slash.

From-SVN: r26573

gcc/ChangeLog
gcc/cccp.c

index 416fce9601f9eb9245c291bd20e7db15ac81f494..939d8f5a7d2d26054ce861b4e67c9860291547ac 100644 (file)
@@ -1,3 +1,7 @@
+Wed Apr 21 12:09:38 1999  Mumit Khan  <khan@xraylith.wisc.edu>
+
+       * cccp.c (simplify_filename): Always preserve leading double slash.
+
 Wed Apr 21 18:15:55 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
 
        * config/c4x/c4x.md: Add new peepholes to remove redundant loads.
index d22097979c3d4204cdf1539b7b48ce3ad09582dd..e89d00c574b49b94d1e74f9869651c35e9858e06 100644 (file)
@@ -4832,18 +4832,7 @@ simplify_filename (filename)
           else
             {
              /* On some hosts // differs from /; Posix allows this.  */
-              static int slashslash_vs_slash;
-              if (slashslash_vs_slash == 0)
-                {
-                  struct stat s1, s2;
-                  slashslash_vs_slash = ((stat ("/", &s1) == 0
-                                         && stat ("//", &s2) == 0
-                                          && INO_T_EQ (s1.st_ino, s2.st_ino)
-                                          && s1.st_dev == s2.st_dev)
-                                         ? 1 : -1);
-                }
-             if (slashslash_vs_slash < 0)
-               *to++ = DIR_SEPARATOR;
+             *to++ = DIR_SEPARATOR;
             }
         }
     }