diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-05-06 19:59:56 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 1993-05-06 19:59:56 +0000 |
commit | 7313c84b673430d8e972800966afdec82cbd9e22 (patch) | |
tree | dd81e0364857483ad51bba930833cace6d1800f1 /gcc | |
parent | 71a247f08c2ecda66a3a5305d894fe76153866bc (diff) | |
download | gcc-7313c84b673430d8e972800966afdec82cbd9e22.zip gcc-7313c84b673430d8e972800966afdec82cbd9e22.tar.gz gcc-7313c84b673430d8e972800966afdec82cbd9e22.tar.bz2 |
More fixes for IRIX 4.0.1
From-SVN: r4372
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/fixincludes | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes index f1281e5..4773729 100755 --- a/gcc/fixincludes +++ b/gcc/fixincludes @@ -277,7 +277,8 @@ while [ $# != 0 ]; do /[ ]BSD43__IO[A-Z]*[ ]*(/ s/(\(.\),/('\''\1'\'',/ /#define._IO/ s/'\''\([cgx]\)'\''/\1/g /#define.BSD43__IO/ s/'\''\([cgx]\)'\''/\1/g - /[^A-Z]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ + /[^A-Z_]CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ + /[^A-Z]_CTRL[ ]*(/ s/\([^'\'']\))/'\''\1'\'')/ /#define.CTRL/ s/'\''\([cgx]\)'\''/\1/g /#define._CTRL/ s/'\''\([cgx]\)'\''/\1/g /#define.BSD43_CTRL/ s/'\''\([cgx]\)'\''/\1/g @@ -846,6 +847,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 + fi +fi + # Fix non-ANSI memcpy declaration that conflicts with gcc's builtin # declaration on Sun OS 4.x. We must only fix this on Sun OS 4.x, because # many other systems have similar text but correct versions of the file. |