aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-12-23 15:50:50 -0800
committerJim Wilson <wilson@gcc.gnu.org>1993-12-23 15:50:50 -0800
commita6642da8c0978a553075224409c1ee5fd12dc219 (patch)
treeb9bd322324758eec71ac66c093d9d4deb700e788 /gcc
parentc0a085741f84e1032be54981c426169f9bd5f7be (diff)
downloadgcc-a6642da8c0978a553075224409c1ee5fd12dc219.zip
gcc-a6642da8c0978a553075224409c1ee5fd12dc219.tar.gz
gcc-a6642da8c0978a553075224409c1ee5fd12dc219.tar.bz2
backport: host_mips, mips, MIPSE[LB], R[34]000, SYSTYPE_*.
Merge in changes from fixinc.mips. Fix identifiers host_mips, mips, MIPSE[LB], R[34]000, SYSTYPE_*. Fix size_t uses in stddef.h, memory.h, unistd.h. Fix /**/ in bsd43/bsd43_.h. From-SVN: r6288
Diffstat (limited to 'gcc')
-rwxr-xr-xgcc/fixincludes24
1 files changed, 22 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 65f4879..008a61e 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -267,7 +267,7 @@ while [ $# != 0 ]; do
# identifiers below start with `d' or `l'. It also greatly improves
# performance, since many files contain lines of the form `#if ... defined ...'
# or `#if lint'.
- if egrep '//|[ _]_IO|CTRL|^#define.NULL|^#e[nl][ds][ief]*[ ]+[!-.0-~]|^#[el]*if.*[^a-zA-Z0-9_][_a-ce-km-z][a-z0-9]' $file >/dev/null; then
+ if egrep '//|[ _]_IO|CTRL|^#define.NULL|^#e[nl][ds][ief]*[ ]+[!-.0-~]|^#[el]*if.*[^a-zA-Z0-9_][_a-ce-km-zA-Z][a-zA-Z0-9]' $file >/dev/null; then
if [ -r $file ]; then
cp $file $2/$file >/dev/null 2>&1 \
|| echo "Can't copy $file"
@@ -302,10 +302,12 @@ while [ $# != 0 ]; do
s/[a-zA-Z0-9_][a-zA-Z0-9_]*/ & /g
s/ bsd4\([0-9]\) / __bsd4\1__ /g
+ s/ _*host_mips / __host_mips__ /g
s/ _*i386 / __i386__ /g
s/ is68k / __is68k__ /g
s/ m68k / __m68k__ /g
s/ mc680\([0-9]\)0 / __mc680\10__ /g
+ s/ _*mips / __mips__ /g
s/ news\([0-9]*\) / __news\1__ /g
s/ ns32000 / __ns32000__ /g
s/ pyr / __pyr__ /g
@@ -314,6 +316,9 @@ while [ $# != 0 ]; do
s/ sun\([a-z0-9]*\) / __sun\1__ /g
s/ unix / __unix__ /g
s/ vax / __vax__ /g
+ s/ _*MIPSE\([LB]\) / __MIPSE\1__ /g
+ s/ _*R\([34]\)000 / __R\1000__ /g
+ s/ _*SYSTYPE_\([A-Z0-9]*\) / __SYSTYPE_\1__ /g
s/ \([a-zA-Z0-9_][a-zA-Z0-9_]*\) /\1/g
}
@@ -340,7 +345,7 @@ done
cd ${INPUT}
# Install the proper definition of size_t in header files that it comes from.
-for file in sys/types.h stdlib.h sys/stdtypes.h; do
+for file in sys/types.h stdlib.h sys/stdtypes.h stddef.h memory.h unistd.h; do
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
chmod +w ${LIB}/$file 2>/dev/null
@@ -1151,6 +1156,21 @@ if [ -r ${LIB}/$file ]; then
fi
fi
+# This file in RISC/os uses /**/ to concatenate two tokens.
+file=bsd43/bsd43_.h
+if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
+ cp $file ${LIB}/$file >/dev/null 2>&1 || echo "Can't copy $file"
+ chmod +w ${LIB}/$file 2>/dev/null
+ chmod a+r ${LIB}/$file 2>/dev/null
+fi
+if [ -r ${LIB}/$file ]; then
+ 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
+
file=rpc/rpc.h
if [ -r $file ] && [ ! -r ${LIB}/$file ]; then
mkdir ${LIB}/rpc 2>/dev/null