@@ -646,7 +646,6 @@ extra_host_libiberty_configure_flags
646
646
clooginc
647
647
clooglibs
648
648
islinc
649
- isllibs
650
649
poststage1_ldflags
651
650
poststage1_libs
652
651
stage1_libs
@@ -768,11 +767,11 @@ with_stage1_ldflags
768
767
with_stage1_libs
769
768
with_boot_libs
770
769
with_boot_ldflags
770
+ with_cloog
771
771
with_isl
772
772
with_isl_include
773
773
with_isl_lib
774
774
enable_isl_version_check
775
- with_cloog
776
775
with_cloog_include
777
776
with_cloog_lib
778
777
enable_cloog_version_check
@@ -1521,16 +1520,16 @@ Optional Packages:
1521
1520
--with-boot-libs=LIBS libraries for stage2 and later
1522
1521
--with-boot-ldflags=FLAGS
1523
1522
linker flags for stage2 and later
1523
+ --with-cloog=PATH Specify prefix directory for the installed CLooG-ISL
1524
+ package. Equivalent to
1525
+ --with-cloog-include=PATH/include plus
1526
+ --with-cloog-lib=PATH/lib
1524
1527
--with-isl=PATH Specify prefix directory for the installed ISL
1525
1528
package. Equivalent to
1526
1529
--with-isl-include=PATH/include plus
1527
1530
--with-isl-lib=PATH/lib
1528
1531
--with-isl-include=PATH Specify directory for installed ISL include files
1529
1532
--with-isl-lib=PATH Specify the directory for the installed ISL library
1530
- --with-cloog=PATH Specify prefix directory for the installed CLooG-PPL
1531
- package. Equivalent to
1532
- --with-cloog-include=PATH/include plus
1533
- --with-cloog-lib=PATH/lib
1534
1533
--with-cloog-include=PATH
1535
1534
Specify directory for installed CLooG include files
1536
1535
--with-cloog-lib=PATH Specify the directory for the installed CLooG
@@ -3163,6 +3162,13 @@ case "${target}" in
3163
3162
;;
3164
3163
esac
3165
3164
3165
+ # Disable libquadmath for some systems.
3166
+ case " ${target} " in
3167
+ avr-* -* )
3168
+ noconfigdirs=" $noconfigdirs target-libquadmath"
3169
+ ;;
3170
+ esac
3171
+
3166
3172
# Disable libstdc++-v3 for some systems.
3167
3173
case " ${target} " in
3168
3174
* -* -vxworks* )
@@ -3503,6 +3509,13 @@ case "${target}" in
3503
3509
arm-* -riscix* )
3504
3510
noconfigdirs=" $noconfigdirs ld target-libgloss"
3505
3511
;;
3512
+ avr-* -rtems* )
3513
+ ;;
3514
+ avr-* -* )
3515
+ if test x${with_avrlibc} ! = xno; then
3516
+ noconfigdirs=" $noconfigdirs target-newlib target-libgloss"
3517
+ fi
3518
+ ;;
3506
3519
c4x-* -* | tic4x-* -* )
3507
3520
noconfigdirs=" $noconfigdirs target-libgloss"
3508
3521
;;
@@ -5315,7 +5328,7 @@ main ()
5315
5328
5316
5329
#define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
5317
5330
#define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
5318
- #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,0 )
5331
+ #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3 )
5319
5332
choke me
5320
5333
#endif
5321
5334
@@ -5612,7 +5625,15 @@ fi
5612
5625
5613
5626
5614
5627
5615
- # Check for ISL
5628
+ # GCC GRAPHITE dependences, ISL and CLOOG which in turn requires ISL.
5629
+ # Basic setup is inlined here, actual checks are in config/cloog.m4 and
5630
+ # config/isl.m4
5631
+
5632
+
5633
+ # Check whether --with-cloog was given.
5634
+ if test " ${with_cloog+set} " = set ; then :
5635
+ withval=$with_cloog ;
5636
+ fi
5616
5637
5617
5638
5618
5639
# Check whether --with-isl was given.
@@ -5621,6 +5642,13 @@ if test "${with_isl+set}" = set; then :
5621
5642
fi
5622
5643
5623
5644
5645
+ # Treat either --without-cloog or --without-isl as a request to disable
5646
+ # GRAPHITE support and skip all following checks.
5647
+ if test " x$with_isl " ! = " xno" &&
5648
+ test " x$with_cloog " ! = " xno" ; then
5649
+ # Check for ISL
5650
+
5651
+
5624
5652
# Check whether --with-isl-include was given.
5625
5653
if test " ${with_isl_include+set} " = set ; then :
5626
5654
withval=$with_isl_include ;
@@ -5667,14 +5695,8 @@ fi
5667
5695
ENABLE_ISL_CHECK=no
5668
5696
fi
5669
5697
5670
- isllibs=" ${isllibs} -lisl"
5671
-
5672
5698
5673
5699
5674
-
5675
-
5676
- if test " x$with_isl " ! = " xno" ; then
5677
-
5678
5700
if test " ${ENABLE_ISL_CHECK} " = yes ; then
5679
5701
_isl_saved_CFLAGS=$CFLAGS
5680
5702
_isl_saved_LDFLAGS=$LDFLAGS
@@ -5730,7 +5752,6 @@ $as_echo "$gcc_cv_isl" >&6; }
5730
5752
5731
5753
5732
5754
5733
-
5734
5755
if test " x${with_isl} " = xno; then
5735
5756
graphite_requested=no
5736
5757
elif test " x${with_isl} " ! = x \
@@ -5756,15 +5777,9 @@ $as_echo "$gcc_cv_isl" >&6; }
5756
5777
fi
5757
5778
5758
5779
5759
- fi
5760
-
5761
- # Check for CLOOG
5762
-
5763
5780
5764
- # Check whether --with-cloog was given.
5765
- if test " ${with_cloog+set} " = set ; then :
5766
- withval=$with_cloog ;
5767
- fi
5781
+ if test " x$gcc_cv_isl " ! = " xno" ; then
5782
+ # Check for CLOOG
5768
5783
5769
5784
5770
5785
# Check whether --with-cloog-include was given.
@@ -5813,16 +5828,9 @@ fi
5813
5828
fi
5814
5829
5815
5830
clooginc=" -DCLOOG_INT_GMP ${clooginc} "
5816
- clooglibs=" ${clooglibs} -lcloog-isl ${isllibs} "
5817
-
5818
-
5819
-
5831
+ clooglibs=" ${clooglibs} -lcloog-isl ${isllibs} -lisl"
5820
5832
5821
5833
5822
- if test " x$isllibs " = x && test " x$islinc " = x; then
5823
- clooglibs=
5824
- clooginc=
5825
- elif test " x$with_cloog " ! = " xno" ; then
5826
5834
5827
5835
5828
5836
@@ -5894,18 +5902,30 @@ $as_echo "$gcc_cv_cloog" >&6; }
5894
5902
&& test " x${clooglibs} " = x \
5895
5903
&& test " x${clooginc} " = x ; then
5896
5904
5897
- as_fn_error " Unable to find a usable CLooG. See config.log for details." " $LINENO " 5
5905
+ as_fn_error " Unable to find a usable CLooG. See config.log for details." " $LINENO " 5
5898
5906
fi
5899
5907
5900
5908
5909
+ fi
5901
5910
fi
5902
5911
5903
5912
# If either the ISL or the CLooG check failed, disable builds of in-tree
5904
5913
# variants of both
5905
- if test " x$clooglibs " = x && test " x$clooginc " = x; then
5914
+ if test " x$with_isl " = xno ||
5915
+ test " x$with_cloog " = xno ||
5916
+ test " x$gcc_cv_cloog " = xno ||
5917
+ test " x$gcc_cv_isl " = xno; then
5906
5918
noconfigdirs=" $noconfigdirs cloog isl"
5919
+ islinc=
5920
+ clooginc=
5921
+ clooglibs=
5907
5922
fi
5908
5923
5924
+
5925
+
5926
+
5927
+
5928
+
5909
5929
# Check for LTO support.
5910
5930
# Check whether --enable-lto was given.
5911
5931
if test " ${enable_lto+set} " = set ; then :
@@ -6109,6 +6129,7 @@ if test -d ${srcdir}/gcc; then
6109
6129
boot_language=yes
6110
6130
fi
6111
6131
6132
+ add_this_lang=no
6112
6133
case ,${enable_languages} , in
6113
6134
* ,${language} ,* )
6114
6135
# Language was explicitly selected; include it
@@ -6119,10 +6140,9 @@ if test -d ${srcdir}/gcc; then
6119
6140
;;
6120
6141
* ,all,* )
6121
6142
# 'all' was selected, select it if it is a default language
6122
- add_this_lang=${build_by_default}
6123
- ;;
6124
- * )
6125
- add_this_lang=no
6143
+ if test " $language " ! = " c" ; then
6144
+ add_this_lang=${build_by_default}
6145
+ fi
6126
6146
;;
6127
6147
esac
6128
6148
0 commit comments