This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
RE: patch for fast-fixinc on alpha-dec-osf4.0a
- To: egcs-bugs at egcs dot cygnus dot com, egcs-patches at egcs dot cygnus dot com, law at cygnus dot com
- Subject: RE: patch for fast-fixinc on alpha-dec-osf4.0a
- From: korbb at egcs dot cygnus dot com
- Date: 3 Jun 1999 14:47:52 -0000
- Cc: ddsinc09 at ix dot netcom dot com
Reply-To: ddsinc09@ix.netcom.com
*PLEASE* if you press the "Reply" button, edit my address. Thanks.
Jun 3, 07:48 1999 Bruce Korb <ddsinc09@ix.netcom.com>
*fixinc/inclhack.def(Io_Def_Quotes): corrected sed expression
*fixinc/fixincl.x: regenerate
*fixinc/inclhack.sh: regenerate
Index: inclhack.def
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/inclhack.def,v
retrieving revision 1.14
diff -u -r1.14 inclhack.def
--- inclhack.def 1999/05/11 23:06:47 1.14
+++ inclhack.def 1999/06/03 14:43:22
@@ -567,7 +567,8 @@
fix = {
hackname = io_def_quotes;
select = "[ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*\\( *[^,']";
- sed = "s/\\([ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/";
+ sed = "s/\\([ \t]*[ \t]_IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/";
+ sed = "s/\\([ \t]*[ \t]DESIO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/";
sed = "/#[ \t]*define[ \t]*[ \t]_IO/" "s/'\\([cgxtf]\\)'/\\1/g";
sed = "/#[ \t]*define[ \t]*[ \t]DESIOC/" 's/\'\([cdgx]\)\'/\1/g';
};
Index: fixincl.x
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/fixincl.x,v
retrieving revision 1.18
diff -u -r1.18 fixincl.x
--- fixincl.x 1999/06/02 07:08:52 1.18
+++ fixincl.x 1999/06/03 14:43:25
@@ -1079,7 +1079,8 @@
* Fix Command Arguments for Io_Def_Quotes
*/
const char* apzIo_Def_QuotesPatch[] = { "sed",
- "-e", "s/\\([ \t]*[ \t](_|DES)IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",
+ "-e", "s/\\([ \t]*[ \t]_IO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",
+ "-e", "s/\\([ \t]*[ \t]DESIO[A-Z]*[ \t]*(\\)\\([^,']\\),/\\1'\\2',/",
"-e", "/#[ \t]*define[ \t]*[ \t]_IO/s/'\\([cgxtf]\\)'/\\1/g",
"-e", "/#[ \t]*define[ \t]*[ \t]DESIOC/s/'\\([cdgx]\\)'/\\1/g",
(char*)NULL };
Index: inclhack.sh
===================================================================
RCS file: /cvs/egcs/egcs/gcc/fixinc/inclhack.sh,v
retrieving revision 1.19
diff -u -r1.19 inclhack.sh
--- inclhack.sh 1999/05/17 12:40:27 1.19
+++ inclhack.sh 1999/06/03 14:43:28
@@ -1056,7 +1056,8 @@
then infile=${file}
else infile=${DESTFILE} ; fi
- sed -e 's/\([ ]*[ ](_|DES)IO[A-Z]*[ ]*(\)\([^,'\'']\),/\1'\''\2'\'',/' \
+ sed -e 's/\([ ]*[ ]_IO[A-Z]*[ ]*(\)\([^,'\'']\),/\1'\''\2'\'',/' \
+ -e 's/\([ ]*[ ]DESIO[A-Z]*[ ]*(\)\([^,'\'']\),/\1'\''\2'\'',/' \
-e '/#[ ]*define[ ]*[ ]_IO/s/'\''\([cgxtf]\)'\''/\1/g' \
-e '/#[ ]*define[ ]*[ ]DESIOC/s/'\''\([cdgx]\)'\''/\1/g' \
< $infile > ${DESTDIR}/fixinc.tmp