aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-11-02 04:15:40 +0000
committerRichard Stallman <rms@gnu.org>1993-11-02 04:15:40 +0000
commit8bfed5280520af5c680f29b6c9eb3e1256e92536 (patch)
tree681bb37ec749cb3b38b683c31cb5c180b957d94d
parent0663081eed12d60098c6a5f4887a2155935687a4 (diff)
downloadgcc-8bfed5280520af5c680f29b6c9eb3e1256e92536.zip
gcc-8bfed5280520af5c680f29b6c9eb3e1256e92536.tar.gz
gcc-8bfed5280520af5c680f29b6c9eb3e1256e92536.tar.bz2
Unquote 'f' in #define _IO.
Unquote 'f' in #define _IO. Fix elf.h like elf_abi.h. For Irix 5. From-SVN: r5970
-rwxr-xr-xgcc/fixincludes21
1 files changed, 11 insertions, 10 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 7f63a39..404c044 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -291,7 +291,7 @@ while [ $# != 0 ]; do
/\/\/[^*]/ s|//\(.*\)$|/*\1*/|
/[ ]_IO[A-Z]*[ ]*(/ s/\(_IO[A-Z]*[ ]*(\)\(.\),/\1'\''\2'\'',/
/[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/
- /#define._IO/ s/'\''\([cgxt]\)'\''/\1/g
+ /#define._IO/ s/'\''\([cgxtf]\)'\''/\1/g
/#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g
/[^A-Z0-9_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
/[^A-Z0-9]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/
@@ -878,16 +878,17 @@ if [ -r ${LIB}/$file ]; then
fi
fi
-# Another IRIX 4.0.1 header file contains the string "//"
-file=elf_abi.h
-if [ -r ${LIB}/$file ]; then
- echo Fixing $file, overeager sed script
- sed -e 's|"/\*"\*/|"//"|' ${LIB}/$file > ${LIB}/${file}.sed
- rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
- if cmp $file ${LIB}/$file >/dev/null 2>&1; then
- rm -f ${LIB}/$file
+# Some IRIX header files contains the string "//"
+for file in elf_abi.h elf.h; do
+ if [ -r ${LIB}/$file ]; then
+ echo Fixing $file, overeager sed script
+ sed -e 's|"/\*"\*/|"//"|' ${LIB}/$file > ${LIB}/${file}.sed
+ rm -f ${LIB}/$file; mv ${LIB}/${file}.sed ${LIB}/$file
+ if cmp $file ${LIB}/$file >/dev/null 2>&1; then
+ rm -f ${LIB}/$file
+ fi
fi
-fi
+done
# Same problem with a file from SunOS 4.1.3 : a header file containing
# the string "//" embedded in "/**/"