diff options
author | Mumit Khan <khan@xraylith.wisc.edu> | 1999-04-21 09:11:15 +0000 |
---|---|---|
committer | Dave Brolley <brolley@gcc.gnu.org> | 1999-04-21 05:11:15 -0400 |
commit | 4cd4ea91015418e2ea14b5cb2f4351024a7ef91c (patch) | |
tree | a4bd385c574b43e02067ad21e7140c59ec5cc449 /gcc | |
parent | c540cf3bc9a118f0c5f61af893937bb6308ee7ca (diff) | |
download | gcc-4cd4ea91015418e2ea14b5cb2f4351024a7ef91c.zip gcc-4cd4ea91015418e2ea14b5cb2f4351024a7ef91c.tar.gz gcc-4cd4ea91015418e2ea14b5cb2f4351024a7ef91c.tar.bz2 |
cccp.c (simplify_filename): Always preserve leading double slash.
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cccp.c | 13 |
2 files changed, 5 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 416fce9..939d8f5 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. @@ -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; } } } |