aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1993-10-25 17:57:20 +0000
committerRichard Stallman <rms@gnu.org>1993-10-25 17:57:20 +0000
commit195714793d623e7706b344d5944c3d21034ced25 (patch)
tree1e8bad6c69600a6cb940965ba5e3586156b5a7be /gcc/fixincludes
parentebd4130940c308cdacdf2014902c4a9d80f48696 (diff)
downloadgcc-195714793d623e7706b344d5944c3d21034ced25.zip
gcc-195714793d623e7706b344d5944c3d21034ced25.tar.gz
gcc-195714793d623e7706b344d5944c3d21034ced25.tar.bz2
Remove nested brackets in change of Oct 21.
Fix token pasting operator in ARM/RISCiX include files. From-SVN: r5881
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes25
1 files changed, 23 insertions, 2 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 6c4e583..ffa5386 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -472,8 +472,8 @@ fi
if [ -r ${LIB}/$file ]; then
echo Fixing $file
- sed -e "s/\(#[ ]*\(ifndef\)[ ]*\)__wchar_t/\1_GCC_WCHAR_T/" \
- -e "s/\(#[ ]*\(define\)[ ]*\)__wchar_t/\1_GCC_WCHAR_T/" \
+ sed -e "s/\(#[ ]*ifndef[ ]*\)__wchar_t/\1_GCC_WCHAR_T/" \
+ -e "s/\(#[ ]*define[ ]*\)__wchar_t/\1_GCC_WCHAR_T/" \
${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
@@ -1242,6 +1242,27 @@ do
fi
done
+# These files in ARM/RISCiX use /**/ to concatenate tokens.
+for file in arm/as_support.h arm/mc_type.h arm/xcb.h dev/chardefmac.h \
+ dev/ps_irq.h dev/screen.h dev/scsi.h sys/tty.h \
+ X11/extensions/multibufst.h X11/Xmd.h X11/Xlibinit.h \
+ Xm.acorn/XmP.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
+ chmod a+r ${LIB}/$file 2>/dev/null
+ fi
+
+ if [ -r ${LIB}/$file ]; then
+ sed -e 's|/\*\*/|##|g' ${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
+done
+
echo 'Removing unneeded directories:'
cd $LIB
files=`find . -type d -print | sort -r`