diff options
author | Ben Elliston <bje@au.ibm.com> | 2008-01-23 23:26:24 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2008-01-24 10:26:24 +1100 |
commit | c67bfa31ef610142d0c922ec0a8de08ef3a89f08 (patch) | |
tree | fee2af99bd32b76393563c29f2a9962291c74e11 | |
parent | 3e603aef40cb6ac7e1e900ab8d2d74ce71cb6595 (diff) | |
download | gcc-c67bfa31ef610142d0c922ec0a8de08ef3a89f08.zip gcc-c67bfa31ef610142d0c922ec0a8de08ef3a89f08.tar.gz gcc-c67bfa31ef610142d0c922ec0a8de08ef3a89f08.tar.bz2 |
re PR other/22232 (Bug in "fixproto" (missing escape))
PR other/22232
* fixproto: Escape "." in sed expression that strips leading "./".
From-SVN: r131768
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rwxr-xr-x | gcc/fixproto | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b4e46f..9e3f404 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-24 Ben Elliston <bje@au.ibm.com> + + PR other/22232 + * fixproto: Escape "." in sed expression that strips leading "./". + 2008-01-23 Hans-Peter Nilsson <hp@axis.com> * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop diff --git a/gcc/fixproto b/gcc/fixproto index a12349e..d1a32bd 100755 --- a/gcc/fixproto +++ b/gcc/fixproto @@ -197,7 +197,7 @@ for code in ALL STD ; do fi fi # Append "/"; remove initial "./". Hence "." -> "" and "sys" -> "sys/". - rel_source_prefix=`echo $rel_source_subdir | sed -e 's|$|/|' -e 's|^./||'` + rel_source_prefix=`echo $rel_source_subdir | sed -e 's|$|/|' -e 's|^\./||'` case $code in ALL) |