[llvm-commits] [llvm-gcc4] svn:Changes for ARM bootstrap.

Jim Laskey jlaskey at apple.com
Mon Nov 27 19:14:51 PST 2006


Changes for ARM bootstrap - prepared by Rafael Espindola.


Index: configure
===================================================================
--- configure	(revision 120625)
+++ configure	(working copy)
@@ -1269,6 +1269,10 @@
    arm-*-elf* | strongarm-*-elf* | xscale-*-elf* | arm*-*-eabi* )
      noconfigdirs="$noconfigdirs target-libffi target-qthreads"
      ;;
+   arm*-*-linux-gnueabi)
+    noconfigdirs="$noconfigdirs target-libffi target-qthreads"
+    noconfigdirs="$noconfigdirs target-libjava target-libobjc"
+    ;;
    arm*-*-symbianelf*)
      noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
      ;;
@@ -1812,7 +1816,7 @@
    # Extract the first word of "gcc", so it can be a program name  
with args.
set dummy gcc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1816: checking for $ac_word" >&5
+echo "configure:1820: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1842,7 +1846,7 @@
    # Extract the first word of "cc", so it can be a program name  
with args.
set dummy cc; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1846: checking for $ac_word" >&5
+echo "configure:1850: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1893,7 +1897,7 @@
        # Extract the first word of "cl", so it can be a program name  
with args.
set dummy cl; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:1897: checking for $ac_word" >&5
+echo "configure:1901: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1925,7 +1929,7 @@
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS)  
works""... $ac_c" 1>&6
-echo "configure:1929: checking whether the C compiler ($CC $CFLAGS  
$LDFLAGS) works" >&5
+echo "configure:1933: checking whether the C compiler ($CC $CFLAGS  
$LDFLAGS) works" >&5
ac_ext=c
# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp  
options.
@@ -1936,12 +1940,12 @@
cat > conftest.$ac_ext << EOF
-#line 1940 "configure"
+#line 1944 "configure"
#include "confdefs.h"
main(){return(0);}
EOF
-if { (eval echo configure:1945: \"$ac_link\") 1>&5; (eval $ac_link)  
2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:1949: \"$ac_link\") 1>&5; (eval $ac_link)  
2>&5; } && test -s conftest${ac_exeext}; then
    ac_cv_prog_cc_works=yes
    # If we can't run a trivial program, we are probably using a  
cross compiler.
    if (./conftest; exit) 2>/dev/null; then
@@ -1967,12 +1971,12 @@
    { echo "configure: error: installation or configuration problem:  
C compiler cannot create executables." 1>&2; exit 1; }
fi
echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is  
a cross-compiler""... $ac_c" 1>&6
-echo "configure:1971: checking whether the C compiler ($CC $CFLAGS  
$LDFLAGS) is a cross-compiler" >&5
+echo "configure:1975: checking whether the C compiler ($CC $CFLAGS  
$LDFLAGS) is a cross-compiler" >&5
echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
cross_compiling=$ac_cv_prog_cc_cross
echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
-echo "configure:1976: checking whether we are using GNU C" >&5
+echo "configure:1980: checking whether we are using GNU C" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -1981,7 +1985,7 @@
    yes;
#endif
EOF
-if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1985:  
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null  
2>&1; then
+if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1989:  
\"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null  
2>&1; then
    ac_cv_prog_gcc=yes
else
    ac_cv_prog_gcc=no
@@ -2000,7 +2004,7 @@
ac_save_CFLAGS="$CFLAGS"
CFLAGS=
echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
-echo "configure:2004: checking whether ${CC-cc} accepts -g" >&5
+echo "configure:2008: checking whether ${CC-cc} accepts -g" >&5
if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2067,7 +2071,7 @@
# Extract the first word of "${ac_tool_prefix}gnatbind", so it can be  
a program name with args.
set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2071: checking for $ac_word" >&5
+echo "configure:2075: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2099,7 +2103,7 @@
    # Extract the first word of "gnatbind", so it can be a program  
name with args.
set dummy gnatbind; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2103: checking for $ac_word" >&5
+echo "configure:2107: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_GNATBIND'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2132,7 +2136,7 @@
fi
echo $ac_n "checking whether compiler driver understands Ada""...  
$ac_c" 1>&6
-echo "configure:2136: checking whether compiler driver understands  
Ada" >&5
+echo "configure:2140: checking whether compiler driver understands  
Ada" >&5
if eval "test \"`echo '$''{'acx_cv_cc_gcc_supports_ada'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2164,7 +2168,7 @@
fi
echo $ac_n "checking how to compare bootstrapped objects""... $ac_c"  
1>&6
-echo "configure:2168: checking how to compare bootstrapped objects" >&5
+echo "configure:2172: checking how to compare bootstrapped objects" >&5
if eval "test \"`echo '$''{'gcc_cv_prog_cmp_skip'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2262,9 +2266,9 @@
CFLAGS="$CFLAGS $gmpinc"
# Check GMP actually works
echo $ac_n "checking for correct version of gmp.h""... $ac_c" 1>&6
-echo "configure:2266: checking for correct version of gmp.h" >&5
+echo "configure:2270: checking for correct version of gmp.h" >&5
cat > conftest.$ac_ext <<EOF
-#line 2268 "configure"
+#line 2272 "configure"
#include "confdefs.h"
#include "gmp.h"
int main() {
@@ -2275,7 +2279,7 @@
; return 0; }
EOF
-if { (eval echo configure:2279: \"$ac_compile\") 1>&5; (eval  
$ac_compile) 2>&5; }; then
+if { (eval echo configure:2283: \"$ac_compile\") 1>&5; (eval  
$ac_compile) 2>&5; }; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
else
@@ -2288,12 +2292,12 @@
if test x"$have_gmp" = xyes; then
    echo $ac_n "checking for MPFR""... $ac_c" 1>&6
-echo "configure:2292: checking for MPFR" >&5
+echo "configure:2296: checking for MPFR" >&5
    saved_LIBS="$LIBS"
    LIBS="$LIBS $gmplibs"
    cat > conftest.$ac_ext <<EOF
-#line 2297 "configure"
+#line 2301 "configure"
#include "confdefs.h"
#include <gmp.h>
#include <mpfr.h>
@@ -2301,7 +2305,7 @@
mpfr_t n; mpfr_init(n);
; return 0; }
EOF
-if { (eval echo configure:2305: \"$ac_link\") 1>&5; (eval $ac_link)  
2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:2309: \"$ac_link\") 1>&5; (eval $ac_link)  
2>&5; } && test -s conftest${ac_exeext}; then
    rm -rf conftest*
    echo "$ac_t""yes" 1>&6
else
@@ -2788,7 +2792,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2792: checking for $ac_word" >&5
+echo "configure:2796: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_BISON'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2823,7 +2827,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2827: checking for $ac_word" >&5
+echo "configure:2831: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_YACC'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2858,7 +2862,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2862: checking for $ac_word" >&5
+echo "configure:2866: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_M4'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2893,7 +2897,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2897: checking for $ac_word" >&5
+echo "configure:2901: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_FLEX'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2928,7 +2932,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2932: checking for $ac_word" >&5
+echo "configure:2936: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_LEX'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -2963,7 +2967,7 @@
# Extract the first word of "$ac_prog", so it can be a program name  
with args.
set dummy $ac_prog; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:2967: checking for $ac_word" >&5
+echo "configure:2971: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_CONFIGURED_MAKEINFO'+set}'`\"  
= set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3610,7 +3614,7 @@
    # Extract the first word of "${ncn_tool_prefix}ar", so it can be  
a program name with args.
set dummy ${ncn_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3614: checking for $ac_word" >&5
+echo "configure:3618: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AR'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3643,7 +3647,7 @@
      # Extract the first word of "ar", so it can be a program name  
with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3647: checking for $ac_word" >&5
+echo "configure:3651: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AR'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3682,7 +3686,7 @@
    # Extract the first word of "${ncn_tool_prefix}as", so it can be  
a program name with args.
set dummy ${ncn_tool_prefix}as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3686: checking for $ac_word" >&5
+echo "configure:3690: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3715,7 +3719,7 @@
      # Extract the first word of "as", so it can be a program name  
with args.
set dummy as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3719: checking for $ac_word" >&5
+echo "configure:3723: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_AS'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3754,7 +3758,7 @@
    # Extract the first word of "${ncn_tool_prefix}dlltool", so it  
can be a program name with args.
set dummy ${ncn_tool_prefix}dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3758: checking for $ac_word" >&5
+echo "configure:3762: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3787,7 +3791,7 @@
      # Extract the first word of "dlltool", so it can be a program  
name with args.
set dummy dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3791: checking for $ac_word" >&5
+echo "configure:3795: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_DLLTOOL'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3826,7 +3830,7 @@
    # Extract the first word of "${ncn_tool_prefix}ld", so it can be  
a program name with args.
set dummy ${ncn_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3830: checking for $ac_word" >&5
+echo "configure:3834: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_LD'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3859,7 +3863,7 @@
      # Extract the first word of "ld", so it can be a program name  
with args.
set dummy ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3863: checking for $ac_word" >&5
+echo "configure:3867: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_LD'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3898,7 +3902,7 @@
    # Extract the first word of "${ncn_tool_prefix}nm", so it can be  
a program name with args.
set dummy ${ncn_tool_prefix}nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3902: checking for $ac_word" >&5
+echo "configure:3906: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_NM'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3931,7 +3935,7 @@
      # Extract the first word of "nm", so it can be a program name  
with args.
set dummy nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3935: checking for $ac_word" >&5
+echo "configure:3939: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_NM'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -3970,7 +3974,7 @@
    # Extract the first word of "${ncn_tool_prefix}ranlib", so it can  
be a program name with args.
set dummy ${ncn_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:3974: checking for $ac_word" >&5
+echo "configure:3978: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4003,7 +4007,7 @@
      # Extract the first word of "ranlib", so it can be a program  
name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4007: checking for $ac_word" >&5
+echo "configure:4011: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_RANLIB'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4042,7 +4046,7 @@
    # Extract the first word of "${ncn_tool_prefix}windres", so it  
can be a program name with args.
set dummy ${ncn_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4046: checking for $ac_word" >&5
+echo "configure:4050: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_WINDRES'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4075,7 +4079,7 @@
      # Extract the first word of "windres", so it can be a program  
name with args.
set dummy windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4079: checking for $ac_word" >&5
+echo "configure:4083: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_WINDRES'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4114,7 +4118,7 @@
    # Extract the first word of "${ncn_tool_prefix}objcopy", so it  
can be a program name with args.
set dummy ${ncn_tool_prefix}objcopy; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4118: checking for $ac_word" >&5
+echo "configure:4122: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_OBJCOPY'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4147,7 +4151,7 @@
      # Extract the first word of "objcopy", so it can be a program  
name with args.
set dummy objcopy; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4151: checking for $ac_word" >&5
+echo "configure:4155: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJCOPY'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4186,7 +4190,7 @@
    # Extract the first word of "${ncn_tool_prefix}objdump", so it  
can be a program name with args.
set dummy ${ncn_tool_prefix}objdump; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4190: checking for $ac_word" >&5
+echo "configure:4194: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4219,7 +4223,7 @@
      # Extract the first word of "objdump", so it can be a program  
name with args.
set dummy objdump; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4223: checking for $ac_word" >&5
+echo "configure:4227: checking for $ac_word" >&5
if eval "test \"`echo '$''{'ac_cv_prog_ncn_cv_OBJDUMP'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4265,7 +4269,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}ar", so it  
can be a program name with args.
set dummy ${ncn_target_tool_prefix}ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4269: checking for $ac_word" >&5
+echo "configure:4273: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4298,7 +4302,7 @@
      # Extract the first word of "ar", so it can be a program name  
with args.
set dummy ar; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4302: checking for $ac_word" >&5
+echo "configure:4306: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_AR_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4337,7 +4341,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}as", so it  
can be a program name with args.
set dummy ${ncn_target_tool_prefix}as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4341: checking for $ac_word" >&5
+echo "configure:4345: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4370,7 +4374,7 @@
      # Extract the first word of "as", so it can be a program name  
with args.
set dummy as; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4374: checking for $ac_word" >&5
+echo "configure:4378: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_AS_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4409,7 +4413,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}dlltool",  
so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4413: checking for $ac_word" >&5
+echo "configure:4417: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4442,7 +4446,7 @@
      # Extract the first word of "dlltool", so it can be a program  
name with args.
set dummy dlltool; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4446: checking for $ac_word" >&5
+echo "configure:4450: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_DLLTOOL_FOR_TARGET'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4481,7 +4485,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}ld", so it  
can be a program name with args.
set dummy ${ncn_target_tool_prefix}ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4485: checking for $ac_word" >&5
+echo "configure:4489: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4514,7 +4518,7 @@
      # Extract the first word of "ld", so it can be a program name  
with args.
set dummy ld; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4518: checking for $ac_word" >&5
+echo "configure:4522: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_LD_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4553,7 +4557,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}lipo", so  
it can be a program name with args.
set dummy ${ncn_target_tool_prefix}lipo; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4557: checking for $ac_word" >&5
+echo "configure:4561: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_LIPO_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4586,7 +4590,7 @@
      # Extract the first word of "lipo", so it can be a program name  
with args.
set dummy lipo; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4590: checking for $ac_word" >&5
+echo "configure:4594: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_LIPO_FOR_TARGET'+set}'`\" = set";  
then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4625,7 +4629,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}nm", so it  
can be a program name with args.
set dummy ${ncn_target_tool_prefix}nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4629: checking for $ac_word" >&5
+echo "configure:4633: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4658,7 +4662,7 @@
      # Extract the first word of "nm", so it can be a program name  
with args.
set dummy nm; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4662: checking for $ac_word" >&5
+echo "configure:4666: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_NM_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4697,7 +4701,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}ranlib", so  
it can be a program name with args.
set dummy ${ncn_target_tool_prefix}ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4701: checking for $ac_word" >&5
+echo "configure:4705: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4730,7 +4734,7 @@
      # Extract the first word of "ranlib", so it can be a program  
name with args.
set dummy ranlib; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4734: checking for $ac_word" >&5
+echo "configure:4738: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_RANLIB_FOR_TARGET'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4769,7 +4773,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}strip", so  
it can be a program name with args.
set dummy ${ncn_target_tool_prefix}strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4773: checking for $ac_word" >&5
+echo "configure:4777: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_STRIP_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4802,7 +4806,7 @@
      # Extract the first word of "strip", so it can be a program  
name with args.
set dummy strip; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4806: checking for $ac_word" >&5
+echo "configure:4810: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_STRIP_FOR_TARGET'+set}'`\" = set";  
then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4841,7 +4845,7 @@
    # Extract the first word of "${ncn_target_tool_prefix}windres",  
so it can be a program name with args.
set dummy ${ncn_target_tool_prefix}windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4845: checking for $ac_word" >&5
+echo "configure:4849: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4874,7 +4878,7 @@
      # Extract the first word of "windres", so it can be a program  
name with args.
set dummy windres; ac_word=$2
echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4878: checking for $ac_word" >&5
+echo "configure:4882: checking for $ac_word" >&5
if eval "test \"`echo  
'$''{'ac_cv_prog_ncn_cv_CONFIGURED_WINDRES_FOR_TARGET'+set}'`\" =  
set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -4965,7 +4969,7 @@
NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
echo $ac_n "checking whether to enable maintainer-specific portions  
of Makefiles""... $ac_c" 1>&6
-echo "configure:4969: checking whether to enable maintainer-specific  
portions of Makefiles" >&5
+echo "configure:4973: checking whether to enable maintainer-specific  
portions of Makefiles" >&5
# Check whether --enable-maintainer-mode or --disable-maintainer-mode  
was given.
if test "${enable_maintainer_mode+set}" = set; then
    enableval="$enable_maintainer_mode"
@@ -5012,7 +5016,7 @@
# gcc for stageN-gcc and stagePREV-gcc for stage(N-1).  In case this  
is not
# possible, however, we can resort to mv.
echo $ac_n "checking if symbolic links between directories work""...  
$ac_c" 1>&6
-echo "configure:5016: checking if symbolic links between directories  
work" >&5
+echo "configure:5020: checking if symbolic links between directories  
work" >&5
if eval "test \"`echo '$''{'gcc_cv_prog_ln_s_dir'+set}'`\" = set"; then
    echo $ac_n "(cached) $ac_c" 1>&6
else
Index: gcc/dwarf2asm.c
===================================================================
--- gcc/dwarf2asm.c	(revision 120625)
+++ gcc/dwarf2asm.c	(working copy)
@@ -135,7 +135,10 @@
     special relocations for this that we must use.  */
void
-dw2_asm_output_offset (int size, const char *label, const char * base,
+/* APPLE LOCAL begin LLVM */
+dw2_asm_output_offset (int size, const char *label,
+                       const char * base ATTRIBUTE_UNUSED,
+/* APPLE LOCAL end LLVM */
		       const char *comment, ...)
/* APPLE LOCAL end mainline 2006-03-16 dwarf 4383509 */
{
Index: gcc/c-common.c
===================================================================
--- gcc/c-common.c	(revision 120625)
+++ gcc/c-common.c	(working copy)
@@ -6478,7 +6478,9 @@
/* Default value of the constraint table.  */
/* ??? This should be in defaults.h or a CW asm specific header.  */
#ifndef TARGET_IASM_OP_CONSTRAINT
-#define TARGET_IASM_OP_CONSTRAINT {}
+/* APPLE LOCAL begin LLVM */
+#define TARGET_IASM_OP_CONSTRAINT
+/* APPLE LOCAL end LLVM */
#endif
/* Comparison function for bsearch to find an opcode/argument number
@@ -6558,6 +6560,9 @@
    /* This table must be sorted.  */
    const struct iasm_op_constraint db[] = {
      TARGET_IASM_OP_CONSTRAINT
+    /* APPLE LOCAL begin LLVM */
+    { "", 0, "" }
+    /* APPLE LOCAL end LLVM */
    };
    struct iasm_op_constraint key;
    struct iasm_op_constraint *r;
@@ -6569,7 +6574,9 @@
      {
        size_t i;
        once = 1;
-      for (i=0; i < sizeof (db) / sizeof(db[0]) - 1; ++i)
+      /* APPLE LOCAL begin LLVM */
+      for (i=0; i < sizeof (db) / sizeof(db[0]) - 2; ++i)
+      /* APPLE LOCAL end LLVM */
	gcc_assert (iasm_op_comp (&db[i+1], &db[i]) >= 0);
      }
#endif
@@ -6579,7 +6586,9 @@

    TARGET_IASM_REORDER_ARG(opcode, key.argnum, num_args, argnum);
-  r = bsearch (&key, db, sizeof (db) / sizeof (db[0]), sizeof (db 
[0]), iasm_op_comp);
+  /* APPLE LOCAL begin LLVM */
+  r = bsearch (&key, db, sizeof (db) / sizeof (db[0]) - 1, sizeof (db 
[0]), iasm_op_comp);
+  /* APPLE LOCAL end LLVM */
    IASM_SYNTH_CONSTRAINTS(r, argnum, num_args, db);
@@ -6635,9 +6644,13 @@
		  tree *outputsp, tree *inputsp, tree *uses, unsigned num_args,
		  iasm_md_extra_info *e)
{
-  const char *s;
+  /* APPLE LOCAL begin LLVM */
+  const char *s = NULL;
+  /* APPLE LOCAL end LLVM */
    bool was_output = true;
-  tree str, one;
+  /* APPLE LOCAL begin LLVM */
+  tree str = NULL, one;
+  /* APPLE LOCAL end LLVM */
    tree var = e->dat[op_num].var;
    unsigned argnum = e->dat[op_num].argnum;
    /* must_be_reg is true, iff we know the operand must be a  
register.  */
Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc	(revision 120625)
+++ gcc/config.gcc	(working copy)
@@ -677,10 +677,30 @@
	use_collect2=yes
	;;
arm*-*-linux*)			# ARM GNU/Linux with ELF
-	tm_file="dbxelf.h elfos.h linux.h arm/elf.h  arm/linux-gas.h arm/ 
linux-elf.h arm/aout.h arm/arm.h"
-	tmake_file="${tmake_file} arm/t-arm arm/t-linux"
+  # APPLE LOCAL begin LLVM
+	tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/ 
linux-elf.h"
+	tmake_file="${tmake_file} t-linux arm/t-arm"
+  # APPLE LOCAL end LLVM
	extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
	gnu_ld=yes
+  # APPLE LOCAL begin LLVM
+	case ${target} in
+	arm*-*-linux-gnueabi)
+	    tm_file="$tm_file arm/bpabi.h arm/linux-eabi.h"
+	    tmake_file="$tmake_file arm/t-arm-elf arm/t-bpabi arm/t-linux- 
eabi"
+  	    # The BPABI long long divmod functions return a 128-bit value in
+	    # registers r0-r3.  Correctly modeling that requires the use of
+	    # TImode.
+	    need_64bit_hwint=yes
+	    # The EABI requires the use of __cxa_atexit.
+	    default_use_cxa_atexit=yes
+	    ;;
+	*)
+	    tmake_file="$tmake_file arm/t-linux"
+	    ;;
+	esac
+	tm_file="$tm_file arm/aout.h arm/arm.h"
+  # APPLE LOCAL end LLVM
	;;
arm*-*-uclinux*)		# ARM ucLinux
	tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/ 
arm.h arm/linux-gas.h arm/linux-elf.h arm/uclinux-elf.h"
Index: gcc/c-incpath.c
===================================================================
--- gcc/c-incpath.c	(revision 120625)
+++ gcc/c-incpath.c	(working copy)
@@ -224,7 +224,9 @@
	  /* If it is a regular file and if it is large enough to be a header-
	     map, see if it really is one. */
	  if (fstat (fileno (f), &f_info) == 0 && S_ISREG(f_info.st_mode)
-	    && f_info.st_size >= sizeof(struct hmap_header_map))
+      /* APPLE LOCAL begin LLVM */
+	    && (unsigned) f_info.st_size >= sizeof(struct hmap_header_map))
+      /* APPLE LOCAL end LLVM */
	    {
	      unsigned   headermap_size = f_info.st_size;
Index: gcc/config/arm/linux-elf.h
===================================================================
--- gcc/config/arm/linux-elf.h	(revision 120625)
+++ gcc/config/arm/linux-elf.h	(working copy)
@@ -81,18 +81,24 @@
#define ENDFILE_SPEC \
    "%{!shared:crtend.o%s} %{shared:crtendS.o%s} crtn.o%s"
-#undef  LINK_SPEC
-#define LINK_SPEC "%{h*} %{version:-v} \
-   %{b} %{Wl,*:%*} \
+/* APPLE LOCAL begin LLVM */
+#define LINUX_TARGET_INTERPRETER "/lib/ld-linux.so.2"
+
+#define LINUX_TARGET_LINK_SPEC  "%{h*} %{version:-v} \
+   %{b} \
     %{static:-Bstatic} \
     %{shared:-shared} \
     %{symbolic:-Bsymbolic} \
     %{rdynamic:-export-dynamic} \
-   %{!dynamic-linker:-dynamic-linker /lib/ld-linux.so.2} \
+   %{!dynamic-linker:-dynamic-linker " LINUX_TARGET_INTERPRETER "} \
     -X \
     %{mbig-endian:-EB}" \
     SUBTARGET_EXTRA_LINK_SPEC
+#undef  LINK_SPEC
+#define LINK_SPEC LINUX_TARGET_LINK_SPEC
+/* APPLE LOCAL end LLVM */
+
#define TARGET_OS_CPP_BUILTINS()		\
    do						\
      {						\
Index: gcc/config/arm/arm.c
===================================================================
--- gcc/config/arm/arm.c	(revision 120625)
+++ gcc/config/arm/arm.c	(working copy)
@@ -643,7 +643,10 @@
    {"apcs-gnu",    ARM_ABI_APCS},
    {"atpcs",   ARM_ABI_ATPCS},
    {"aapcs",   ARM_ABI_AAPCS},
-  {"iwmmxt",  ARM_ABI_IWMMXT}
+  /* APPLE LOCAL begin LLVM */
+  {"iwmmxt",  ARM_ABI_IWMMXT},
+  {"aapcs-linux",   ARM_ABI_AAPCS_LINUX}
+  /* APPLE LOCAL end LLVM */
};
/* Return the number of bits set in VALUE.  */
@@ -1134,7 +1137,9 @@
      flag_schedule_insns = flag_schedule_insns_after_reload = 0;
    /* Override the default structure alignment for AAPCS ABI.  */
-  if (arm_abi == ARM_ABI_AAPCS)
+  /* APPLE LOCAL begin LLVM */
+  if (TARGET_AAPCS_BASED)
+  /* APPLE LOCAL end LLVM */
      arm_structure_size_boundary = 8;
    if (structure_size_string != NULL)
@@ -14392,7 +14397,9 @@
static bool
arm_default_short_enums (void)
{
-  return TARGET_AAPCS_BASED;
+  /* APPLE LOCAL begin LLVM */
+  return TARGET_AAPCS_BASED && arm_abi != ARM_ABI_AAPCS_LINUX;
+  /* APPLE LOCAL end LLVM */
}
Index: gcc/config/arm/arm.h
===================================================================
--- gcc/config/arm/arm.h	(revision 120625)
+++ gcc/config/arm/arm.h	(working copy)
@@ -491,7 +491,10 @@
    ARM_ABI_APCS,
    ARM_ABI_ATPCS,
    ARM_ABI_AAPCS,
-  ARM_ABI_IWMMXT
+  /* APPLE LOCAL begin LLVM */
+  ARM_ABI_IWMMXT,
+  ARM_ABI_AAPCS_LINUX
+  /* APPLE LOCAL end LLVM */
};
extern enum arm_abi_type arm_abi;
@@ -715,6 +718,12 @@
#define SIZE_TYPE (TARGET_AAPCS_BASED ? "unsigned int" : "long  
unsigned int")
#endif
+/* APPLE LOCAL begin LLVM */
+#ifndef PTRDIFF_TYPE
+#define PTRDIFF_TYPE (TARGET_AAPCS_BASED ? "int" : "long int")
+#endif
+/* APPLE LOCAL end LLVM */
+
/* AAPCS requires that structure alignment is affected by bitfields.  */
#ifndef PCC_BITFIELD_TYPE_MATTERS
#define PCC_BITFIELD_TYPE_MATTERS TARGET_AAPCS_BASED
Index: gcc/config/arm/bpabi.h
===================================================================
--- gcc/config/arm/bpabi.h	(revision 120625)
+++ gcc/config/arm/bpabi.h	(working copy)
@@ -27,8 +27,17 @@
#define TARGET_BPABI (TARGET_AAPCS_BASED)
/* Section 4.1 of the AAPCS requires the use of VFP format.  */
+/* APPLE LOCAL begin LLVM */
+#undef FPUTYPE_DEFAULT
+/* APPLE LOCAL end LLVM */
#define FPUTYPE_DEFAULT FPUTYPE_VFP
+/* APPLE LOCAL begin LLVM */
+/* EABI targets should enable interworking by default.  */
+#undef TARGET_DEFAULT
+#define TARGET_DEFAULT ARM_FLAG_INTERWORK
+/* APPLE LOCAL end LLVM */
+
/* The ARM BPABI functions return a boolean; they use no special
     calling convention.  */
#define FLOAT_LIB_COMPARE_RETURNS_BOOL(MODE, COMPARISON) TARGET_BPABI
@@ -98,5 +107,8 @@
      }							\
    while (false)
+/* APPLE LOCAL begin LLVM */
+#undef TARGET_OS_CPP_BUILTINS
+/* APPLE LOCAL end LLVM */
#define TARGET_OS_CPP_BUILTINS() \
    TARGET_BPABI_CPP_BUILTINS()
Index: gcc/config/arm/arm.md
===================================================================
--- gcc/config/arm/arm.md	(revision 120625)
+++ gcc/config/arm/arm.md	(working copy)
@@ -1896,7 +1896,10 @@
	HOST_WIDE_INT op3_value = mask & INTVAL (operands[3]);
	HOST_WIDE_INT mask2 = ((mask & ~op3_value) << start_bit);
-	emit_insn (gen_andsi3 (op1, operands[0], GEN_INT (~mask2)));
+  /* APPLE LOCAL begin LLVM */
+	emit_insn (gen_andsi3 (op1, operands[0],
+			       gen_int_mode (~mask2, SImode)));
+  /* APPLE LOCAL end LLVM */
	emit_insn (gen_iorsi3 (subtarget, op1,
			       gen_int_mode (op3_value << start_bit, SImode)));
        }
@@ -1934,7 +1937,9 @@
        }
      else
        {
-	rtx op0 = GEN_INT (mask);
+  /* APPLE LOCAL begin LLVM */
+	rtx op0 = gen_int_mode (mask, SImode);
+  /* APPLE LOCAL end LLVM */
	rtx op1 = gen_reg_rtx (SImode);
	rtx op2 = gen_reg_rtx (SImode);
@@ -1953,7 +1958,9 @@
	    && (const_ok_for_arm (mask << start_bit)
		|| const_ok_for_arm (~(mask << start_bit))))
	  {
-	    op0 = GEN_INT (~(mask << start_bit));
+      /* APPLE LOCAL begin LLVM */
+	    op0 = gen_int_mode (~(mask << start_bit), SImode);
+      /* APPLE LOCAL end LLVM */
	    emit_insn (gen_andsi3 (op2, operands[0], op0));
	  }
	else
Index: gcc/config/arm/freebsd.h
===================================================================
--- gcc/config/arm/freebsd.h	(revision 120625)
+++ gcc/config/arm/freebsd.h	(working copy)
@@ -30,7 +30,6 @@
#undef	LINK_SPEC
#define LINK_SPEC "							\
    %{p:%nconsider using `-pg' instead of `-p' with gprof(1) }		\
-  %{Wl,*:%*}								\
    %{v:-V}								\
    %{assert*} %{R*} %{rpath*} %{defsym*}					\
    %{shared:-Bshareable %{h*} %{soname*}}				\

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20061127/0b39778a/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20061127/0b39778a/attachment.bin>


More information about the llvm-commits mailing list