#! /bin/sh
# Make GCC patch for GPC
# J.J. van der Heijden <J.J.vanderHeijden@student.utwente.nl>
# Last modified: 1 Jun 1997
# Peter Gerwinski <peter.gerwinski@uni.essen.de>
# Last modified: 17 Jun 1997

GCC_VERSION=2.7.2.1
GPC_VERSION=2.0

cat > gcc-$GCC_VERSION.patch << EOF
Changes for GCC version $GCC_VERSION for GNU Pascal $GPC_VERSION

Changes in files you can reconstruct with Bison, etags, makeinfo, and
TeX have been omitted.  Some of these files are updated just by
building the compiler.  You can update rest of these files by
executing this command

   make TAGS info dvi -f Makefile.in

in the directory of GCC sources, provided the necessary tools
(etags, makeinfo, TeX and texi2dvi) are installed.

Before applying these diffs, go to the directory gcc-$GCC_VERSION and use the command

    patch -p1

feeding it the following diffs as input.

EOF

GCC_PATCHED="gcc.c convert.c dbxout.c expr.c fold-const.c function.c optabs.c stor-layout.c toplev.c"

for f in $GCC_PATCHED
do
  diff -U3 gcc-$GCC_VERSION/$f.orig gcc-$GCC_VERSION/$f >> gcc-$GCC_VERSION.patch
done

exit 0
