===================================================================
@@ -19,6 +19,12 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses/.
+# If you want to build GCC with the Graphite loop optimizations,
+# set GRAPHITE_LOOP_OPT=yes to download optional prerequisties
+# ISL Library and CLooG.
+GRAPHITE_LOOP_OPT=no
+
+# Necessary to build GCC.
MPFR=mpfr-2.4.2
GMP=gmp-4.3.2
MPC=mpc-0.8.1
@@ -35,4 +41,16 @@
tar xzf $MPC.tar.gz || exit 1
ln -sf $MPC mpc || exit 1
-rm $MPFR.tar.bz2 $GMP.tar.bz2 $MPC.tar.gz || exit 1
+# Necessary to build GCC with the Graphite loop optimizations.
+if [ "$GRAPHITE_LOOP_OPT" = "yes" ] ; then
+ ISL=isl-0.11.1
+ CLOOG=cloog-0.18.0
+
+ wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$ISL.tar.bz2 || exit 1
+ tar xjf $ISL.tar.bz2 || exit 1
+ ln -sf $ISL isl || exit 1
+
+ wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$CLOOG.tar.gz || exit 1
+ tar xzf $CLOOG.tar.gz || exit 1
+ ln -sf $CLOOG cloog || exit 1
+fi