[Bug bootstrap/9968] Prefix ending in "/" causes trouble in prefix.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9968 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org, ||neroden at gcc dot gnu.org Assignee|neroden at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED|NEW --- Comment #12 from Eric Gallager --- (In reply to Eric Gallager from comment #11) > (In reply to Nathanael C. Nerode from comment #9) > > Resummarizing. > > Are you still working on this? Guess not; unassigning...
[Bug bootstrap/9968] Prefix ending in "/" causes trouble in prefix.c
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=9968 Eric Gallager changed: What|Removed |Added CC||egallager at gcc dot gnu.org --- Comment #11 from Eric Gallager --- (In reply to Nathanael C. Nerode from comment #9) > Resummarizing. Are you still working on this?
[Bug bootstrap/9968] Prefix ending in / causes trouble in prefix.c
--- Comment #10 from manu at gcc dot gnu dot org 2007-02-17 15:46 --- How can this be tested? Would this work? Index: gcc/prefix.c === --- gcc/prefix.c(revision 121953) +++ gcc/prefix.c(working copy) @@ -252,6 +252,12 @@ update_path (const char *path, const cha char *result, *p; const int len = strlen (std_prefix); + if (IS_DIR_SEPARATOR (std_prefix[len-1])) +{ + set_std_prefix (std_prefix, len-1); + return update_path (path, key); +} + if (! strncmp (path, std_prefix, len) (IS_DIR_SEPARATOR(path[len]) || path[len] == '\0') -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=9968