summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-24 15:23:44 +0000
committerjasonwucj <jasonwucj@138bc75d-0d04-0410-961f-82ee72b054a4>2013-05-24 15:23:44 +0000
commit93469932e08ee9712db6c559f1ca0a6d8cf574d4 (patch)
treeb32e2775132c85f58ac10f0ac646b0e2a4bf41a4 /contrib
parent601ee7b3581bed05a7b6ecb5acd63673468588a1 (diff)
downloadgcc-93469932e08ee9712db6c559f1ca0a6d8cf574d4.tar.gz
2013-05-24 Chung-Ju Wu <jasonwucj@gmail.com>
* download_prerequisites: Download isl and cloog conditionally. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199297 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ChangeLog4
-rwxr-xr-xcontrib/download_prerequisites20
2 files changed, 23 insertions, 1 deletions
diff --git a/contrib/ChangeLog b/contrib/ChangeLog
index e563275dc95..7efefd49763 100644
--- a/contrib/ChangeLog
+++ b/contrib/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-24 Chung-Ju Wu <jasonwucj@gmail.com>
+
+ * download_prerequisites: Download isl and cloog conditionally.
+
2013-05-21 David Malcolm <dmalcolm@redhat.com>
* repro_fail: filter out "-ignore SIGHUP" from the spawn lines
diff --git a/contrib/download_prerequisites b/contrib/download_prerequisites
index f86f5612135..dd2e9f885fc 100755
--- a/contrib/download_prerequisites
+++ b/contrib/download_prerequisites
@@ -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=yes
+
+# Necessary to build GCC.
MPFR=mpfr-2.4.2
GMP=gmp-4.3.2
MPC=mpc-0.8.1
@@ -35,4 +41,16 @@ wget ftp://gcc.gnu.org/pub/gcc/infrastructure/$MPC.tar.gz || exit 1
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