aboutsummaryrefslogtreecommitdiff
path: root/gcc/fixincludes
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1993-09-28 15:54:25 -0700
committerJim Wilson <wilson@gcc.gnu.org>1993-09-28 15:54:25 -0700
commit3b8b3c98b0c3cd47b29cc4fd966ab4cce9840d82 (patch)
treef4c5b1a5fb656819b6a2c93fe2ef0dc19d762a5f /gcc/fixincludes
parentf87ef537dd0024b45c28e9eb99393ff747519313 (diff)
downloadgcc-3b8b3c98b0c3cd47b29cc4fd966ab4cce9840d82.zip
gcc-3b8b3c98b0c3cd47b29cc4fd966ab4cce9840d82.tar.gz
gcc-3b8b3c98b0c3cd47b29cc4fd966ab4cce9840d82.tar.bz2
({sparc,sun3,sun3x,sun4,sun4c,sun4m}/asm_linkage.h,
{sun4c,sun4m}/debug/asm_linkage.h: Replace /**/ with ##. From-SVN: r5514
Diffstat (limited to 'gcc/fixincludes')
-rwxr-xr-xgcc/fixincludes20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/fixincludes b/gcc/fixincludes
index 655495b..313690f 100755
--- a/gcc/fixincludes
+++ b/gcc/fixincludes
@@ -1143,6 +1143,26 @@ if test -d /etc/conf/kconfig.d \
sed '/OPEN_MAX/s,/\* Max, Max,' < ${LIB}/$file. >${LIB}/$file
fi
+# These files in Sun OS 4.x use /**/ to concatenate tokens.
+for file in sparc/asm_linkage.h sun3/asm_linkage.h sun3x/asm_linkage.h \
+ sun4/asm_linkage.h sun4c/asm_linkage.h sun4m/asm_linkage.h \
+ sun4c/debug/asm_linkage.h sun4m/debug/asm_linkage.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`