* prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
From-SVN: r35485
This commit is contained in:
parent
93284395b0
commit
a6e919b382
|
@ -1,4 +1,8 @@
|
||||||
2000-07-17 Mark Elbrecht <snowball3@bigfoot.com>
|
2000-08-04 Donn Terry (donnte@microsoft.com)
|
||||||
|
|
||||||
|
* prefix.c (translate_name): Don't strip trailing DIR_SEPARATOR.
|
||||||
|
|
||||||
|
2000-08-04 Mark Elbrecht <snowball3@bigfoot.com>
|
||||||
|
|
||||||
* i386/x-djgpp: Delete code that conditionally modifies target_alias.
|
* i386/x-djgpp: Delete code that conditionally modifies target_alias.
|
||||||
Delete code that conditionally modifies 'version'.
|
Delete code that conditionally modifies 'version'.
|
||||||
|
|
12
gcc/prefix.c
12
gcc/prefix.c
|
@ -268,14 +268,10 @@ translate_name (name)
|
||||||
if (prefix == 0)
|
if (prefix == 0)
|
||||||
prefix = PREFIX;
|
prefix = PREFIX;
|
||||||
|
|
||||||
/* Remove any trailing directory separator from what we got. First check
|
/* We used to strip trailing DIR_SEPARATORs here, but that can
|
||||||
for an empty prefix. */
|
sometimes yield a result with no separator when one was coded
|
||||||
if (prefix[0] && IS_DIR_SEPARATOR (prefix[strlen (prefix) - 1]))
|
and intended by the user, causing two path components to run
|
||||||
{
|
together. */
|
||||||
char * temp = xstrdup (prefix);
|
|
||||||
temp[strlen (temp) - 1] = 0;
|
|
||||||
prefix = temp;
|
|
||||||
}
|
|
||||||
|
|
||||||
return concat (prefix, name, NULL_PTR);
|
return concat (prefix, name, NULL_PTR);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue