aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-01-13 10:59:15 +0000
committerRichard Stallman <rms@gnu.org>1993-01-13 10:59:15 +0000
commit8230fba78adffe8eb6f746404c6e0b67702383df (patch)
treeaf1c719e917d3e58b3b65689a7f64a91f3627ef2
parent9d9dadd25278d7b75a8b6d7b7f2eb8f79d9c970d (diff)
downloadgcc-8230fba78adffe8eb6f746404c6e0b67702383df.zip
gcc-8230fba78adffe8eb6f746404c6e0b67702383df.tar.gz
gcc-8230fba78adffe8eb6f746404c6e0b67702383df.tar.bz2
(rpc/types.h): Change const extern to extern const.
From-SVN: r3221
-rwxr-xr-xgcc/fixinc.svr428
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/fixinc.svr4 b/gcc/fixinc.svr4
index c1970d4..4051674 100755
--- a/gcc/fixinc.svr4
+++ b/gcc/fixinc.svr4
@@ -1080,6 +1080,34 @@ if [ \! -z "$file_to_fix" ]; then
rm -f /tmp/$base
fi
+# Put storage class at start of decl, to avoid warning.
+file=rpc/types.h
+base=`basename $file`
+if [ -r ${LIB}/$file ]; then
+ file_to_fix=${LIB}/$file
+else
+ if [ -r ${INPUT}/$file ]; then
+ file_to_fix=${INPUT}/$file
+ else
+ file_to_fix=""
+ fi
+fi
+if [ \! -z "$file_to_fix" ]; then
+ echo Checking $file_to_fix
+ sed -e '
+ s/const extern/extern const/g
+ ' $file_to_fix > /tmp/$base
+ if cmp $file_to_fix /tmp/$base >/dev/null 2>&1; then \
+ true
+ else
+ echo Fixed $file_to_fix
+ rm -f ${LIB}/$file
+ cp /tmp/$base ${LIB}/$file
+ chmod a+r ${LIB}/$file
+ fi
+ rm -f /tmp/$base
+fi
+
# Convert functions to prototype form, and fix arg names in <sys/stat.h>.
file=sys/stat.h