summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-21 09:11:15 +0000
committerbrolley <brolley@138bc75d-0d04-0410-961f-82ee72b054a4>1999-04-21 09:11:15 +0000
commitf19cece355f38656c69e47e126d2ac345a4e6ca8 (patch)
treea4bd385c574b43e02067ad21e7140c59ec5cc449
parent1ad581f023dc8221ee5bb9dd4bbfc18975c0408b (diff)
downloadppe42-gcc-f19cece355f38656c69e47e126d2ac345a4e6ca8.tar.gz
ppe42-gcc-f19cece355f38656c69e47e126d2ac345a4e6ca8.zip
Wed Apr 21 12:09:38 1999 Mumit Khan <khan@xraylith.wisc.edu>
* cccp.c (simplify_filename): Always preserve leading double slash. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@26573 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/cccp.c13
2 files changed, 5 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 416fce9601f..939d8f5a7d2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/cccp.c b/gcc/cccp.c
index d22097979c3..e89d00c574b 100644
--- a/gcc/cccp.c
+++ b/gcc/cccp.c
@@ -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;
}
}
}
OpenPOWER on IntegriCloud