Re: [Patch] Extend script ./contrib/download_prerequisites usage for isl and cloog

2013-05-24 Thread Chung-Ju Wu
2013/5/23 Chung-Ju Wu :
>
> The patch is revised accordingly as follows:
>   - The tar files, including gmp/mpfr/mpc/isl/cloog, are left under directory.
>   - In the shell script, we should use '=' as equality comparison operator.
>
> Thanks for the review comments and Paolo's approval.
> I will commit it tomorrow as long as there are no other comments or 
> objections.
>

Committed as Rev. 199297.
http://gcc.gnu.org/viewcvs/gcc?view=revision&revision=199297

Thanks again for the approval and comments.


Best regards,
jasonwucj


Re: [Patch] Extend script ./contrib/download_prerequisites usage for isl and cloog

2013-05-22 Thread Chung-Ju Wu
2013/5/23 Bernhard Reutner-Fischer :
>
> On 22 May 2013 10:08, "Paolo Bonzini"  wrote:
>>
>> Il 18/05/2013 04:37, Chung-Ju Wu ha scritto:
>> > Hi all,
>> >
[...]
>> > +# Necessary to build GCC with the Graphite loop optimizations.
>> > +if [ "$GRAPHITE_LOOP_OPT" == "yes" ] ; then
>
> s/==/=/g
>
> Thanks,
>
[...]
>> > +
>> > +  rm $ISL.tar.bz2 $CLOOG.tar.gz || exit 1
>>
>> I would leave the tar files in place.  Otherwise ok.
>>
>> Paolo
>>

The patch is revised accordingly as follows:
  - The tar files, including gmp/mpfr/mpc/isl/cloog, are left under directory.
  - In the shell script, we should use '=' as equality comparison operator.

Thanks for the review comments and Paolo's approval.
I will commit it tomorrow as long as there are no other comments or objections.


contrib/ChangeLog

2013-05-23  Chung-Ju Wu  

* download_prerequisites: Download isl and cloog conditionally.


Index: contrib/download_prerequisites
===
--- contrib/download_prerequisites  (revision 199233)
+++ contrib/download_prerequisites  (working copy)
@@ -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



Best regards,
jasonwucj


Re: [Patch] Extend script ./contrib/download_prerequisites usage for isl and cloog

2013-05-22 Thread Paolo Bonzini
Il 18/05/2013 04:37, Chung-Ju Wu ha scritto:
> Hi all,
> 
> Using current trunk repository, it is now able to build
> compiler with in-tree isl and cloog.
> 
> This patch is to extend ./contrib/download_prerequisites
> usage to download isl and cloog conditionally in case
> people would like to build gcc with graphite loop optimizations.
> 
> OK for the trunk?
> 
> 
> contrib/ChangeLog
> 
> 2013-05-18  Chung-Ju Wu  
> 
> * download_prerequisites: Download isl and cloog conditionally.
> 
> 
> 
> Index: contrib/download_prerequisites
> ===
> --- contrib/download_prerequisites  (revision 199006)
> +++ contrib/download_prerequisites  (working copy)
> @@ -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
> @@ -36,3 +42,19 @@
>  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
> +
> +  rm $ISL.tar.bz2 $CLOOG.tar.gz || exit 1

I would leave the tar files in place.  Otherwise ok.

Paolo

> +fi
> 
> 
> Best regards,
> jasonwucj
> 



[Patch] Extend script ./contrib/download_prerequisites usage for isl and cloog

2013-05-17 Thread Chung-Ju Wu
Hi all,

Using current trunk repository, it is now able to build
compiler with in-tree isl and cloog.

This patch is to extend ./contrib/download_prerequisites
usage to download isl and cloog conditionally in case
people would like to build gcc with graphite loop optimizations.

OK for the trunk?


contrib/ChangeLog

2013-05-18  Chung-Ju Wu  

* download_prerequisites: Download isl and cloog conditionally.



Index: contrib/download_prerequisites
===
--- contrib/download_prerequisites  (revision 199006)
+++ contrib/download_prerequisites  (working copy)
@@ -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
@@ -36,3 +42,19 @@
 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
+
+  rm $ISL.tar.bz2 $CLOOG.tar.gz || exit 1
+fi


Best regards,
jasonwucj