From: Ben Elliston Date: Wed, 23 Jan 2008 23:26:24 +0000 (+0000) Subject: re PR other/22232 (Bug in "fixproto" (missing escape)) X-Git-Tag: releases/gcc-4.3.0~448 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c67bfa31ef610142d0c922ec0a8de08ef3a89f08;p=thirdparty%2Fgcc.git re PR other/22232 (Bug in "fixproto" (missing escape)) PR other/22232 * fixproto: Escape "." in sed expression that strips leading "./". From-SVN: r131768 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0b4e46f6d42f..9e3f404ed9b3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2008-01-24 Ben Elliston + + PR other/22232 + * fixproto: Escape "." in sed expression that strips leading "./". + 2008-01-23 Hans-Peter Nilsson * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop diff --git a/gcc/fixproto b/gcc/fixproto index a12349e5d9e3..d1a32bd43dcc 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)